Skip to content

Commit

Permalink
Merge pull request #819 from Nosto/hotfix/7.2.1
Browse files Browse the repository at this point in the history
Hotfix/7.2.1
  • Loading branch information
dairbuirabass authored Jan 11, 2023
2 parents 7e719e7 + e775b46 commit a1cddb5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

### 7.2.1
* Add store filter to the DefaulCategoryService to generate categories for specific store

### 7.2.0
* Remove `nosto_product_sync` message queue consumer

Expand Down
3 changes: 2 additions & 1 deletion Model/Service/Product/Category/DefaultCategoryService.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ public function __construct(
public function getCategories(Product $product, StoreInterface $store)
{
$categories = [];
foreach ($product->getCategoryCollection() as $category) {
/** @phan-suppress-next-line PhanUndeclaredMethod */
foreach ($product->getCategoryCollection()->setStore($store->getId()) as $category) {
$categoryString = $this->getCategory($category, $store);
if (!empty($categoryString)) {
$categories[] = $categoryString;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nosto/module-nostotagging",
"description": "Increase your conversion rate and average order value by delivering your customers personalized product recommendations throughout their shopping journey.",
"type": "magento2-module",
"version": "7.2.0",
"version": "7.2.1",
"require-dev": {
"phpmd/phpmd": "^2.5",
"sebastian/phpcpd": "*",
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
<!--suppress XmlUnboundNsPrefix -->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Nosto_Tagging" setup_version="7.2.0"/>
<module name="Nosto_Tagging" setup_version="7.2.1"/>
</config>

0 comments on commit a1cddb5

Please sign in to comment.