Jump to content

Microdata price not same in any browser


enriquegm

Recommended Posts

Hi,

 

  I'm getting crazy with that, I hope someone can help me.

 


 

Someone knows why? 

 

I've changed in product.tpl

 

    - $productPrice 

    - $product->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision     

    - $priceDisplay

 

And nothing works... I think that could be the specific browser but I dunno

 

 

Anyone can help me please? Thanks a lot

 

PD: sorry for my english isn't my natural language

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

By the way

 

I added this "meta test" in code for debug


<div class="price">
<p class="our_price_display" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
{if $product->quantity > 0}<link itemprop="availability" href="http://schema.org/InStock"/>{/if}
{if $priceDisplay >= 0 && $priceDisplay <= 2}
<span id="our_price_display" itemprop="price">{convertPrice price=$productPrice}</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 test_var="{$productPrice}"/>
<meta test_call="{$product->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision)}"/>
<meta test_display="{$priceDisplay}"/>

<meta itemprop="priceCurrency" content="{$currency->iso_code}" />{hook h="displayProductPriceBlock" product=$product type="price"}{/if}


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

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