Jump to content

Default Theme Product RichSnipets problem


Recommended Posts

Clean Install of

The richsnipets section of code in product.tpl does not update the product price when the combination changes.

For example:

<span id="our_price_display" class="price" itemprop="price" content="19.812">£ 19.81</span>

Select a combination that has an impact on price (Increase) the price content does not change

<span id="our_price_display" class="price" itemprop="price" content="19.812">£ 25.81</span>

This issue results in products not being served in Google Merchant Centre as the Price in the feed does not match the price on the landing page.

This problem has been present in all 1.6.1 versions of Prestashop and it's default theme.

I can't work out how to change this code to enable the price content field to refresh as the price data does.  Any help would be very much appreciated.

<p class="our_price_display" itemprop="offers" itemscope itemtype="https://schema.org/Offer">{strip}
	{if $product->quantity > 0}<link itemprop="availability" href="https://schema.org/InStock"/>{/if}
	{if $priceDisplay >= 0 && $priceDisplay <= 2}
		<span id="our_price_display" class="price" itemprop="price" content="{$productPrice}">{convertPrice price=$productPrice|floatval}</span>
		{if $tax_enabled  && ((isset($display_tax_label) && $display_tax_label == 1) || !isset($display_tax_label))}
			{if $priceDisplay == 1} {l s='tax excl.'}{else} {l s='tax incl.'}{/if}
		<meta itemprop="priceCurrency" content="{$currency->iso_code}" />
		{hook h="displayProductPriceBlock" product=$product type="price"}


Edited by Kharding (see edit history)
Link to comment
Share on other sites

  • 1 year later...

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...