Jump to content

Edit History

Kharding

Kharding

Clean Install of 1.6.1.24

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

For example:

https://dev.tindalls.co.uk/tshirts/1-faded-short-sleeves-tshirt.html#/13-color-orange/2-size-m
<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

https://dev.tindalls.co.uk/tshirts/1-faded-short-sleeves-tshirt.html#/13-color-orange/3-size-l
<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}
		{/if}
		<meta itemprop="priceCurrency" content="{$currency->iso_code}" />
		{hook h="displayProductPriceBlock" product=$product type="price"}
	{/if}
{/strip}</p>

 

Kharding

Kharding

Clean Install of 1.6.1.24

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

For example:

https://dev.tindalls.co.uk/tshirts/1-faded-short-sleeves-tshirt.html#/13-color-orange/2-size-m
<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

https://dev.tindalls.co.uk/tshirts/1-faded-short-sleeves-tshirt.html#/13-color-orange/3-size-l
<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.

×
×
  • Create New...