Jump to content

Microdata Product


soufiane011

Recommended Posts

Hi,
Please, i need your help in order to fix probleme about microdata product on my website.

I have just launched my website and I found a problem with seo microdata, you find attached a screenshot that explains the problem tested with : https://developers.google.com/structured-data/testing-tool/

 

Note: My url address of my site is already included in the image above.
Thank you

post-773158-0-19327800-1424780155_thumb.jpg

Link to comment
Share on other sites

  • 4 weeks later...

Hi,

I found solution and i added many microdata.

add this code to your theme/product-list.tpl

	{* add by sbahjaoui*}
							<span itemprop="price" class="price product-price ">
										{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}
								</span>
								
								{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}
                <meta itemprop="price" content="{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}" />
            {/if}
							{* End  sbahjaoui*}

or you can download the file directly

product-list.zip

Link to comment
Share on other sites

  • 2 months later...

Hi!

 

Just to make sure, i dont have to replace any code in this document. I can just add this code to the end of the file?

The thing is, that when i add this code to the product-list.tpl and use https://developers.google.com/structured-data/testing-tool/
Then after that it loses all the errors, but when i clear cache and then use the google data testing tool, then all the errors come back.

Link to comment
Share on other sites

Please find here the tutorial for how to implement Google rich snipets (the code named on topic #'2 is incomplete). Make sure you are changing the product.tpl of the theme in use  !!! if your are using an extra theme and not the native one (tutorial is also valid for PS 1.6.)

 

http://nemops.com/prestashop-google-rich-snippets

 

Here you can discuss problems with the tutorial I've linked: https://www.prestashop.com/forums/topic/212081-free-tutorial-add-google-rich-snippets-to-your-prestashop-store

Edited by selectshop.at (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...