From 475ca45249009ac54bb4795ea7a4161a26ca3324 Mon Sep 17 00:00:00 2001 From: Onesh Date: Wed, 5 Apr 2023 11:05:25 +0700 Subject: [PATCH 1/2] Fix Product Structured Data --- Plugin/SeoRender.php | 3 +++ 1 file changed, 3 insertions(+) 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() From 50e2bff3f0e64c4ec73a6ba96b6792ea564f965b Mon Sep 17 00:00:00 2001 From: Onesh Date: Thu, 27 Apr 2023 08:57:50 +0700 Subject: [PATCH 2/2] Clean code --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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",