Discussions

Multiple values using Commerce Feeds

Does anyone know of this wonderful module?
http://drupal.org/project/commerce_feeds

I'm trying to add multiple values ​​to multiple fields .

I tried as follows:
sku, title, description, image, tag, prod_ref
MY-SKY, "MY TITLE", "MY DESCRIPTION", "PATH_TO_IMAGE-1, PATH_TO_IMAGE-2", MY_TAG, "MY_PROD_REF-1, MY_PROD_REF-2"

But only last value is updated.

tanks

Posted: May 12, 2011

Comments

GuGuss Augustin Delaporte on November 15, 2011

Hi, last but not least ^^

If you want to import a multiple value field, you should use the feeds_tamper module to alter the data that are passed to feeds.
Your data should look like that : "PATH_TO_IMAGE-1|PATH_TO_IMAGE-2".

Then you just need to :
- add the field "image" to the mapping on feeds.
- on the mapping page, click on "configure feeds tamper" to add a plugin which will explode the list of paths from the field (using the correct separator "|" in this case).

Feeds will then loop on the image list to import it as a multi-value field.

Hope it helps ^^

GuGuss