I came to see you for your opinion on the best way to proceed according to the following problem:
- from a CSV I create by import in Magento simple products (multi website)
- without having to add configurable products in this CSV, I want to create configurable products each time several simple products have a common 'code' value in the csv.
My idea was to save the needed info to create configurable products during import is running, and when all the simple products are created, just before
New 'Ajax.Request ('. $ This-> getUrl ('* / * / batchFinish', array ('id' => $ batchModel-> getId ()
is executed I create a new controller that will create the configurable products.
Except that before I go into it, I wanted to have your opinion in case it would be much simpler according to you.
Solved! Go to Solution.
As per my assumption you wants to create configurable product by simple product common attribute during import. For creating configurable product you need to override the saveRow() function of ' Mage_Eav_Model_Convert_Adapter_Entity ' class. Also you can import configurable product by using magmi importer it is faster than magento profiler .
Let me know if it helps.
Thanks for your reply @htpvikas,
However I unfortunately don't have a saveRow() method in my 'Mage_Eav_Model_Convert_Adapter_Entity' class.
Ive one in Mage_Catalog_Model_Convert_Adapter_Product which is already rewriten but it doesn't help my in that case.
I forgot to mention that I work on an old version 184.108.40.206 of Magento.
The best way to import configurable product use magmi importer. it is more faster than magento profiler for bulk import. You can try this.
Let me know if it help.
Reading your last post I prefer to precise that I don't want to import configurable product, but import simple products and then if needed (there exists same simple products with more than one color or size), create a configurable product with these associated simple products.
Moreover, I would expect to not use magmi in the first time even if I know it is faster than the Magento profiler.
Please let me know some information from your side:
I have solution for your query. You can do this by 2 ways.
Way 1- By using observer
In this observer you can find all imported items and create configurable product with same 'code' simple product and associate simple product to configurable product.
Way 2 - Create custom advance profile for product import and in saveRow() function you can perform same operation. Here is the link i am sharing with you for how to create custom advance profile.
Let me know if it helps. You can raise a KUDOS if its really worth for you.