News:

Looking for documentation? Take a look on our wiki

Main Menu

Reviews - Rich snippets

Started by dylanphelan, November 01, 2018, 11:01:27 AM

Previous topic - Next topic

dylanphelan

Hi

I am using VM 3.2.14 - not yet updated as my template developer is not yet updated their template.

I have noticed an issue with Google reviews rich snippets. Google is picking up the basic rating / votes for rich snippets and is ignoring the reviews (which have a rating). I think the reviews provided far better information.

I bought Google structured data from tassos.gr but this has not solved the issue.

when i look at my source code it still shows

    },
    "aggregateRating": {
        "ratingValue": 5,
        "reviewCount": 1,
        "worstRating": 0,
        "bestRating": 5
    }

I have far more ratings / reviews than that.

I asked tassos about this, but he said I must ask you as his plugin picks up data from the VM API.

would really appreciate some advice.

GJC Web Design

your example.. is it a single product or product with children?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

dylanphelan

this is happening in both - with or without children

I thought that maybe the reviews tables were corrupted cause i worked directly in them. Emptied them added the  reviews from the backend, but it still just shows a review count of 1

GJC Web Design

afaik with children doesn't work because each child is a separate product id and reviews are stored against pids?

do more than one review show on the page?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

dylanphelan

yes I get that, I am testing this on the parent products as well as a product that has no children.

yes many more than one review will show up, but the rich snippet keeps saying that there is only one review. this then displays on google

dylanphelan

this looks like an issue to me. If i look at table:

xxx_virtuemart_ratings - it only shows one rating with id=1

but if i look at

xxx_virtuemart_rating_reviews - it shows all the reviews with different id's

that makes me think that the first table is not supposed to be there! going to try a few things

GJC Web Design

code just counts the number of ratings in the result from

'SELECT * FROM `#__virtuemart_ratings` WHERE `virtuemart_product_id` = "'.(int)$product_id.'" ';

and calls it the review count  - "reviewCount": "<?php echo $productratingcount; ?>"

if u say it should count reviews ( I don't know - I never use the core rating/reviews part - I have my own extension) then i guess something like

$totalreviews = $ratingModel->getProductReviewForUser($product->virtuemart_product_id);
   $productratingcount = count($totalreviews);
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

dylanphelan

This was some feedback from the Google Structured Data developer:

As for the Virtuemart Rating issue, tell Virtuemart support also that GSD is pulling the Rating using the getRatingByProduct() method, in case they ask you how the plugin works.

GJC Web Design

I've just suggested changes above..

Did u try my example?
As I say .. I don't use this stuff
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation