VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: FaintOfFeint on January 21, 2016, 18:31:34 PM

Title: SEO: Google Data Highlighter can't see Virtuemart price
Post by: FaintOfFeint on January 21, 2016, 18:31:34 PM
In Google Webmaster Tools, a Data Highlighter tool is offered. With it, you can show Google which part of a page has a Product name, picture, and price.

VirtueMart 3.0.12, Storeslab_2 template, is emitting prices which the Data Highlighter can't see. I can single-click on the name and picture, but not on the price.
http://www.pyrahealth.com/component/virtuemart/160/21/pyramids/for-home/advance-pyramid-advance-multier-detail?Itemid=0

This probably has SEO implications, as if this tool has difficulty then other Google tools might also be having difficulty.

(Yes, I have added microformats elsewhere on the page. I'm concerned about whatever is confusing Data Highlighter.)
Title: Re: SEO: Google Data Highlighter can't see Virtuemart price
Post by: VMTemplates.net on January 21, 2016, 18:59:41 PM
Hi,

this is probably caused by bug in the template code you using. If you would debug price element using firebug or Google Chrome Inspect element you would noticed that the price tags are covered by addtocart tags.

Try to add this code below to your template code:

div.spacer-buy-area .product-price {
width: 100%;
text-align: left;
}

.addtocart-area {
clear: both;
}
Title: Re: SEO: Google Data Highlighter can't see Virtuemart price
Post by: FaintOfFeint on January 21, 2016, 19:54:32 PM
I did briefly try the Beez3 template, but it looked like it was generating similar HTML for that DIV. I'll look at what you suggested.
Title: Re: SEO: Google Data Highlighter can't see Virtuemart price
Post by: FaintOfFeint on January 21, 2016, 23:03:19 PM
The CSS change above does seem to have fixed the problem. On pages which Google has recently read, I'm able to highlight the price.