From 3c0da36cfd9428432ad8e8d3fb6fbb37d3bdc7b0 Mon Sep 17 00:00:00 2001 From: Dair Baidauletov Date: Wed, 9 Nov 2022 14:54:19 +0200 Subject: [PATCH 1/4] Set category ids for the product in the builder --- Model/Product/Builder.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Model/Product/Builder.php b/Model/Product/Builder.php index 14c0fb2bf..422e646d7 100644 --- a/Model/Product/Builder.php +++ b/Model/Product/Builder.php @@ -223,6 +223,7 @@ public function build( } $nostoProduct->setAvailability($this->buildAvailability($product, $store)); $nostoProduct->setCategories($this->nostoCategoryService->getCategories($product, $store)); + $nostoProduct->setCategoryIds($product->getCategoryIds()); if ($this->nostoDataHelper->isInventoryTaggingEnabled($store)) { $inventoryLevel = $this->stockService->getQuantity($product, $store); $nostoProduct->setInventoryLevel($inventoryLevel); From 825434dbcb2edd5ff37ae9331d71dacc52346dd9 Mon Sep 17 00:00:00 2001 From: Dair Baidauletov Date: Fri, 11 Nov 2022 13:10:40 +0200 Subject: [PATCH 2/4] Update php-sdk --- composer.json | 2 +- composer.lock | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index aaee8548b..10a079e2a 100644 --- a/composer.json +++ b/composer.json @@ -42,7 +42,7 @@ "php": ">=7.4.0", "magento/framework": ">=101.0.6|~104.0", "ext-json": "*", - "nosto/php-sdk": "^6.0" + "nosto/php-sdk": "^6.1" }, "repositories": [ { diff --git a/composer.lock b/composer.lock index 0a907b78e..e2340bb24 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "70c065c15569e63c48bec8f645722025", + "content-hash": "24a7d81aeffdbe5b83199e44c0d97b9b", "packages": [ { "name": "brick/math", @@ -2870,16 +2870,16 @@ }, { "name": "nosto/php-sdk", - "version": "6.0.2", + "version": "6.1.0", "source": { "type": "git", "url": "https://github.com/Nosto/nosto-php-sdk.git", - "reference": "eea6846743d24cada846c4707af869720808666b" + "reference": "3d79b662774153c92d5a84a97d674b9893c93226" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Nosto/nosto-php-sdk/zipball/eea6846743d24cada846c4707af869720808666b", - "reference": "eea6846743d24cada846c4707af869720808666b", + "url": "https://api.github.com/repos/Nosto/nosto-php-sdk/zipball/3d79b662774153c92d5a84a97d674b9893c93226", + "reference": "3d79b662774153c92d5a84a97d674b9893c93226", "shasum": "" }, "require": { @@ -2920,9 +2920,9 @@ "description": "PHP SDK for developing Nosto modules for e-commerce platforms", "support": { "issues": "https://github.com/Nosto/nosto-php-sdk/issues", - "source": "https://github.com/Nosto/nosto-php-sdk/tree/6.0.2" + "source": "https://github.com/Nosto/nosto-php-sdk/tree/6.1.0" }, - "time": "2022-08-23T07:55:23+00:00" + "time": "2022-11-11T09:56:42+00:00" }, { "name": "paragonie/constant_time_encoding", From a0778ce69b814cacfea31a15f183c33958fd59f5 Mon Sep 17 00:00:00 2001 From: Dair Baidauletov Date: Fri, 11 Nov 2022 15:04:27 +0200 Subject: [PATCH 3/4] Bump version, update CHANGELOG.md --- CHANGELOG.md | 3 +++ composer.json | 2 +- etc/module.xml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d71e66b73..3af461bd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file. This projec ### 7.0.0-RC1 * Remove queue processor indexer. Product indexer now only sends product ids straight to message queue +### 6.2.0 +* Add category ids to product tagging + ### 6.1.6 * Fix iteration on API sync service diff --git a/composer.json b/composer.json index 10a079e2a..bf1835df5 100644 --- a/composer.json +++ b/composer.json @@ -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.0.0-rc1", + "version": "6.2.0", "require-dev": { "phpmd/phpmd": "^2.5", "sebastian/phpcpd": "*", diff --git a/etc/module.xml b/etc/module.xml index ea362bfe2..cb67607f6 100755 --- a/etc/module.xml +++ b/etc/module.xml @@ -37,5 +37,5 @@ - + From 26c296788a3ab38cafa211d40268efd66a72492d Mon Sep 17 00:00:00 2001 From: Dair Baidauletov Date: Mon, 14 Nov 2022 10:41:10 +0200 Subject: [PATCH 4/4] Change version to 7.1.0 --- CHANGELOG.md | 6 +++--- composer.json | 2 +- etc/module.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3af461bd6..f53d7b463 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,11 @@ All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning. +### 7.1.0 +* Add category ids to product tagging + ### 7.0.0-RC1 * Remove queue processor indexer. Product indexer now only sends product ids straight to message queue -### 6.2.0 -* Add category ids to product tagging - ### 6.1.6 * Fix iteration on API sync service diff --git a/composer.json b/composer.json index bf1835df5..98135964f 100644 --- a/composer.json +++ b/composer.json @@ -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": "6.2.0", + "version": "7.1.0", "require-dev": { "phpmd/phpmd": "^2.5", "sebastian/phpcpd": "*", diff --git a/etc/module.xml b/etc/module.xml index cb67607f6..492f95778 100755 --- a/etc/module.xml +++ b/etc/module.xml @@ -37,5 +37,5 @@ - +