Hi,
I have the following situation. I have 2 XML files: One with products (productxml) and one with prices (pricexml).
I want to use one product-entity (commerce product importer) which have the following fields: SKU, title and price.
The productxml holds SKU and title, the pricesxml holds SKU and price
When I try to get this done in one importer I get the following situation (importer set to update product-entity)
Updating the product-entity with a productxml set the pricefield to zero
Updating the product-entiity with a pricexml sets the title field to blank.

Workaround is to build 2 importers: one with SKU and title field and one with SKU and pricefield. But this seems not the correct way, right?
I think somehow a field what is mapped but has no values within the importer is set default to empty!

Greetings, Martijn

Comments

pcambra’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

I don't see the difference between the two examples, I've got the module working with 2 files (I'm testing with CSV) SKU+Title and SKU+Price.
You should be able to have just one source with SKU+Title+Price which would be the most usual use case, you can take a look to the commerce feeds example which imports a file with SKU, title, image and price.

summit’s picture

Hi,
The problem here is that fields which do not get a value from the importer are somehow left blank with importer set to update product-entity.

So with first import cycle SKU and title are filled (productxml) but when I start the second import cycle (pricesxml) fields which do not holds values like title are made blank!

Greetings, Martjin

pcambra’s picture

Status: Postponed (maintainer needs more info) » Fixed

I think that the acumulative mode fixes this (set the mode to update).
Please feel free to reopen this issue if not fixed with some sample data.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.