S
S
Stajor_092018-02-15 19:37:05
Magento
Stajor_09, 2018-02-15 19:37:05

How to change product categories when importing in Magento 2.1.7?

Hello.
Please tell me how to be. during standard import of goods, an error appears:
"The category "categories/body kit/protection/..." has not been created. The URL code for the specified store already exists. in the line: 1,2,3..."
and I just need to change categories for existing products on the site.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CodeKeeper, 2018-02-26
@CodeKeeper

Based on the above, it is necessary to expand the standard import with additional functionality, which, when importing a product, if the category (or categories) were not created, would automatically create them.
how to do it? Well, the first thing is to look for where the product is created in the import and try to crawl there either with the help of an observer or a plugin. Otherwise, rewrite and extend the class.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question