Hi,
I am looking at several hundred critical errors from Google regarding the rich snippets for items with prices over $1,000 (as they include a comma). The SEO module I have doesn't seem to take that into account or there appears to be an extra set of quotation marks? I have reached out to the developer but was hoping to get some quicker help here.
I am thinking it's this line that's causing the issue:
<meta itemprop="price" content="<?php echo $special ? $special : $price; ?>">
I have tried this one with no luck:
<meta itemprop="price" content="<?php if (!$special) { echo preg_replace('/[^0-9.]+/','',$price);}else{echo preg_replace('/[^0-9.]+/','',$special);} ?>">
Edit: Opencart 2.3.0.2
Google error: Invalid floating point number in property "price"
e.g. <meta itemprop="price" content="1,171.67" "
URL:https://www.stevestonmarine.com/heater- ... ing-system
As above it looks like you're on the right lines but perhaps your cache isn't clearing. You should be making any changes with a vQmod or OCMOD really.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Who is online
Users browsing this forum: No registered users and 214 guests