标签:
转载请注明出处:http://www.cnblogs.com/zhong-dev/p/4943065.html
网店版本 Prestashop v1.6


{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}
<span itemprop="price" >
{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}
</span>
<meta itemprop="priceCurrency" content="{$currency->iso_code}" />
{if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0}
{hook h="displayProductPriceBlock" product=$product type="old_price"}
<span class="old-price product-price">
{displayWtPrice p=$product.price_without_reduction}
</span>
{if $product.specific_prices.reduction_type == ‘percentage‘}
<span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span>
{/if}
{/if}
{hook h="displayProductPriceBlock" product=$product type="price"}
{hook h="displayProductPriceBlock" product=$product type="unit_price"}
{/if}
大致效果如下:

红框部分就是需要添加的代码,再把修改好的tpl文件传到服务器,再检测一下就没有这些问题了
PrestaShop 修复Google Structured Data Testing Tool 报错
标签:
原文地址:http://www.cnblogs.com/zhong-dev/p/4943065.html