Hi,
Today I am going to explain How to rectify the error of " schema.org price missing" that appears in Google Mark up tool.
Hey you know i went through many forum sites and found that people are removing the small schema code from the product page in order to remove the errors.. But really that is not the solution..
If you look at the product-list.tpl page in prestashop, you wont' be able to catch up where exactly the code is missing..
Let me first tell you where you find the product-list.tpl page .. It is located in root_directory/themes/your_theme/product-list.tpl
When you open this page in notepad, notepad ++ or other tool, you need to ctrl + F and search for
<span itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="availability"> .
Below this you will find one more line of code :
{if ($product.allow_oosp || $product.quantity > 0)}
Just below this line of code, place this code below :
<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>
Click on save to save the changes made.
Now its all done. Just go to https://developers.google.com/structured-data/testing-tool/
Enter your website URL and click on Validate. You will find the errors related Price schema.org is gone and it will show you a message ALL GOOD .
Do comment below and let me know if you have any doubts regarding this.. Thanks.
Today I am going to explain How to rectify the error of " schema.org price missing" that appears in Google Mark up tool.
Hey you know i went through many forum sites and found that people are removing the small schema code from the product page in order to remove the errors.. But really that is not the solution..
If you look at the product-list.tpl page in prestashop, you wont' be able to catch up where exactly the code is missing..
Let me first tell you where you find the product-list.tpl page .. It is located in root_directory/themes/your_theme/product-list.tpl
When you open this page in notepad, notepad ++ or other tool, you need to ctrl + F and search for
<span itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="availability"> .
Below this you will find one more line of code :
{if ($product.allow_oosp || $product.quantity > 0)}
Just below this line of code, place this code below :
<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>
Click on save to save the changes made.
Now its all done. Just go to https://developers.google.com/structured-data/testing-tool/
Enter your website URL and click on Validate. You will find the errors related Price schema.org is gone and it will show you a message ALL GOOD .
Do comment below and let me know if you have any doubts regarding this.. Thanks.
No comments:
Post a Comment