magesuite / theme-creativeshop

Open Software License 3.0
38 stars 24 forks source link

Metadata (rich snippets) missing in price template #107

Closed fritzmg closed 1 year ago

fritzmg commented 1 year ago

The current price template is missing the itemprop="offers" itemscope itemtype="http://schema.org/Offer" attributes in the price container, as well as the

<meta itemprop="price" content="<?= $block->escapeHtmlAttr($block->getDisplayValue()) ?>" />
<meta itemprop="priceCurrency" content="<?= $block->escapeHtmlAttr($block->getDisplayCurrencyCode()) ?>" />

meta data output. Is there a specific reason for this? If not I could provide a PR that re-introduces this metadata again.

drabikowy commented 1 year ago

Hello @fritzmg, we introduced a separate module for google structured data generation, with many configuration possibilities as well, you can check it out: https://github.com/magesuite/google-structured-data