Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Mismatched structured data markup [price]
Author « Topic »  

quadrant
Ecommerce Template Guru

United Kingdom
1110 Posts

Pre-sales questions only
(More Details...)

Posted - 01/06/2019 :  03:51:36  
Hi,

Google merchant center is telling me we have an insufficient match of structured data markup [price] on our site and after a bit of digging it appears to be on the products that use dependent options.

About 40% of our products have a base price and then one product option which is a drop down.

The default option has a value of 0 and therefore shows the base price for the first option and the other options have price differences entered.

We then use:
$hideoptpricediffs=FALSE;
$absoptionpricediffs=TRUE;

to show the total price with the option included after each option in the dropdown.

The above all works fine and I see this in the source:
<span content="5.70" itemprop="price" id="pricediv0" class="price">£5.70</span>

The issue is when we have dependent options setup as follows:

Again we have a product with a base price and one product option.
This option is setup as radio buttons with each option having a Price Diff of 0.

These radio options then have one dependent option which are setup as a dropdown in the same way as the first example above so the only real difference is that we have the radio buttons before the dropdowns.

In our source I see this:
<span content="10.84" itemprop="price" id="pricediv0" class="price">£11.31</span>

The content="10.84" is incorrect and should read content="11.31".

If I make
$hideoptpricediffs=TRUE;
I see this
<span content="11.31" itemprop="price" id="pricediv0" class="price">£11.31</span>

So the data is then correct but of course I no longer get the price after the option.

If I set the following:
$hideoptpricediffs=FALSE;
$absoptionpricediffs=FALSE;
so I get (+amount) rather then the total price I also get:
<span content="10.84" itemprop="price" id="pricediv0" class="price">£11.31</span>

So from my testing it looks like the setting $hideoptpricediffs=FALSE; is what's causing the issue in the Merchant Center.

The store is on v6.9.4 PHP.

If you need a link please let me know and I will send via PM.

Regards,
David

Andy
ECT Moderator

95440 Posts

Posted - 01/06/2019 :  04:48:02  
Hi David

Thanks for the detailed information - much appreciated.

Please do send me on the link.

Andy

Please feel free to review / rate our software

quadrant
Ecommerce Template Guru

United Kingdom
1110 Posts

Pre-sales questions only
(More Details...)

Posted - 01/06/2019 :  05:10:34  
Hi Andy,

Thank you for the quick reply.

PM sent.

Regards,
David
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000