News:

Looking for documentation? Take a look on our wiki

Main Menu

rich snippets / structured data

Started by vaineh, November 28, 2017, 16:08:32 PM

Previous topic - Next topic

vaineh

Hi there,

do I need to enable rich snippets / structured data anyway in virtuemart configuration?

From what I've read it I thought it was just built in, but on my test setup it's not working; https://search.google.com/structured-data/testing-tool#url=http%3A%2F%2Fdev.cariss.co.uk%2Ftcm%2Fproducts%2Fsponges%2Fhost-sponges-detail

I even switched to the beez3 template thinking maybe it was a problem with my template but it's the same; http://dev.cariss.co.uk/tcm/products/sponges/host-sponges-detail

Is there something I need to do or change to enable rich snippets?

many thanks

AH

It is enabled by default

But I cannot see it in your product page.

Your sales price has to > 0

if ($this->product->prices['salesPrice'] > 0) {
  echo shopFunctionsF::renderVmSubLayout('snippets',array('product'=>$this->product, 'currency'=>$this->currency, 'showRating'=>$this->showRating));
}
Regards
A

Joomla 4.4.5
php 8.1

vaineh

Aha, many thanks. I'll have a look at changing it so that it can show when price is 0.

Jörgen

If it doesn´t break anything else for You, You could assign the price 0,0001. This is > 0

Regards

Jörgen @ Kreativ Fotografo
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.