Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
dimajanzen committed May 8, 2023
2 parents 09cdcca + 7b3f131 commit 47bc95c
Show file tree
Hide file tree
Showing 3 changed files with 6 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 @@
# CHANGE LOG

## 2.4.6
- Bugfix | change multiple skus

## 2.4.5
- remove support magento 2.2
---
Expand Down
4 changes: 2 additions & 2 deletions Model/ProductManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ public function updateSkus($jsonData)
$rows = $this->jsonHelper->jsonDecode($jsonData);

$result = array();
$product = $this->productFactory->create();


foreach($rows as $row) {
$productId = $row['product_id'];
$sku = $row['sku'];
$changed = false;

if (!empty($sku)) {
$product = $this->productFactory->create();
$product->setData('store_id', \Magento\Store\Model\Store::DEFAULT_STORE_ID);
$product->load($productId);

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name" : "cobbyio/cobby-connector-magento2",
"description" : "This extension for Magento 2 provides a direct integration of the cobby management methods to your Magento 2 shop.",
"version" : "2.4.5",
"version" : "2.4.6",
"type" : "magento2-module",
"require": {
"magento/framework": "^102.0|^103.0|^104.0",
Expand Down

0 comments on commit 47bc95c

Please sign in to comment.