Page 10 of 10

Re: @tik Google Rich Snippets 2.0

Posted: Mon Dec 08, 2014 9:47 pm
by upgrader
For anyone else with the same problem I stated above, try the following.

In the "z-google-rich-snippets-2.xml" file

Find on line 37

Code: Select all

<add><![CDATA[<div><div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"><img src="catalog/view/theme/default/image/stars-<?php echo round($rating); ?>.png" alt="<?php echo round($rating,1); ?>" title="<?php echo round($rating,1).'* ('.$reviews.') '; ?>" /> (<span itemprop="ratingValue"><?php echo round($rating,1); ?></span>/5)]]></add>
and change to

Code: Select all

<add><![CDATA[<div><?if($product_info['rating']):?><div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"><img src="catalog/view/theme/default/image/stars-<?php echo round($rating); ?>.png" alt="<?php echo round($rating,1); ?>" title="<?php echo round($rating,1).'* ('.$reviews.') '; ?>" /> (<span itemprop="ratingValue"><?php echo round($rating,1); ?></span>/5)<?endif?>]]></add>
Then on line 41 find

Code: Select all

<add><![CDATA[<span itemprop="reviewCount"><?php echo $reviews; ?></span>]]></add>
and change to

Code: Select all

<add><![CDATA[<?if($product_info['rating']):?><span itemprop="reviewCount"><?endif?><?php echo $reviews; ?></span>]]></add>
Now if product has no reviews, then no rich snippet review code will be shown in source code.
Hope it helps others.

Re: @tik Google Rich Snippets 2.0

Posted: Sun Dec 14, 2014 9:52 pm
by mrwell
Hello @tik
I've been trying to get your usefull extention to work, no luck.
I get this in my log file and tried to work things out by myself, does not work:


12-14 13:05:48 ~ IP : 2.26.87.26 ----------
MOD DETAILS:
modFile : ............/vqmod/xml/custom_image_titles.xml
id : Add custom titles and alternative messages for all product and category images together with image sort order
version : 2.5.0
vqmver : 2.3.2
author : bull5-i

File Name : catalog/view/theme/*/template/product/product.tpl(0)
VQModObject::applyMod - SEARCH NOT FOUND (ABORTING MOD): <div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a></div>

MOD DETAILS:
modFile : ........./vqmod/xml/z-google-rich-snippets-2.xml
id : @tik Google Rich Snippets p2
version : 1.9.9
vqmver : 2.4.1
author : OC2PS

File Name : catalog/view/theme/*/template/product/product.tpl(2)
VQModObject::applyMod - SEARCH NOT FOUND (ABORTING MOD): src="<?php echo $thumb; ?>"

----------------------------------------------------------------------


---------- Date: 2014-12-14 13:05:49 ~ IP : 2.26.87.26 ----------
REQUEST URI : /index.php?route=product/product/review&product_id=78
MOD DETAILS:
modFile : ......../vqmod/xml/z-google-rich-snippets-2.xml
id : @tik Google Rich Snippets p2
version : 1.9.9
vqmver : 2.4.1
author : OC2PS

File Name : catalog/view/theme/*/template/product/review.tpl(4)
VQModObject::applyMod - SEARCH NOT FOUND (ABORTING MOD): <img src="catalog/view/theme/default/image/stars-<?php echo $review['rating'] . '.png'; ?>" alt="<?php echo $review['reviews']; ?>" />

----------------------------------------------------------------------


---------- Date: 2014-12-14 13:05:50 ~ IP : 2.26.87.26 ----------
REQUEST URI : /
MOD DETAILS:
modFile : ....../vqmod/xml/z-google-rich-snippets-2.xml
id : @tik Google Rich Snippets p2
version : 1.9.9
vqmver : 2.4.1
author : OC2PS

File Name : catalog/view/theme/*/template/module/latest.tpl(0)
VQModObject::applyMod - SEARCH NOT FOUND (ABORTING MOD): stars-<?php echo $product['rating']; ?>.png"

How can I get it fixed with your help?
Thank you.

Re: @tik Google Rich Snippets 2.0

Posted: Fri Jan 23, 2015 10:15 pm
by Khal
Hi

Great extension- thanks for making it free. I had it on my old site, but I've recently switched to OC2.0.1.1. Just wondering if you have any plans to make a version compatible with OC 2.0.1.1?

Many thanks

Re: @tik Google Rich Snippets 2.0

Posted: Mon Mar 30, 2015 8:58 am
by zaidladha
Hi,
any ideas? on checkout I get this error when it gets to shipping method
:
Fatal error: Call to a member function getElementsByTagName() on a non-object in /var/www/html/catalog/model/shipping/canada_post_ws_rest.class.php on line 161

Re: @tik Google Rich Snippets 2.0

Posted: Tue May 12, 2015 12:06 am
by stokeyblokey
I had lots of errors in Webmaster Tools about the reviews when using this mod (only started giving errors recently) - to fix it I changed line 37 like so:

Code: Select all

<add><![CDATA[<div><div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"><img src="catalog/view/theme/default/image/stars-<?php echo round($rating); ?>.png" alt="<?php echo round($rating,1); ?>" title="<?php echo round($rating,1).'* ('.$reviews.') '; ?>" /> <meta itemprop="worstRating" content="0"/>
<meta itemprop="bestRating" content="5" /> (<span itemprop="ratingValue"><?php echo round($rating,1); ?></span>/5)]]></add>
This fixes the "failed to normalize the rating value" error by defining worst rating as 0 and sets min and max rating values to remove the other error.

Hope this is right, and that it helps someone!

Stokey

Re: @tik Google Rich Snippets 2.0

Posted: Sat May 23, 2015 12:51 pm
by zzzxxccvvv
Hi,

thank you for this great extension.

I have a question. Is there a way to stop google showing the price in the results? I don't want the customers to see the price from google search page.

Regards,

Re: @tik Google Rich Snippets 2.0

Posted: Sat Jun 13, 2015 9:49 pm
by jonidfld
@stokeyblokey

Thanks - this worked perfectly for me!

Re: @tik Google Rich Snippets 2.0

Posted: Thu Dec 24, 2015 7:00 pm
by chibao
I have question that I would like to remove reviews and stars on Google search by hiding star and reviews in opencart, is this possible?
If not, is there any way to hide it on Google search because my store just opened and there's no one come and review.

Re: @tik Google Rich Snippets 2.0

Posted: Mon May 23, 2016 3:46 pm
by skyline1983
Can you help me to customyze module? product type is unknown!

Re: @tik Google Rich Snippets 2.0

Posted: Thu May 26, 2016 4:28 am
by i2Paq
Any update for 2.2?

Re: @tik Google Rich Snippets 2.0

Posted: Mon Dec 05, 2016 6:43 am
by skip
OC 2.0.2.0, vQmod 2.5.1, Default theme

what does this mean ? I dont see download, only donate link, sory if I wass missed something

Re: @tik Google Rich Snippets 2.0

Posted: Fri Jan 06, 2017 5:10 am
by Dunald
Hi!
Can the product image show in Google result when using this vqmod?