Skip to content

Commit

Permalink
Merge pull request #138 from mageplaza/2.4-develop
Browse files Browse the repository at this point in the history
2.4 develop
  • Loading branch information
phutx authored Apr 27, 2023
2 parents caba5a0 + 50e2bff commit 3ab679b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Plugin/SeoRender.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3ab679b

Please sign in to comment.