diff --git a/Plugin/SeoRender.php b/Plugin/SeoRender.php index 4a01164..90413b0 100755 --- a/Plugin/SeoRender.php +++ b/Plugin/SeoRender.php @@ -511,6 +511,9 @@ public function showProductStructuredData() $productStructuredData['brand']['@type'] = 'Brand'; $productStructuredData['brand']['name'] = (($brandAttribute === 'quantity_and_stock_status' && $brandValue >= 0) || $brandValue) ? $brandValue : 'Brand'; + if ($brandAttribute === 'meta_title') { + $productStructuredData['brand']['name'] = $product->getName(); + } } $collection = $this->_reviewCollection->create() diff --git a/composer.json b/composer.json index 3df9db7..5716a80 100644 --- a/composer.json +++ b/composer.json @@ -2,10 +2,10 @@ "name": "mageplaza/magento-2-seo-extension", "description": "Magento 2 SEO extension", "require": { - "mageplaza/module-core": "^1.5.2" + "mageplaza/module-core": "^1.5.3" }, "type": "magento2-module", - "version": "4.2.2", + "version": "4.2.3", "license": "proprietary", "keywords": [ "magento 2",