akeneo / magento2-connector-community

Akeneo Connector for Magento 2
Open Software License 3.0
81 stars 88 forks source link

cost & special_price importing to Magento as $0 when value is Null in Akeneo and attributes is mapped. #572

Open quentinpnel opened 2 years ago

quentinpnel commented 2 years ago

Environment and configuration

  1. Magento ver. 2.4.3-p2
  2. Extension Version 102.6.1
  3. Akeneo Version | 5.0.11

Steps to reproduce

  1. Map special_price and cost in cofiguration --> products --> Attribute Mapping (as instructed in settings "Fill additional Magento attributes from Akeneo attributes. "price" "special_price" and "cost" attributes won't be automatically mapped unless you explicitely declare them in this configuration.")

  2. Import products from akeneo. 1 with a value in akeneo for special_price and cost, and 1 without a value in akeneo for special_price and cost.

Expected result

  1. For products with a value in akeneo for special_price and cost, value is imported properly to Magento. For products without a value in akeneo (NULL) for special_price and cost, no value is imported to Magento (value is blank).

Actual result

  1. For products without a value in akeneo (NULL) for special_price and cost, $0 is imported to Magento (value is set to 0). This causes an issue as all pricing is updated to $0 when no special_price is used.

For products with a value in akeneo for special_price and cost, value is imported properly to Magento.