Price

#69768
Viewing 11 replies - 1 through 11 (of 11 total)
  • Just to follow :

    I add this code in my function file

    add_filter( “rank_math/snippet/rich_snippet_product_entity”, function( $entity ) {
    global $product;
    $entity[‘offers’][‘price’] = wc_get_price_including_tax( $product );
    return $entity;
    });

    But as you can see, it’s not good : https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Flerepaireduchef.fr%2Fcrepiere-professionnelle

    Thanks in advance

    Just to follow :

    thanks to this code : add_filter( “rank_math/opengraph/facebook/product_price_amount”, function( $content ) {
    global $product;
    return wc_get_price_including_tax( $product );
    });

    I have the good price but :
    – Low price & High price are price without Tax.

    Thanks in advance

    Hello,

    Thank you for contacting Rank Math today.

    Rank math takes the product data as set in WooCommerce. To modify these prices, you would have to change the prices in WooCommerce product settings to be tax inclusive.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hi Michael,

    It’s ever done.

    As you can see here https://prnt.sc/tk5euo

    Hello,

    We are sorry but you have to show prices including the VAT in your store to make it work.

    We do not add those values separately and instead rely on WooCommerce to provide that information.

    Since most of the stores add VAT during checkout – it is not feasible to show them in the Schema only.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hello Uzair,

    Everything is configured as you asked me. I display the prices including VAT! I gave a screenshot just above. Why is it not working?

    As you can see by testing this URL: https://lerepaireduchef.fr/machine-hot-dog-professionnelle/?attribute_pa_chauffe=oui

    The structured data is not good and it creates problems in my google shopping campaigns!

    Good data should be:
    – Low price: € 212.9
    – High price:
    € 314.9
    – Price: € 314.9

    And I still don’t have a GTIN in my structured data.

    Can you help me please ?
    You have access to my website in my ” Product in search console ” window.

    Thank you in advance this is very problematic since my google campaigns are blocked because of that.

    As you can see here : https://prnt.sc/tk5euo

    The price include VAT in my website.

    Hello,

    The lowPrice and highPrice are just values to show possible price variations for your product and taken from the price you have added in WooCommerce. In your case you are adding the price with tax excluded and therefore these prices are taken with taxes excluded. The low and high prices are only displayed in your schema and it is unlikely to include tax considering Woocommerce taxes are calculated dynamically for your Store customers based on either their shipping address, billing address or both.

    You can check more about price, low price and high price in this Google article: https://developers.google.com/search/docs/data-types/product#lowprice

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
    ​​​​​​

    Hi Michael,

    I just need your help to have price including VAT in data of google.

    I set up in woocommerce as you told me ! But it’s not good currently.

    The tax are the same for all the country and for all my customer because I made your settings.

    Thanks in advance,

    Hi Michael,

    Maybe we can find a solution with : woocommerce_structured_data_product_offer

    Can you know this ?

    Hello,

    Even WooCommerce Structured Data shows the prices without tax. You can confirm it by disabling the Rank Math schema from the Product page.

    My colleague has correctly mentioned if you want to show the price with tax on product pages then you’ll have to add the price with the tax on product pages and select Yes, I will enter the rates including tax option in the WooCommerce Tax settings.

    Sadly, there is no easy way to do this from the code using the filter.

    The Product schema data on your site looks fine to me. I am not sure why the Google campaign is blocking it. There could be some other reason.

    Please let us know if we are missing anything here.

    Thank you.

Viewing 11 replies - 1 through 11 (of 11 total)

You must be logged in to reply to this ticket.