mdev Posted November 18, 2019 Share Posted November 18, 2019 I'm getting some errors in google search console. Here is a code snippet from `product-list.tpl`: {if (!$PS_CATALOG_MODE && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="content_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} <span itemprop="price" class="price product-price{if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0} product-price-new{/if}"> {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> {hook h="displayProductPriceBlock" id_product=$product.id_product type="old_price"} {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} </div> {/if} How to fix this error? Link to comment Share on other sites More sharing options...
lototo Posted November 19, 2019 Share Posted November 19, 2019 Can you post the googles output? https://search.google.com/structured-data/testing-tool Link to comment Share on other sites More sharing options...
CedCommerce Team Posted November 20, 2019 Share Posted November 20, 2019 On 11/19/2019 at 12:44 PM, lototo said: Can you post the googles output? https://search.google.com/structured-data/testing-tool Could you please post your exact error so that we can assist you in a better way? Link to comment Share on other sites More sharing options...
tuk66 Posted November 20, 2019 Share Posted November 20, 2019 You should find something like <span itemprop="price" content="{$product.price_amount}">{$product.price}</span> in the catalog/_partials/product-prices.tpl file. 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