Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter kellydj01

    (@kellydj01)

    Hey @west7

    Thanks for help. I already tried some of these plugins but it seems I can’t get a static result with only the pages I want to show. Also the most customizable plugins are for Woocommerce and my website will not be an e-commerce. I still have some searches to do.

    Best,
    Kelly

    Thread Starter kellydj01

    (@kellydj01)

    I hoped that would be the case but it seems that new authorizations are not taken into account. I will try again and make a few ajustments to see were the problem lies.
    Thanks for help.

    Thread Starter kellydj01

    (@kellydj01)

    Hi Vladimir,

    Thanks for your reply.

    I’m admin on this website but I only have role options in French when trying to grant roles to users.

    You can see the options I have here.

    Thread Starter kellydj01

    (@kellydj01)

    Hello,

    Our customers are submitting a form to explain about their trip and we have internal links linking cities names with articles, so it shows up like this :

    J'aimerai éventuellement changer l'excursion à <a href="https://destinationjapon.fr/kamakura-et-son-grand-bouddha/">Kamakura</a> pour une autre à Nikko.

    When there are a lot of cities listed it is hard to read. I excluded the form page from the linking and now it seems to work but w estill have some links in the entries.

    We will see in further entries if it is solved. Thanks for your rely.

    • This reply was modified 5 years, 2 months ago by kellydj01.
    • This reply was modified 5 years, 2 months ago by kellydj01.
    Thread Starter kellydj01

    (@kellydj01)

    Ok, I managed to do it with a custom php code :

    
    function price_shortcode_callback( $atts ) {
    $atts = shortcode_atts( array(
        'id' => null,
    ), $atts, 'bartag' );
    
    $html = '';
    
    if( intval( $atts['id'] ) > 0 && function_exists( 'wc_get_product' ) ){
         $_product = wc_get_product( $atts['id'] );
         $html = number_format($_product->get_price(), 0) . " &euro;";
    }
    return $html;
    }
    add_shortcode( 'woocommerce_price', 'price_shortcode_callback' );
    

    And adding this on my product page :

    
    [woocommerce_price id="1080"]
    

    If this can help someone…

    • This reply was modified 5 years, 3 months ago by kellydj01.
Viewing 5 replies - 1 through 5 (of 5 total)