[Skip to main content](#vessel-content)

#   No Microdata Generated in Product Page

##

- **[mymall](/forum/user/36279-mymall "View mymall's Profile")**
- [![mymall's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36279-mymall "View mymall's Profile") Topic Author
- [ Offline](/forum/user/36279-mymall)

Less More

- Posts: 72
- Thank you received: 0
-
-

11 years 7 months ago [\#195746](#195746) by [mymall](/forum/user/36279-mymall "View mymall's Profile")  *[No Microdata Generated in Product Page](/forum/26-product-category-display/875853-no-microdata-generated-in-product-page#195746 "-- HikaShop version -- : 2.4.0  hi after upgrading to hikashop 2.4 business, I do not see microdata generated in product page it was there till we upgraded to 2.4")* was created by *[mymall](/forum/user/36279-mymall "View mymall's Profile")*

-- HikaShop version -- : 2.4.0

hi
after upgrading to hikashop 2.4 business, I do not see microdata generated in product page
it was there till we upgraded to 2.4

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4NTMtbm8tbWljcm9kYXRhLWdlbmVyYXRlZC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

11 years 7 months ago [\#195755](#195755) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[No Microdata Generated in Product Page](/forum/26-product-category-display/875853-no-microdata-generated-in-product-page#195755 "-- HikaShop version -- : 2.4.0  hi after upgrading to hikashop 2.4 business, I do not see microdata generated in product page it was there till we upgraded to 2.4")*

Hi,

What was your previous HikaShop version number ?
Is the plugin "system / producttag" right published ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4NTMtbm8tbWljcm9kYXRhLWdlbmVyYXRlZC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mymall](/forum/user/36279-mymall "View mymall's Profile")**
- [![mymall's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36279-mymall "View mymall's Profile") Topic Author
- [ Offline](/forum/user/36279-mymall)

Less More

- Posts: 72
- Thank you received: 0
-
-

11 years 7 months ago [\#195791](#195791) by [mymall](/forum/user/36279-mymall "View mymall's Profile")  Replied by *[mymall](/forum/user/36279-mymall "View mymall's Profile")* on topic *[No Microdata Generated in Product Page](/forum/26-product-category-display/875853-no-microdata-generated-in-product-page#195791 "-- HikaShop version -- : 2.4.0  hi after upgrading to hikashop 2.4 business, I do not see microdata generated in product page it was there till we upgraded to 2.4")*

hi
it was 2.3.5
and there are no system / producttag plugin installed under this name
there are
System / HikaShop product tag translation plugin and its published
editors-xtd / Hikashop product tag insertion plugin and its published
also
System / HikaShop Microdata on Product Page plugin is published

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4NTMtbm8tbWljcm9kYXRhLWdlbmVyYXRlZC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 7 months ago [\#195862](#195862) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[No Microdata Generated in Product Page](/forum/26-product-category-display/875853-no-microdata-generated-in-product-page#195862 "-- HikaShop version -- : 2.4.0  hi after upgrading to hikashop 2.4 business, I do not see microdata generated in product page it was there till we upgraded to 2.4")*

Hi,

Here is the latest version of the microdata plugin:

*This attachment is hidden for guests.
Please log in or register to see it.*

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4NTMtbm8tbWljcm9kYXRhLWdlbmVyYXRlZC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mymall](/forum/user/36279-mymall "View mymall's Profile")**
- [![mymall's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36279-mymall "View mymall's Profile") Topic Author
- [ Offline](/forum/user/36279-mymall)

Less More

- Posts: 72
- Thank you received: 0
-
-

11 years 7 months ago [\#195897](#195897) by [mymall](/forum/user/36279-mymall "View mymall's Profile")  Replied by *[mymall](/forum/user/36279-mymall "View mymall's Profile")* on topic *[No Microdata Generated in Product Page](/forum/26-product-category-display/875853-no-microdata-generated-in-product-page#195897 "-- HikaShop version -- : 2.4.0  hi after upgrading to hikashop 2.4 business, I do not see microdata generated in product page it was there till we upgraded to 2.4")*

hi again
please note after installing the plugin, the microdata start generating in product page, however, strange behavior of the website , for example, some modules start disappear and not showing on some pages
once I unpublished the plugin, it back to normal

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4NTMtbm8tbWljcm9kYXRhLWdlbmVyYXRlZC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

11 years 7 months ago [\#195923](#195923) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No Microdata Generated in Product Page](/forum/26-product-category-display/875853-no-microdata-generated-in-product-page#195923 "-- HikaShop version -- : 2.4.0  hi after upgrading to hikashop 2.4 business, I do not see microdata generated in product page it was there till we upgraded to 2.4")*

Hi,

We found the issue and patched HikaShop. Download again the latest version install package via the menu My account&gt;My subscriptions on our website and install it on yours via the Joomla installer and it will add the patch and it will work fine again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4NTMtbm8tbWljcm9kYXRhLWdlbmVyYXRlZC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[vlanciu](/forum/user/36395-vlanciu "View vlanciu's Profile")**
- [![vlanciu's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36395-vlanciu "View vlanciu's Profile")
- [ Offline](/forum/user/36395-vlanciu)

Less More

- Posts: 19
- Thank you received: 2
-
-

11 years 7 months ago [\#198228](#198228) by [vlanciu](/forum/user/36395-vlanciu "View vlanciu's Profile")  Replied by *[vlanciu](/forum/user/36395-vlanciu "View vlanciu's Profile")* on topic *[No Microdata Generated in Product Page](/forum/26-product-category-display/875853-no-microdata-generated-in-product-page#198228 "-- HikaShop version -- : 2.4.0  hi after upgrading to hikashop 2.4 business, I do not see microdata generated in product page it was there till we upgraded to 2.4")*

I had same problem, after downloaded last version it solved , thank you guys for quick solution.
If I activate comments for my products It seams like the structured attributes are not generated correctly.
If I test product page in Google Structured Data TestingTool it gives next error:
*The review has no reviewed item specified.
*author: missing and required
*The review has no reviewed item specified.
You can even access and see my page : [ www.dermaquestskincare.com/dermaquest-on...lgae-polishing-scrub](http://www.dermaquestskincare.com/dermaquest-online-shop/product/2-algae-polishing-scrub)
It looks like the micro-data plug-in generate itemprop="reviews" for whole div , but should only for specific review.
Is there a way to fix it? Cause I think it's the problem that google doesn't want to show rating in search result.
Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4NTMtbm8tbWljcm9kYXRhLWdlbmVyYXRlZC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 7 months ago [\#198348](#198348) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[No Microdata Generated in Product Page](/forum/26-product-category-display/875853-no-microdata-generated-in-product-page#198348 "-- HikaShop version -- : 2.4.0  hi after upgrading to hikashop 2.4 business, I do not see microdata generated in product page it was there till we upgraded to 2.4")*

Hi,

The comments are listed in tables, for each comment the table containing the informations has the attribute itemprop="reviews".
Then in the table you can find a span for the itemprop="author", and another one for itemprop="description"

So I think that all the informations are present in the page. Do you have more informations about how the itemprop properties should be ?

To edit the informations, the view "vote / listing" needs to be edited.
[ www.hikashop.com/support/support/documen...ize-the-display.html](http://www.hikashop.com/support/support/documentation/153-customize-the-display.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4NTMtbm8tbWljcm9kYXRhLWdlbmVyYXRlZC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[vlanciu](/forum/user/36395-vlanciu "View vlanciu's Profile")**
- [![vlanciu's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36395-vlanciu "View vlanciu's Profile")
- [ Offline](/forum/user/36395-vlanciu)

Less More

- Posts: 19
- Thank you received: 2
-
-

11 years 7 months ago [\#198430](#198430) by [vlanciu](/forum/user/36395-vlanciu "View vlanciu's Profile")  Replied by *[vlanciu](/forum/user/36395-vlanciu "View vlanciu's Profile")* on topic *[No Microdata Generated in Product Page](/forum/26-product-category-display/875853-no-microdata-generated-in-product-page#198430 "-- HikaShop version -- : 2.4.0  hi after upgrading to hikashop 2.4 business, I do not see microdata generated in product page it was there till we upgraded to 2.4")*

Hi Xavier,
I think that plugin generates one extra itemprop="reviews" for div reviews container.
This cause the problem.
Best regards.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4NTMtbm8tbWljcm9kYXRhLWdlbmVyYXRlZC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[vlanciu](/forum/user/36395-vlanciu "View vlanciu's Profile")**
- [![vlanciu's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36395-vlanciu "View vlanciu's Profile")
- [ Offline](/forum/user/36395-vlanciu)

Less More

- Posts: 19
- Thank you received: 2
-
-

11 years 7 months ago [\#198461](#198461) by [vlanciu](/forum/user/36395-vlanciu "View vlanciu's Profile")  Replied by *[vlanciu](/forum/user/36395-vlanciu "View vlanciu's Profile")* on topic *[No Microdata Generated in Product Page](/forum/26-product-category-display/875853-no-microdata-generated-in-product-page#198461 "-- HikaShop version -- : 2.4.0  hi after upgrading to hikashop 2.4 business, I do not see microdata generated in product page it was there till we upgraded to 2.4")*

I found there few errors:
- there no itemprop='reviews' it must be itemprop="review"
- You can't have a review without author, otherwise it will not pass validation by Google Structure data test tool.
- I removed itemprope="reviews" from div with id="hikashop_product_vote_listing"
- and added next check for verification if comment list is not empty :
if(strpos($product_page_parts[1],'class="hika_comment_listing_empty"')==false){
$pattern='/class="ui-corner-all hika_comment_listing"/';
$replacement='class="ui-corner-all hika_comment_listing" itemprop="review" itemscope itemtype="[ schema.org/Review](http://schema.org/Review)"';
$product_page_parts[1] = preg_replace($pattern,$replacement,$product_page_parts[1]);
}
All modifications were done in plugins/system/hikashopproducttag/hikashopproducttag.php

It might be useful for somebody else, now I don't have any errors on google structure tool test.

Best regards

The following user(s) said Thank You: [BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4NTMtbm8tbWljcm9kYXRhLWdlbmVyYXRlZC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 7 months ago [\#198497](#198497) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[No Microdata Generated in Product Page](/forum/26-product-category-display/875853-no-microdata-generated-in-product-page#198497 "-- HikaShop version -- : 2.4.0  hi after upgrading to hikashop 2.4 business, I do not see microdata generated in product page it was there till we upgraded to 2.4")*

Hi,

Thank you for the report and the modifications.
We just updated the code on our end based on your informations.

Best regards,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4NTMtbm8tbWljcm9kYXRhLWdlbmVyYXRlZC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")**
- [![BeLlSiBuB's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")
- [ Offline](/forum/user/17367-bellsibub)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 6 months ago -  11 years 6 months ago [\#199408](#199408) by [BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")  Replied by *[BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")* on topic *[No Microdata Generated in Product Page](/forum/26-product-category-display/875853-no-microdata-generated-in-product-page#199408 "-- HikaShop version -- : 2.4.0  hi after upgrading to hikashop 2.4 business, I do not see microdata generated in product page it was there till we upgraded to 2.4")*

I upgraded to latest version of Hikashop but still have the Tool Test errors listed on this thread. Perhaps Hikashop has not been updated with the fix yet?

I removed the "s" from reviews in "hikashopproducttag.php" which fixed 3 errors for me, but a little confused where to place the code to fix the other errors. Please see attachment

Errors:
Failed to normalise the rating value.
Your rating value was out of the default range, you must provide best and worst values.
author: missing and required

Here is the plugin page. Can you tell me what I need to replace please?
Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.4.0 * @author hikashop.com * @copyright (C) 2010-2015 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;?php defined('_JEXEC') or die('Restricted access'); ?&gt; &lt;?php class plgSystemHikashopproducttag extends JPlugin { function onHikashopBeforeDisplayView(&amp;$view){ $option = JRequest::getString('option'); $ctrl = JRequest::getString('ctrl'); $task = JRequest::getString('task'); if ($option!='com_hikashop'&#124;&#124;$ctrl!='product'&#124;&#124;$task!='show') return; ob_start(); } function onHikashopAfterDisplayView(&amp;$view){ $option = JRequest::getString('option'); $ctrl = JRequest::getString('ctrl'); $task = JRequest::getString('task'); if ($option!='com_hikashop'&#124;&#124;$ctrl!='product'&#124;&#124;$task!='show') return; $config =&amp; hikashop_config(); $default_params = $config-&gt;get('default_params'); $product_page = ob_get_clean(); $product_page_parts = explode('class="hikashop_product_page ', $product_page); if(!empty($product_page_parts[1])){ $product_page_parts[1] = 'itemscope itemtype="http://schema.org/Product" class="hikashop_product_page ' .$product_page_parts[1]; $pattern='/id="hikashop_product_name_main"/'; $replacement='id="hikashop_product_name_main" itemprop="name"'; $product_page_parts[1] = preg_replace($pattern,$replacement,$product_page_parts[1],1); if($default_params['show_price'] == 1){ $currency_id = hikashop_getCurrency(); $null = null; $currencyClass = hikashop_get('class.currency'); $currencies = $currencyClass-&gt;getCurrencies($currency_id,$null); $data=$currencies[$currency_id]; $pattern='/&lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt;/'; $replacement= '&lt;div itemprop="offers" itemscope itemtype="http://schema.org/Offer"&gt;&lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt;&lt;meta itemprop="priceCurrency" content="'.$data-&gt;currency_code.'" /&gt;'; $product_page_parts[1] = preg_replace($pattern,$replacement,$product_page_parts[1],1); $pattern='/&lt;(span&#124;div) id="(hikashop_product_weight_main&#124;hikashop_product_width_main&#124;hikashop_product_length_main&#124;hikashop_product_height_main&#124;hikashop_product_characteristics&#124;hikashop_product_options&#124;hikashop_product_custom_item_info&#124;hikashop_product_price_with_options_main&#124;hikashop_product_quantity_main)"/'; $replacement='&lt;/div&gt; &lt;$1 id="$2"'; $product_page_parts[1] = preg_replace($pattern,$replacement,$product_page_parts[1],1); $pattern='/class="hikashop_product_price_main"(.*)class="hikashop_product_price hikashop_product_price_0/msU'; $replacement='class="hikashop_product_price_main" $1 itemprop="price" class="hikashop_product_price hikashop_product_price_0'; $product_page_parts[1] = preg_replace($pattern,$replacement,$product_page_parts[1],1); } $pattern='/id="hikashop_product_vote_listing"/'; $replacement='id="hikashop_product_vote_listing" itemprop="review" itemscope itemtype="http://schema.org/Review"'; $product_page_parts[1] = preg_replace($pattern,$replacement,$product_page_parts[1],1); $pattern='/class="ui-corner-all hika_comment_listing"/'; $replacement='class="ui-corner-all hika_comment_listing" itemprop="review" itemscope itemtype="http://schema.org/Review"'; $product_page_parts[1] = preg_replace($pattern,$replacement,$product_page_parts[1]); $pattern='/class="hikashop_vote_listing_comment"/'; $replacement='class="hikashop_vote_listing_comment" itemprop="description"'; $product_page_parts[1] = preg_replace($pattern,$replacement,$product_page_parts[1]); $pattern='/class="hika_comment_listing_content"/'; $replacement='class="hika_comment_listing_content" itemprop="description"'; $product_page_parts[1] = preg_replace($pattern,$replacement,$product_page_parts[1]); $pattern='/class="hikashop_vote_listing_username"/'; $replacement='class="hikashop_vote_listing_username" itemprop="author"'; $product_page_parts[1] = preg_replace($pattern,$replacement,$product_page_parts[1]); $pattern='/class="hika_vote_listing_username"/'; $replacement='class="hika_vote_listing_username" itemprop="author"'; $product_page_parts[1] = preg_replace($pattern,$replacement,$product_page_parts[1]); $pattern='/class="hikashop_product_description_main"/'; $replacement='class="hikashop_product_description_main" itemprop="description"'; $product_page_parts[1] = preg_replace($pattern,$replacement,$product_page_parts[1],1); $pattern='/class="hikashop_vote_stars"/'; $replacement='class="hikashop_vote_stars" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"'; $product_page_parts[1] = preg_replace($pattern,$replacement,$product_page_parts[1],1); $pattern='/id="hikashop_main_image"/'; $replacement='id="hikashop_main_image" itemprop="image"'; $product_page_parts[1] = preg_replace($pattern,$replacement,$product_page_parts[1]); $ratemax=JRequest::getVar("nb_max_star");//nbmax $raterounded=JRequest::getVar("rate_rounded");//moy $pattern='/(&lt;span\s+class="hikashop_total_vote")/iUs'; $replacement = '&lt;span style="display:none" itemprop="ratingValue"&gt;'.$raterounded.'&lt;/span&gt;&lt;span style="display:none" itemprop="bestRating"&gt;'.$ratemax.'&lt;/span&gt;$1 itemprop="reviewCount"'; $product_page_parts[1] = preg_replace($pattern,$replacement,$product_page_parts[1],1); } foreach($product_page_parts as $parts){ echo $parts; } } }

- [ ![rich-snippets-errors.jpg](/forum/attachment/23931) ](/forum/attachment/23931 "...ets-errors.jpg") [ ](/forum/attachment/23931?download=1 "...ets-errors.jpg")

Last edit: 11 years 6 months ago by [BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4NTMtbm8tbWljcm9kYXRhLWdlbmVyYXRlZC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[vlanciu](/forum/user/36395-vlanciu "View vlanciu's Profile")**
- [![vlanciu's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36395-vlanciu "View vlanciu's Profile")
- [ Offline](/forum/user/36395-vlanciu)

Less More

- Posts: 19
- Thank you received: 2
-
-

11 years 6 months ago [\#199411](#199411) by [vlanciu](/forum/user/36395-vlanciu "View vlanciu's Profile")  Replied by *[vlanciu](/forum/user/36395-vlanciu "View vlanciu's Profile")* on topic *[No Microdata Generated in Product Page](/forum/26-product-category-display/875853-no-microdata-generated-in-product-page#199411 "-- HikaShop version -- : 2.4.0  hi after upgrading to hikashop 2.4 business, I do not see microdata generated in product page it was there till we upgraded to 2.4")*

Hi BeLlSiBuB,
you should remove
- itemprop="review" from id="hikashop_product_vote_listing"
- add check to validate if review list is not empty in that case add structured tags
- also from hikashop back-end I activated the requirement of user name and e-mail for writing comments, it makes to have author tag (which is required by schema.org)

Please see attached my final hikashopproducttag.php

*This attachment is hidden for guests.
Please log in or register to see it.*

Think it will help you.
Br.

The following user(s) said Thank You: [BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4NTMtbm8tbWljcm9kYXRhLWdlbmVyYXRlZC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")**
- [![BeLlSiBuB's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")
- [ Offline](/forum/user/17367-bellsibub)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 6 months ago -  11 years 6 months ago [\#199412](#199412) by [BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")  Replied by *[BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")* on topic *[No Microdata Generated in Product Page](/forum/26-product-category-display/875853-no-microdata-generated-in-product-page#199412 "-- HikaShop version -- : 2.4.0  hi after upgrading to hikashop 2.4 business, I do not see microdata generated in product page it was there till we upgraded to 2.4")*

Thanks vlanciu. That works ![:)](/media/kunena/emoticons/3.png ":)")

Not sure what you mean by this:
*add check to validate if review list is not empty in that case add structured tags* :oops:

Now when I test a product page with 1 rating I get **"All good"**.
But...
When I test a product page with 2 ratings I get these errors:
Failed to normalise the rating value.
Your rating value was out of the default range, you must provide best and worst values.

I would have thought if it works for one review it should work better for 2 reviews?

Update: Seems to concern the Ratings only and not the comments as when I delete a comment I still get the error presumably because there are still 2 votes.
Update 2: FIXED! My Product was called: Chicken &amp; Broad Bean Pie causing a weird URL, *product/cid-6* .
I had to replace the &amp; with "and". Now all seems to be working ok. Thanks for your help!

- [ ![snippets-all-good.jpg](/forum/attachment/23934) ](/forum/attachment/23934 "...s-all-good.jpg") [ ](/forum/attachment/23934?download=1 "...s-all-good.jpg")
- [ ![snippets-multiple-reviews-errors.jpg](/forum/attachment/23935) ](/forum/attachment/23935 "...ews-errors.jpg") [ ](/forum/attachment/23935?download=1 "...ews-errors.jpg")

Last edit: 11 years 6 months ago by [BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4NTMtbm8tbWljcm9kYXRhLWdlbmVyYXRlZC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mymall](/forum/user/36279-mymall "View mymall's Profile")**
- [![mymall's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36279-mymall "View mymall's Profile") Topic Author
- [ Offline](/forum/user/36279-mymall)

Less More

- Posts: 72
- Thank you received: 0
-
-

11 years 5 months ago [\#204347](#204347) by [mymall](/forum/user/36279-mymall "View mymall's Profile")  Replied by *[mymall](/forum/user/36279-mymall "View mymall's Profile")* on topic *[No Microdata Generated in Product Page](/forum/26-product-category-display/875853-no-microdata-generated-in-product-page#204347 "-- HikaShop version -- : 2.4.0  hi after upgrading to hikashop 2.4 business, I do not see microdata generated in product page it was there till we upgraded to 2.4")*

Dear Sir
am facing a problem of having the ratingValue all the time is coming as 0, while I checked the product voting_average_score is 4.5.
am checking my product page with google webmaster tools and it says
Failed to normalise the rating value.
Your rating value was out of the default range, you must provide best and worst values.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4NTMtbm8tbWljcm9kYXRhLWdlbmVyYXRlZC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 5 months ago [\#204358](#204358) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[No Microdata Generated in Product Page](/forum/26-product-category-display/875853-no-microdata-generated-in-product-page#204358 "-- HikaShop version -- : 2.4.0  hi after upgrading to hikashop 2.4 business, I do not see microdata generated in product page it was there till we upgraded to 2.4")*

Hi,

Please edit the file "plugins/system/hikashopproducttag/hikashopproducttag.php" and replace: Code:

$replacement = '&lt;span style="display:none" itemprop="ratingValue"&gt;'.$raterounded.'&lt;/span&gt;&lt;span style="display:none" itemprop="bestRating"&gt;'.$ratemax.'&lt;/span&gt;$1 itemprop="reviewCount"';

By: Code:

preg_match('/&lt;input type="hidden" name="hikashop_vote_rating" .* data-rate="(.*)"/U',$product_page_parts[1],$matches); $replacement = '&lt;span style="display:none" itemprop="ratingValue"&gt;'.$matches[1].'&lt;/span&gt;&lt;span style="display:none" itemprop="bestRating"&gt;'.$ratemax.'&lt;/span&gt;$1 itemprop="reviewCount"';

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU4NTMtbm8tbWljcm9kYXRhLWdlbmVyYXRlZC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.126 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
