inaccurate price status due to inconsistency between feed and landing page due to OSS

elise4
New Member
2 0 0

Hi

I receive a message from Google saying that I have a problem with my price

inaccurate price status due to inconsistency between feed and landing page

In fact the price is changing a little bit depending on the taxes of the country....

The price shown is the price with the VAT of Germany 19% but the price you see in my website with the french feed is with 20% VAT so a price a bit higher.  That's why there is a small difference.

In my feed that I send to google I use this code

<g:price>{{ product.price | money_without_currency }} {{ shop.currency }}</g:price>

Is it possible to change this code and have the price with the VAT of the country of the customer?

If not how can I fix this problem ?

Thanks in advance for your help.

Best regards

Elise

 

Reply 1 (1)
LitExtension
Shopify Partner
3387 668 726

Hi @elise4,

You can use following code:

{%- if request.page_type == 'product' -%}
  <meta property="og:price:amount" content="{{ product.price | money_without_currency | strip_html }}">
  <meta property="og:price:currency" content="{{ cart.currency.iso_code }}">
{%- endif -%}

Refer https://github.com/Shopify/dawn/blob/main/snippets/meta-tags.liquid

The code is supported by Dawn theme, it is Shopify standard theme so everything should work fine.

Hope it helps!

LitExtension - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!