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
|