1. barracuda69
  2. RO CSVI
  3. Tuesday, 29 November 2016
  4.  Subscribe via email
Hi again,

Once all products are imported from an xml, I assign all of them to a specific import category for example "Imported products".

Then I need to add the right category to each product from within virtuemart product info.

Once I add this category and re-import product to update prices, add new products, etc, all my category changes are overwritten.

How can I avoid this?

Thanks!
Accepted Answer Pending Moderation
Hello,

You can avoid this by not importing the category_path again.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Thanks for your prompt response!

Yes but then all new products existing in the same xml will be assigned where?
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello,

There is your problem I guess, your file is a mix of old and new products. If no category_path is set, products won't be assigned to any category.

CSVI doesn't handle a specific field in any special way if the product already exists or not. The only thing you can do is probably make a second template (as a copy of the first) and change the template settings.

With two templates you would have one for importing the new products and one for importing existing products. In the template for new products you would set the option Overwrite existing data to No. This way only new products are added and as such you can assign the category_path field. In the template for existing products you set the option Skip new items to Yes. This way only existing products will be updated. The category_path field would then be skipped for this import.

Need to be creative in situations like this :)
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Seems quite logical ;-)

I'll make a few tries and get back to you with what works best so that people will know what to do in a situation like this ;-)

Thanks!
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hi again Rolandd,

Where do I find those settings you describe?

Thanks!

Found them!! Sorry!!!
  1. more than a month ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
Hi Rolandd!

Your solution works perfectly!

Thank you!
  1. more than a month ago
  2. RO CSVI
  3. # 6
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!