Jump to content

Schema for showing prices with/without VAT


Recommended Posts

Hello guys,

I've come upon an issue with Google Rich Results.

 

{block name='product_price'}
      <div
        itemprop="offers"
        itemscope
        itemtype="https://schema.org/Offer"
        class="product-prices-wrapper d-flex flex-wrap align-items-center"
      >
        <meta itemprop="priceValidUntil" content="{($smarty.now + (86400*15))|date_format:'%Y-%m-%d'}"/>
        <meta itemprop="availability" content="{$product.seo_availability}"/>
        <meta itemprop="priceCurrency" content="{$currency.iso_code}"/>
        <meta itemprop="price" content="{$product.price_amount}"/>
        <link itemprop="url" href="{$product.link}"/>

        <span class="price product-price"><span class="current-price">{$product.price_amount} {l s='(tax incl.)' d='Shop.Theme.Global'}</span></span>
        {block name='product_unit_price'}
          {if $displayUnitPrice}
            <span class="product-unit-price sub">{l s='(%unit_price%)' d='Shop.Theme.Catalog' sprintf=['%unit_price%' => $product.unit_price_full]}</span>
          {/if}
        {/block}

{$product.price_amount} should list the price with VAT included, but instead, in Google Rich Results the price is show without VAT.

If I list {$product.price}, then the same price will appear in Rich Results test with a warning that it will show the currency sign too.

Does anybody know a way to actually display the full price?

Because this will interfere with Google Merchant Center if you have activated the autoupdate stock/price function, even if catalogue is uploaded.

Link to comment
Share on other sites

  • 3 months later...
  • 2 months later...
  • 3 weeks later...
  • 2 months later...
On 7/23/2022 at 9:48 PM, gs2k said:

Hello,

you probably have the same problem as I had in my store (found a solution).

Just tell me what country your store is in. Is it different from the USA?

Regards
Gregory

Yes, it was and the issue was the price outside tax area. Google does not abide by international laws, which, in Europe means to sell without taxes to citizens outside the European Union.

So, of course my client had prices with VAT for internal and European customers and without for USA clients.

But, those are Google's issues, not Prestashop's.

Link to comment
Share on other sites

  • 6 months later...
12 hours ago, Gatsu_ITA said:

Hi, I have same problem.

someone have found a solution?

thanks!!

If you do not sell to the USA, set the VAT rate (in the tax rules) for this country (google robot sees the page from the USA) the same as you have by default in your country.

This is a pretty good way to solve the problem.

 

Link to comment
Share on other sites

  • 4 weeks later...
On 4/28/2023 at 11:24 AM, gs2k said:

If you do not sell to the USA, set the VAT rate (in the tax rules) for this country (google robot sees the page from the USA) the same as you have by default in your country.

This is a pretty good way to solve the problem.

I just applied this fix and it seems to have solved the issue. 

Will continue with testing and if it did not really solve it, I will comment back. 

Thanks @gs2k

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...