Jump to content

Problème itemprop price avec ps 1.6


Recommended Posts

Bonjour,

je rencontre un souci avec les données structurés sur le prix.

Google ne m'indique pas d'erreur, mais n'affiche jamais le prix dans sont moteur de recherche. Je pense savoir pourquoi, car dans l'exemple pour un prix à 9,90€, le content affiche 9.9

Il manque le 0

voici mon bout de code:

<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}
						<meta itemprop="url" content="{$link->getProductLink($product)}">
						<meta itemprop="priceValidUntil" content="{$product->specificPrice.to}" />
						<meta itemprop="priceValidUntil" content="{($smarty.now + (60*60*24*15))|date_format:"%Y-%m-%d"}">
						<meta itemprop="priceCurrency" content="{$currency->iso_code}" />
						{* MOVED TOP<meta itemprop="sku" content="{$product->reference}" />*}
						{hook h="displayProductPriceBlock" product=$product type="price"}
						{/if}{/strip}
					</p>

Quelqu'un saurai comment afficher le bon prix à notre amis google?

Merci pour votre aide

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