Author Topic: Add Microdata/Rich Snippets to Virtuemart!  (Read 21912 times)

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 537
  • Software Developer {PHP, JavaScript, jQuery, ...}
    • www.virtueplanet.com
  • VirtueMart Version: 3.2.0
Re: Add Microdata/Rich Snippets to Virtuemart!
« Reply #15 on: October 25, 2013, 08:48:32 am »
Yes, you did ask us for the same. I also know that you said - you added schema markups in your site even before it was included in VP Promart. We had already discussed this on VM Forum earlier: http://forum.virtuemart.net/index.php?topic=102624.msg385294#msg385294

But the codes we added to our template is not taken from anyone. They are written 100% by us. Even in our forum we asked not to send us your modified files. Am I wrong? :)

I am suggesting that you refer to the default Virtuemart layout codes and suggest the changes to others. That will make easier for them to adapt it in their site. Sharing the template codes/files may not help. (We also do not want our template codes shared on public forum. ;) ) If you really want to share the files then make the changes in default VM layout files and share it in the forum. That will be really helpful to all VirtueMart users.

Do not take me otherwise. It's just a friendly conversion between two VM users. ;)

Stonedfury

  • Jr. Member
  • **
  • Posts: 267
    • Stonedfury
  • Skype Name: Stonedfury
  • VirtueMart Version: 2.0.24
Re: Add Microdata/Rich Snippets to Virtuemart!
« Reply #16 on: October 25, 2013, 21:27:06 pm »
As requested.
http://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Fmydev.stonedfury.com%2Fdev%2Findex.php%3Foption%3Dcom_virtuemart%26view%3Dproductdetails%26virtuemart_product_id%3D7%26virtuemart_category_id%3D4
The files edited are as follows
default_showprices.php, default_reviews.php, default_images.php and default.php  These are the stock VM files just copied to the templates\beez_20\html\com_virtuemart\productdetails folder

I have zipped them and you can check yourself.

I haven't touched the instock and available markup yet on these files.

Used this page as reference http://www.schema.org/Product

[attachment cleanup by admin]
No such thing as a stupid question, only a stupid answer. I won't ask if I know the answer or found it using the search as you suggested.

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2520
  • VirtueMart Version: 3.0.19.8
Re: Add Microdata/Rich Snippets to Virtuemart!
« Reply #17 on: October 25, 2013, 22:42:45 pm »
Great post Stoned!

LMAO

I will, of course, be introducing rich snippets at some point.  :)
regards
A

Joomla 3.6.5
php 7

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 537
  • Software Developer {PHP, JavaScript, jQuery, ...}
    • www.virtueplanet.com
  • VirtueMart Version: 3.2.0
Re: Add Microdata/Rich Snippets to Virtuemart!
« Reply #18 on: October 26, 2013, 08:29:07 am »
Excellent work Stonedfurry. :)

tanolalano

  • Beginner
  • *
  • Posts: 33
  • www.arancebio.it
    • Agrumi biologici di Sicilia
  • VirtueMart Version: 3.0.18
Re: Add Microdata/Rich Snippets to Virtuemart!
« Reply #19 on: November 15, 2013, 21:24:56 pm »
Great!
Does It works only in the version 1 of VM?
Thank you Stone
www.arancebio.it - Organic red Oranges from Sicily

lindapowers

  • Full Member
  • ***
  • Posts: 1331
  • If you're going through hell, keep going.
    • Venta de naranjas online y mandarinas
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
Re: Add Microdata/Rich Snippets to Virtuemart!
« Reply #20 on: April 16, 2014, 06:13:09 am »
I wonder how is this working in VM2?

I found very Little information, just a module http://www.easyjoomla.org/virtuemart-extensions/rich-snippets-for-virtuemart#tab_documentation

Is this something that should be implemented by template providers or by VM2 or as a separate module?

Regards
http://www.comenaranjas.com - Navel oranges and clementines from Spain

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2520
  • VirtueMart Version: 3.0.19.8
Re: Add Microdata/Rich Snippets to Virtuemart!
« Reply #21 on: April 16, 2014, 16:13:11 pm »
I override the core templates so will introduce as additional markup in my template overrides.

It would be difficult to use a plugin that might fail due to my adjusted template code
regards
A

Joomla 3.6.5
php 7