diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d499a2..7dd52cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1,6 @@ # PIMGento API change Log + +### 100.1.1 : +Fix price set to 0 if attribute price is empty + +Fix media import with wrong entity_type_id diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4873ee1..755834a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,5 +16,5 @@ Contributing policy **You can not commit directly on this repository.** -Fork the project, create a feature branch, and send a pull request. +Fork the project, create a feature branch, and send a pull request on the develop branch. diff --git a/app/code/community/Pimgento/Api/Helper/Product.php b/app/code/community/Pimgento/Api/Helper/Product.php old mode 100644 new mode 100755 index 39b997c..35a41e9 --- a/app/code/community/Pimgento/Api/Helper/Product.php +++ b/app/code/community/Pimgento/Api/Helper/Product.php @@ -203,6 +203,8 @@ private function formatAssociations(stdClass $associations, array $values) */ private function getKey($attribute, array $specifics) { + /** @var string $attribute */ + $attribute = strtolower($attribute); if (isset($specifics['locale']) && isset($specifics['scope'])) { return sprintf('%s-%s-%s', $attribute, $specifics['locale'], $specifics['scope']); } diff --git a/app/code/community/Pimgento/Api/Model/Job/Attribute.php b/app/code/community/Pimgento/Api/Model/Job/Attribute.php old mode 100644 new mode 100755 index f8a1bfd..0ceccb0 --- a/app/code/community/Pimgento/Api/Model/Job/Attribute.php +++ b/app/code/community/Pimgento/Api/Model/Job/Attribute.php @@ -97,7 +97,7 @@ public function insertData($task) */ foreach ($attributes as $index => $attribute) { /** @var string $attributeCode */ - $attributeCode = $attribute['code']; + $attributeCode = strtolower($attribute['code']); /** @var int $id */ if ($attributeHelper->isAttributeCodeReserved($attributeCode)) { if (!$isPrefixEnabled) { @@ -107,9 +107,9 @@ public function insertData($task) continue; } - - $attribute['code'] = Pimgento_Api_Helper_Attribute::RESERVED_ATTRIBUTE_CODE_PREFIX . $attributeCode; + $attributeCode = Pimgento_Api_Helper_Attribute::RESERVED_ATTRIBUTE_CODE_PREFIX . $attributeCode; } + $attribute['code'] = $attributeCode; /** @var string[] $columns */ $columns = $entitiesHelper->getColumnsFromResult($attribute); /** @var bool $result */