magentoerpconnect_pricing: empty price exported when price is shared globally
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Connector - Magento |
Confirmed
|
Medium
|
Unassigned |
Bug Description
The module magentoerpconne
Different list prices can be choosed for each website.
Magento has a configuration option named 'Catalog Price Scope' whose values are 'Global' or 'Website'.
When 'Global' is selected, prices are shared across all the websites.
When 'Website' is selected, prices are different across all the websites.
The implementation in OpenERP is actually as follows:
A pricelist can be choosed in the magento backend. It will define the default (or global) price sent to Magento.
A pricelist can be choosed in each website. It will define the price for the website.
When a product's price is modified, it is automatically exported to Magento.
--
Example use case:
Magento Catalog Price Scope: Website
OpenERP setup
1 global pricelist in the backend
1 website with a different pricelist
Will be exported:
- 1 time the global price
- 1 time the website's price
Works as expected.
--
Another use case:
Magento Catalog Price Scope: Website
OpenERP setup
1 global pricelist in the backend
1 website with a different pricelist
1 website without pricelist
Will be exported:
- 1 time the global price
- 1 time the website's price
- 1 time a False value for the last website -> necessary to reset the website's price to the global price if it was defined
Works as expected.
--
Erroneous use case:
Magento Catalog Price Scope: **Global**
OpenERP setup
1 global pricelist in the backend
1 website without pricelist
Will be exported:
- 1 time the global price
- 1 time a False value for the last website -> necessary to reset the website's price to the global price if it was defined as the previous use case
As a result, it will empty the global price because the False value will be attributed with the global price instead of the website due to the 'Global Price Scope'.
--
Workaround:
Configure Magento to use the 'Website' Catalog Price Scope.
--
Proposition:
Add a 'Catalog Price Scope' option in OpenERP which must be manually synchronized with the same Magento option.
Changed in openerp-connector: | |
status: | New → Confirmed |
Changed in openerp-connector: | |
importance: | Undecided → Medium |
information type: | Embargoed → Public |
affects: | openerp-connector → openerp-connector-magento |