Jump to content

[FREE Module] Google Rich Snippets and Breadcrumbs!


Recommended Posts

  • 3 weeks later...

Good module, easy to install, but will love an update regarding the next issue:

 

The module adds a "Summary" tab in the product page, after that I looked at the code and realise that maybe this is not the best implementation in the world.

Breadcrumb rich snippet should be implemented in the native prestashop breadcrumb in the top of the page, not adding a new tab and hiding the content with display:none :/

 

Anyway thanks for the effort and sharing!

Best Regards.

Edited by Velocity (see edit history)

Share this post


Link to post
Share on other sites
  • 3 weeks later...

Hi Nemo1, this seemed a very interesting module, but it's not working for me.

I have installed on 1.5.4 and it gave errors on my site on every product. I could not access products anymore, I could browse only up to categories.

I had to restore the whole public_html folder in order to have the products accessible again. Do you know what could be the problem?

Can you help, please?

Share this post


Link to post
Share on other sites

The whole folder? it's not necessary, the module doesn't do anything to any file, it should have been enough to uninstall it :)

WHat kind of error did you get? blank page? If so you have to enable error reporting as described in my signature

Share this post


Link to post
Share on other sites

No, they are there in the default theme, are you using a custom one? Anyway if you don't have them, use it, otherwise...they will conflict

Share this post


Link to post
Share on other sites

Hi Nemo good module thanks, just a couple of things.

 

1. Have installed this module and tested with Google's Structured Data Testing Tool but no image is showing.

2. It uses the sizes from the Summary tab, which in turn are taken from the shipping/package sizes which aren't the

product sizes. We already have our product size on our website page but in google listings the package size looks like the product size, 

which is misleading.

 

Thanks

Share this post


Link to post
Share on other sites

Image is not supposed to show up in serps anyway :)

As for the other, what are you using to define weight? That tab is the one intended to be used by default, so if you use some other method you have to change the module's tpl/php

Share this post


Link to post
Share on other sites

Design? What do you exactly mean?

 

As for the summary tab, it's where the magic takes place, to avoid editing the product tpl itself, itemprop tags are added there

Share this post


Link to post
Share on other sites

it should already be displaying the price, as for quantity I removed it for now as it was spawning incompatibility errors in the rich snippets testing tool.

Share this post


Link to post
Share on other sites
  • 3 weeks later...

Hello, thank you for your add-on :)

You would have a date to display the stock?

And do you think it is possible to include star Yotpo? also a free module!

A big thank you

Share this post


Link to post
Share on other sites

hi!

What do you mean by "You would have a date to display the stock?"?

 

As for yotpo, well, I will not implement it in the module directly as it's third party and I could in any case not keep up with their updates. Needless to say it's not a good idea to mix up two separate modules! :D

Share this post


Link to post
Share on other sites
  • 1 month later...
Hi, I installed this module but I get some problems: 

1-If I install and put "Enable rich snippets breadcrumbs only" disabled, this module I inserted a text with the description, price, etc below the text of each product from my product page. But in testing I get google correctly: Name of product, price, information and customer rating. 

 

2 If "Enable rich snippets breadcrumbs only" is enabled, I removed the text under the page of products that had been placed before .. ok 

But the price and rating of the snippet, when I run the test on google disappears. 

Just out name and information. 

 

How I can fix this. ???

I have prestashop 1.5.6 with a template bought from templatemonster 

Thank you

Share this post


Link to post
Share on other sites

Hi!
1- Yes, it adds a new tab below each product to avoid having to do template modifications

2- of course, the box is needed because of above :)

Share this post


Link to post
Share on other sites

Hi!

1- Yes, it adds a new tab below each product to avoid having to do template modifications

2- of course, the box is needed because of above :)

Sorry for my English, maybe I have not explained well. 
 
Problem 1, can not be solved? (I do not know how to attach the image of the error)  not new tab... add in the final of the page
 
Problem 2 is not displayed price or customer rating on google, as I fix? 
 
I would like not to leave the information below, and appear incorrectly on google price and rating
Edited by acabpla (see edit history)

Share this post


Link to post
Share on other sites

1- ... it's not a problem ,it's the intended behavior the fact that it adds a new tab :)

2 - that option only leaves breadcrumbs enabled, that's why

 

Those info are needed, otherwise you can try editing product.tpl by following my tut here:http://nemops.com/prestashop-google-rich-snippets/

1 - I can somehow hide that text? , It looks pretty bad ..

 

Thanks

Share this post


Link to post
Share on other sites

No no, it's not a rumor it has them :)  but if he doesn't have snippets it means he's on 1.5 or a custom 1.6 theme without them :)

Anyway no, google hates hidden content, sadly only breadcrumbs work as hidden as far as I know

Share this post


Link to post
Share on other sites

No no, it's not a rumor it has them :)  but if he doesn't have snippets it means he's on 1.5 or a custom 1.6 theme without them :)

 

Anyway no, google hates hidden content, sadly only breadcrumbs work as hidden as far as I know

 

thanks for update, hopefully theme developer are putting helpers in their themes...being able to extend the theme...is dreamy.

Share this post


Link to post
Share on other sites

Hi Nemo1, this seemed a very interesting module, but it's not working for me.

I have installed on 1.5.4 and it gave errors on my site on every product. I could not access products anymore, I could browse only up to categories.

I had to restore the whole public_html folder in order to have the products accessible again. Do you know what could be the problem?

Can you help, please?

 

Hi,

 

I have the same issue than Coloranti, via prestashop version 1.5.0.17

I can navigate everywhere except on product page where I have a blank page.

 

I check and I've got the following error :

Fatal Error : Out of memory (allocated 85721088) (tried to allocate 40 bytes) in /homepages/41/d405452920/htdocs/classes/ObjectModel.php on line 1456

 

I'm a novice at that kind of issue. My website existed for 2 years without problems and I've just installed your free module, paf blank page.

 

Could you help me ?

 

thanks for your support

Share this post


Link to post
Share on other sites

Hi,

 

I have the same issue than Coloranti, via prestashop version 1.5.0.17

I can navigate everywhere except on product page where I have a blank page.

 

I check and I've got the following error :

Fatal Error : Out of memory (allocated 85721088) (tried to allocate 40 bytes) in /homepages/41/d405452920/htdocs/classes/ObjectModel.php on line 1456

 

I'm a novice at that kind of issue. My website existed for 2 years without problems and I've just installed your free module, paf blank page.

 

Could you help me ?

 

thanks for your support

 

you have approx 85mb of memory allowed for php...if you do not now how to increase you php memory limit contact your hosting company 128mb would be ok, 256mb better.

 

you can of course remove the module to see if resolves, get more memory and then reload module.

  • Like 1

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Hi Nemo, the module works great, but I notice that breadscrum is only enabled for product pages. Is it possible to enable it for category pages as well?

Share this post


Link to post
Share on other sites

Hi!
Well not currently, as I didn't manage to make it work properly with google structured data, but I will try to add it to the next release :) (wrote it down)

  • Like 1

Share this post


Link to post
Share on other sites
  • 1 month later...

Hi, Google Rich Snippets test tool is your friend for that :)

 

https://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Flivedemo00.template-help.com%2Fprestashop_49456%2Findex.php%3Fid_product%3D1%26controller%3Dproduct%26id_lang%3D5

 

You got errors in your snippets code apparently " Error : Page contains property "condition" which is not part of the schema. "

Share this post


Link to post
Share on other sites

Thanks - that was great :) I fixed the condition-issue on the theme on my domain :)

 

Do you know if the rich snippets should provide more information than what it does here, or is it good enough?

https://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Flivedemo00.template-help.com%2Fprestashop_49456%2Findex.php%3Fid_product%3D1%26controller%3Dproduct%26id_lang%3D5

Share this post


Link to post
Share on other sites

Well you can provide a category (if it falls in the list of google's), supplier, manufacturer.. I guess that' all you need. But they probably won't be shown in the serp, name, description, category crumbs, reviews and price should be enough

Share this post


Link to post
Share on other sites
  • 1 month later...

Hello,

 

I have problems with rich snippets - maybe :) I´m using PS 1.6.0.6 with default theme - http://i-svitidla.cz

 

1) When I enable this plugin, on google rich snippets checker is only price, but no stock info etc.

2) Second problem, is with default theme, when is plugin enabled, under product info is another info.

 

How to fix this problem please?

 

Thanks

Share this post


Link to post
Share on other sites

What other info do you see ? Can you take a screenshot ?

 

 

When is not "Enable rich snippets breadcrumbs only" ticked:

rs_enabled.jpg

 

 

 

When is "Enable rich snippets breadcrumbs only" ticked:

rs_disabled.jpg

 

 

 

When is "Enable rich snippets breadcrumbs only" ticked this "summary" info is in product page:

rs_summary.jpg

Edited by Compolux (see edit history)

Share this post


Link to post
Share on other sites

1.6 has its own version of rich snippets, that is why I added that option. So if you want to use my snippets, you need to get rid of the default ones

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Hi,

 

Thank you Nemo1 for the free module.

 

I am using the module only for breadcrumb.

 

The module adds as new tab called Summary to the product page.

 

How is it possible to delete the Summary tab from the product page ?

 

Thank you in advance for any reply.

 

Patrick

Share this post


Link to post
Share on other sites

Hi Nemo,

 

Thank you for your prompt reply.

 

I already did tick the box "Enable rich snippets breadcrumbs only".

 

However the module adds a new tab called Summary on the product page.

 

Is there any other solution by amending any code in one of the module files ?

 

Thank you again in advance,

 

Patrick

Share this post


Link to post
Share on other sites

Hi Nemo1,

Thank you for your reply.

In order to display where the module PS Rich Snippets and Breadcrumbs is hooked I had to check the box "Afficher les points d'accroche invisibles" (In Modules  > Positions)

By this way, I can see that the module is hooked in :
displayProductTab
and
displayProductTabContent

Then, if I unhook, the module from displayProductTab :
- the breadcrumb are no longer picked up by Google (seen when I check a product page with the Google webmaster tool)
- there are errors on the frontend product page, such as :
    - Undefined index: breadonly in .../cache/smarty/compile
    - Product Width: 0.00 Notice: Undefined index: ps_dimension_unit in /s.../cache/smarty/compile



So, I also tried to unhook the module from displayProductTabContent :
- the breadcrumb are no longer picked up by Google (seen when I check a product page with the Google webmaster tool)
- no error on the frontend product page is displayed.

I can see in the same topic, that are webmasters (Velocity, farnamjam, rickd) report the same problem of the display of this Summary tab. In their case, I do not know whether they enable the module only for breadcrumbs or not.

Thank you in advance for any suggestion.

Patrick

Share this post


Link to post
Share on other sites

Remove this from the tab15.tpl file then (in views/templates/hooks)

<li><a href="#idTabRichSnippets" class="idTabHrefShort">{l s='Summary' mod='psrichsnippets'}</a></li>

Share this post


Link to post
Share on other sites
  • 3 weeks later...

Hi nemo,

 

Firstly, I really appriciate your help on the forums and the help you gave me  in the past!

 

I have installed your module, but honestly I have no idea what im doing

 

http://www.google.nl/webmasters/tools/richsnippets?q=http%3A%2F%2Fwww.my-icover.nl%2F

 

As you can see google gives me error messages with incomplete microdata. What am i doing wrong here?

Share this post


Link to post
Share on other sites

The breadcrumb & rich snippet product is working fine.

http://www.my-icover.nl/sony-xperia-z3-compact/2092-sony-xperia-z3-compact-verticale-flip-case-hoesje-frontje-zwart-8718924485880.html

 

In Main Page and Product Category Listing, You use excessive Product Rich Snippet. Product rich snippet is only for 1 product.

https://support.google.com/webmasters/answer/2722261?hl=en

You WILL get penalty from google becoz Rich Snippet Spamming.

Share this post


Link to post
Share on other sites

The module only hooks to the product page, those other wrong ones are from the prestashop 1.6 default template

So how do i remove the wrong ones from the default template?

Share this post


Link to post
Share on other sites

The module only hooks to the product page, those other wrong ones are from the prestashop 1.6 default template

Your module is working fine, Nemo. Like I said before, The breadcrumb & rich snippet product is working fine.

 

animuz1, edit product-list.tpl. Wait.. you know what to edit, right? I mean what codes need to be removed?

If not, learn rich snippet codes. Read Nemo blog

Share this post


Link to post
Share on other sites

Your module is working fine, Nemo. Like I said before, The breadcrumb & rich snippet product is working fine.

 

animuz1, edit product-list.tpl. Wait.. you know what to edit, right? I mean what codes need to be removed?

If not, learn rich snippet codes. Read Nemo blog

 

Hi kyrios,

 

Thanks for your reply.

I am currently aware that nemos module works, I just dont know what i am doing or how to remove the code that you described. I hope you can help me with this.

 

edit: I read nemos blog about the codes, but i really have no clue what to remove from the product.tpl file.

Regards,

Peter

Edited by animuz1 (see edit history)

Share this post


Link to post
Share on other sites

This is how my product-list.tpl looks like. I highlighted the itemprop and itemscope. I dont know what you mean with "(*not the whole elements only properties)"

Sorry I am very new to this and really dont know what i have to do here.

 

{*

* 2007-2014 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Academic Free License (AFL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:

* http://opensource.org/licenses/afl-3.0.php

* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to license@prestashop.com so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

*  @author PrestaShop SA <contact@prestashop.com>

*  @copyright  2007-2014 PrestaShop SA

*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)

*  International Registered Trademark & Property of PrestaShop SA

*}

{if isset($products) && $products}

                {*define numbers of product per line in other page for desktop*}

                {if $page_name !='index' && $page_name !='product'}

                                {assign var='nbItemsPerLine' value=3}

                                {assign var='nbItemsPerLineTablet' value=2}

                                {assign var='nbItemsPerLineMobile' value=3}

                {else}

                                {assign var='nbItemsPerLine' value=4}

                                {assign var='nbItemsPerLineTablet' value=3}

                                {assign var='nbItemsPerLineMobile' value=2}

                {/if}

                {*define numbers of product per line in other page for tablet*}

                {assign var='nbLi' value=$products|@count}

                {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}

                {math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet}

                <!-- Products list -->

                <ul{if isset($id) && $id} id="{$id}"{/if} class="product_list grid row{if isset($class) && $class} {$class}{/if}">

                {foreach from=$products item=product name=products}

                                {math equation="(total%perLine)" total=$smarty.foreach.products.total perLine=$nbItemsPerLine assign=totModulo}

                                {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet}

                                {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineMobile assign=totModuloMobile}

                                {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}

                                {if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if}

                                {if $totModuloMobile == 0}{assign var='totModuloMobile' value=$nbItemsPerLineMobile}{/if}

                                <li class="ajax_block_product{if $page_name == 'index' || $page_name == 'product'} col-xs-12 col-sm-4 col-md-3{else} col-xs-12 col-sm-6 col-md-4{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLine == 0} last-in-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLine == 1} first-in-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModulo)} last-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 0} last-item-of-tablet-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 1} first-item-of-tablet-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 0} last-item-of-mobile-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 1} first-item-of-mobile-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModuloMobile)} last-mobile-line{/if}">

                                                <div class="product-container" itemscope itemtype="http://schema.org/Product">

                                                                <div class="left-block">

                                                                                <div class="product-image-container">

                                                                                                <a class="product_img_link"      href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url">

                                                                                                                <img class="replace-2x img-responsive" src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html':'UTF-8'}" alt="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} itemprop="image" />

                                                                                                </a>

                                                                                                {if isset($quick_view) && $quick_view}

                                                                                                                <div class="quick-view-wrapper-mobile">

                                                                                                                <a class="quick-view-mobile" href="{$product.link|escape:'html':'UTF-8'}" rel="{$product.link|escape:'html':'UTF-8'}">

                                                                                                                                <i class="icon-eye-open"></i>

                                                                                                                </a>

                                                                                                </div>

                                                                                                <a class="quick-view" href="{$product.link|escape:'html':'UTF-8'}" rel="{$product.link|escape:'html':'UTF-8'}">

                                                                                                                <span>{l s='Quick view'}</span>

                                                                                                </a>

                                                                                                {/if}

                                                                                                {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}

                                                                                                                <div class="content_price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">

                                                                                                                                {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}

                                                                                                                                                <span itemprop="price" class="price product-price">

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

                                                                                                                                                                {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}

                                                                                                {if isset($product.new) && $product.new == 1}

                                                                                                                <a class="new-box" href="{$product.link|escape:'html':'UTF-8'}">

                                                                                                                                <span class="new-label">{l s='New'}</span>

                                                                                                                </a>

                                                                                                {/if}

                                                                                                {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}

                                                                                                                <a class="sale-box" href="{$product.link|escape:'html':'UTF-8'}">

                                                                                                                                <span class="sale-label">{l s='Sale!'}</span>

                                                                                                                </a>

                                                                                                {/if}

                                                                                </div>

                                                                                {hook h="displayProductDeliveryTime" product=$product}

                                                                                {hook h="displayProductPriceBlock" product=$product type="weight"}

                                                                </div>

                                                                <div class="right-block">

                                                                                <h5 itemprop="name">

                                                                                                {if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if}

                                                                                                <a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url" >

                                                                                                                {$product.name|truncate:45:'...'|escape:'html':'UTF-8'}

                                                                                                </a>

                                                                                </h5>

                                                                                {hook h='displayProductListReviews' product=$product}

                                                                                <p class="product-desc" itemprop="description">

                                                                                                {$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}

                                                                                </p>

                                                                                {if (!$PS_CATALOG_MODE AND ((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 !$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}

                                                                                <div class="button-container">

                                                                                                {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE}

                                                                                                                {if (!isset($product.customization_required) || !$product.customization_required) && ($product.allow_oosp || $product.quantity > 0)}

                                                                                                                                {if isset($static_token)}

                                                                                                                                                <a class="button ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product="{$product.id_product|intval}">

                                                                                                                                                                <span>{l s='Add to cart'}</span>

                                                                                                                                                </a>

                                                                                                                                {else}

                                                                                                                                                <a class="button ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart',false, NULL, 'add=1&id_product={$product.id_product|intval}', false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product="{$product.id_product|intval}">

                                                                                                                                                                <span>{l s='Add to cart'}</span>

                                                                                                                                                </a>

                                                                                                                                {/if}

                                                                                                                {else}

                                                                                                                                <span class="button ajax_add_to_cart_button btn btn-default disabled">

                                                                                                                                                <span>{l s='Add to cart'}</span>

                                                                                                                                </span>

                                                                                                                {/if}

                                                                                                {/if}

                                                                                                <a itemprop="url" class="button lnk_view btn btn-default" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View'}">

                                                                                                                <span>{if (isset($product.customization_required) && $product.customization_required)}{l s='Customize'}{else}{l s='More'}{/if}</span>

                                                                                                </a>

                                                                                </div>

                                                                                {if isset($product.color_list)}

                                                                                                <div class="color-list-container">{$product.color_list}</div>

                                                                                {/if}

                                                                                <div class="product-flags">

                                                                                                {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}

                                                                                                                {if isset($product.online_only) && $product.online_only}

                                                                                                                                <span class="online_only">{l s='Online only'}</span>

                                                                                                                {/if}

                                                                                                {/if}

                                                                                                {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}

                                                                                                                {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}

                                                                                                                                <span class="discount">{l s='Reduced price!'}</span>

                                                                                                                {/if}

                                                                                </div>

                                                                                {if (!$PS_CATALOG_MODE && $PS_STOCK_MANAGEMENT && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}

                                                                                                {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}

                                                                                                                <span itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="availability">

                                                                                                                                {if ($product.allow_oosp || $product.quantity > 0)}

                                                                                                                                                <span class="{if $product.quantity <= 0 && !$product.allow_oosp}out-of-stock{else}available-now{/if}">

                                                                                                                                                                <link itemprop="availability" href="http://schema.org/InStock" />{if $product.quantity <= 0}{if $product.allow_oosp}{if isset($product.available_later) && $product.available_later}{$product.available_later}{else}{l s='In Stock'}{/if}{else}{l s='Out of stock'}{/if}{else}{if isset($product.available_now) && $product.available_now}{$product.available_now}{else}{l s='In Stock'}{/if}{/if}

                                                                                                                                                </span>

                                                                                                                                {elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}

                                                                                                                                                <span class="available-dif">

                                                                                                                                                                <link itemprop="availability" href="http://schema.org/LimitedAvailability" />{l s='Product available with different options'}

                                                                                                                                                </span>

                                                                                                                                {else}

                                                                                                                                                <span class="out-of-stock">

                                                                                                                                                                <link itemprop="availability" href="http://schema.org/OutOfStock" />{l s='Out of stock'}

                                                                                                                                                </span>

                                                                                                                                {/if}

                                                                                                                </span>

                                                                                                {/if}

                                                                                {/if}

                                                                </div>

                                                                {if $page_name != 'index'}

                                                                                <div class="functional-buttons clearfix">

                                                                                                {hook h='displayProductListFunctionalButtons' product=$product}

                                                                                                {if isset($comparator_max_item) && $comparator_max_item}

                                                                                                                <div class="compare">

                                                                                                                                <a class="add_to_compare" href="{$product.link|escape:'html':'UTF-8'}" data-id-product="{$product.id_product}">{l s='Add to Compare'}</a>

                                                                                                                </div>

                                                                                                {/if}

                                                                                </div>

                                                                {/if}

                                                </div><!-- .product-container> -->

                                </li>

                {/foreach}

                </ul>

{addJsDefL name=min_item}{l s='Please select at least one product' js=1}{/addJsDefL}

{addJsDefL name=max_item}{l s='You cannot add more than %d product(s) to the product comparison' sprintf=$comparator_max_item js=1}{/addJsDefL}

{addJsDef comparator_max_item=$comparator_max_item}

{addJsDef comparedProductsIds=$compared_products}

{/if}

Share this post


Link to post
Share on other sites

animuz1, this is an extremely an easy task.

Have you read?

https://support.google.com/webmasters/answer/146750?hl=en

 

Read it 2 times. If you still not understand, read it again. If you already suspect the code, remove it.

THERE'S ALREADY Google Rich Snippet Test available, Use it.

 

After remove, check it. If the code still shown rich snippet, you wrongly cut the code.

Try cutting difference code again untill no rich snippet shown.

 

That's all

Share this post


Link to post
Share on other sites

Thank you so much nemo for your help once again.

 

Sorry i made you lose your patience with me kyrios. THings arent as easy for me with building an webstore.

 

Regards,

Peter

Share this post


Link to post
Share on other sites
  • 5 weeks later...

Hi Nemo,

I have a problem with the rich snippets.

I followed your exact tutorial but I get the following 2 errors when I test it:

Price error

URL error

 

I attached a picture with them!

 

 

Thanks,

Dan

www.metalicshop.com

post-60481-0-46867100-1424533058_thumb.png

Edited by DanDobras (see edit history)

Share this post


Link to post
Share on other sites

It seems you have plenty of javascript errors, they might be interfering as I can see -- Lei instead of the correct price

 

Hi Nemo,

 

--Lei  is my currency

 

What can I do regarding the javascript errors?

Any idea will be highly appreciated.

 

Thanks!

Share this post


Link to post
Share on other sites

One of them seems to be related to facebook, try disabling all facebook related modules and see if it disappears

 

I just tried but the problem still persists.

Also I tried to install the module on a friends shop and he has the same problem. He doesn't have any facebook account, it is the ps1.5.6.2 almost out of the box.

Share this post


Link to post
Share on other sites