From 16c0741fb1d2c7ef07e93f135e80e726f7596724 Mon Sep 17 00:00:00 2001 From: Daniel Morris Date: Fri, 13 Jan 2017 14:59:19 +0000 Subject: [PATCH] Fix incorrect schema definition for price Fixes an incorrect schema definition for pricing, before this change the structured data testing tool provided by Google flags the price as a warning since it contains the currency symbol, a separate itemprop exists for the priceCurrency, I have added a separate meta tag for the price without the currenccy symbol. --- .../view/base/templates/product/price/amount/default.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Catalog/view/base/templates/product/price/amount/default.phtml b/app/code/Magento/Catalog/view/base/templates/product/price/amount/default.phtml index 999a01e6ad22e..557a8a1bbc31e 100644 --- a/app/code/Magento/Catalog/view/base/templates/product/price/amount/default.phtml +++ b/app/code/Magento/Catalog/view/base/templates/product/price/amount/default.phtml @@ -19,14 +19,14 @@ getPriceDisplayLabel()) ? 'data-label="' . $block->getPriceDisplayLabel() . $block->getPriceDisplayInclExclTaxes() . '"' : '' ?> data-price-amount="getDisplayValue(); ?>" data-price-type="getPriceType(); ?>" - class="price-wrapper getPriceWrapperCss(); ?>" - getSchema() ? ' itemprop="price"' : '' ?>> + class="price-wrapper getPriceWrapperCss(); ?>"> formatCurrency($block->getDisplayValue(), (bool)$block->getIncludeContainer()) ?> hasAdjustmentsHtml()): ?> getAdjustmentsHtml() ?> getSchema()): ?> +