prestashop - Wrong price on product page in another currency -




i have problem price of product. use 2 currencies, czk , euro. czk working fine, when switch euro have problem displaying correct price of product. strange is, after put product cart, price correct.

you can see on screenshot 1, showing price different in html code in tag "content", correct value.

on second screenshot u can see shopping cart , correct price.

even in backoffice, price correct. on product page rendered wrong.

i find out, doing products combinations.

and products combinations, when reload page ctrl+f5, real price flash there second , after rendering of page complete, start showing wrong price.

btw. "my conversion rate correct"

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

thank help!

edit: when disable js browser, price correct

screenshot 1 screenshot 2





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -

python - Read npy file directly from S3 StreamingBody -