I'm getting an error in my Google Search Console Merchant listings that states Duplicate field "price" (in "offers").
When I dig around in the code, I believe I've narrowed it down to this IF statement in the Google Rich Snippets of the PROD page:
One other possible location for the error is from JavaScript Resource: product-json-ld. The relevant code there is:
Unfortunately, I'm not conversant enough in any code language to determine if this is exactly where the problem is, or how to fix it. Can anyone give me some help here?
When I dig around in the code, I believe I've narrowed it down to this IF statement in the Google Rich Snippets of the PROD page:
Code:
<mvt:if expr="l.settings:attributemachine:product:inv_leve l"> <mvt:assign name="l.availability_inv_level" value="l.settings:attributemachine:product:inv_lev el"/> <mvt:do name="l.formatted_variant_price" file="g.Module_Root $ g.Store:currncy_mod:module" value="CurrencyModule_AddFormatting( g.Store:currncy_mod, l.settings:attributemachine:product:price )" /> <meta itemprop="price" content="&mvt:attributemachine:product:price;"/> <mvt:else> <mvt:assign name="l.availability_inv_level" value="l.settings:product:inv_level"/> <meta itemprop="price" content="&mvt:product:price;"/> </mvt:if>
Code:
"offers": { "@type": "Offer", "url": "&mvtj:product:link;", <mvt:if expr="NOT ISNULL l.settings:product:sku"> "sku": "&mvtj:product:sku;", <mvt:else> "sku": "&mvtj:product:code;", </mvt:if> "name": "&mvtj:product:name;", "description": "&mvtj:product:stripped_descrip;", "seller": "&mvtj:global:store:name;", "itemCondition": "NewCondition", <mvt:if expr="l.settings:attributemachine:product:inv_leve l"> <mvt:assign name="l.availability_inv_level" value="l.settings:attributemachine:product:inv_lev el"/> <mvt:do name="l.formatted_variant_price" file="g.Module_Root $ g.Store:currncy_mod:module" value="CurrencyModule_AddFormatting( g.Store:currncy_mod, l.settings:attributemachine:product:price )" /> "price": "&mvtj:attributemachine:product:price;", <mvt:else> <mvt:assign name="l.availability_inv_level" value="l.settings:product:inv_level"/> "price": "&mvtj:product:price;", </mvt:if> <mvt:if expr="l.availability_inv_level EQ 'low'"> "availability": "http://schema.org/LimitedAvailability", <mvt:elseif expr="l.availability_inv_level EQ 'out'"> "availability": "http://schema.org/OutOfStock", <mvt:else> "availability": "http://schema.org/InStock", </mvt:if> "priceCurrency": "USD" }
Comment