SEID Posted October 11, 2016 Share Posted October 11, 2016 (edited) Hello, I have one problem with price in Structured Data Testing Tool - Google. I have Prestashop v1.6.1.7 Where is problem please? Thank you very much Edited October 11, 2016 by SEID (see edit history) Link to comment Share on other sites More sharing options...
SEID Posted October 12, 2016 Author Share Posted October 12, 2016 nobody can help me? part of the code product.tpl <!-- prices --> <div> <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" 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="price" content="{$productPrice}" /> <meta itemprop="priceCurrency" content="{$currency->iso_code}" /> {hook h="displayProductPriceBlock" product=$product type="price"} {/if} {/strip}</p> <p id="reduction_percent" {if $productPriceWithoutReduction <= 0 || !$product->specificPrice || $product->specificPrice.reduction_type != 'percentage'} style="display:none;"{/if}>{strip} <span id="reduction_percent_display"> {if $product->specificPrice && $product->specificPrice.reduction_type == 'percentage'}-{$product->specificPrice.reduction*100}%{/if} </span> {/strip}</p> <p id="reduction_amount" {if $productPriceWithoutReduction <= 0 || !$product->specificPrice || $product->specificPrice.reduction_type != 'amount' || $product->specificPrice.reduction|floatval ==0} style="display:none"{/if}>{strip} <span id="reduction_amount_display"> {if $product->specificPrice && $product->specificPrice.reduction_type == 'amount' && $product->specificPrice.reduction|floatval !=0} -{convertPrice price=$productPriceWithoutReduction|floatval-$productPrice|floatval} {/if} </span> {/strip}</p> <p id="old_price"{if (!$product->specificPrice || !$product->specificPrice.reduction)} class="hidden"{/if}>{strip} {if $priceDisplay >= 0 && $priceDisplay <= 2} {hook h="displayProductPriceBlock" product=$product type="old_price"} <span id="old_price_display"><span class="price">{if $productPriceWithoutReduction > $productPrice}{convertPrice price=$productPriceWithoutReduction|floatval}{/if}</span>{if $productPriceWithoutReduction > $productPrice && $tax_enabled && $display_tax_label == 1} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}{/if}</span> {/if} {/strip}</p> {if $priceDisplay == 2} <br /> <span id="pretaxe_price">{strip} <span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL)}</span> {l s='tax excl.'} {/strip}</span> {/if} </div> Link to comment Share on other sites More sharing options...
SEID Posted October 18, 2016 Author Share Posted October 18, 2016 please, help me Link to comment Share on other sites More sharing options...
__fito__ Posted November 18, 2016 Share Posted November 18, 2016 Hi, I got the same error, did you manage to solve it? Thank you, Link to comment Share on other sites More sharing options...
SEID Posted January 16, 2018 Author Share Posted January 16, 2018 On 18. 11. 2016 at 5:11 PM, __fito__ said: Hi, I got the same error, did you manage to solve it? Thank you, hello, have you come up with a solution? I do not Link to comment Share on other sites More sharing options...
SEID Posted January 16, 2018 Author Share Posted January 16, 2018 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now