News
Get the scoop

Magento - Importing configurable and simple products

Monday, October 19, 2009

At Fuse we are nearing the launch of another eCommerce site using the Magento platform. The biggest headache we have found with Magento is handling products where different sizes have different prices. The Magento documentation suggests that this type of product should be set up as a 'configurable product.' However in Magento, to create a configurable product, you have to create your parent product and then another product for every size and colour variation.

This means if you have a shirt in 6 colours and 12 sizes, you need to create 72 products and associate them all to your main product. Importing the data for all these variants using the standard Magento import function works, but you still have to manually associate all the products to their parent which is incredibly time consuming.

Brian at his Magento Developer Information blog has an impressive work-around for this using custom attributes. With a few code changes to one of the core Magento php pages you can import your product as one 'simple' product and use the custom attributes for the sizes and colours.

Using the standard Magento import format with Brian's code you can add your extra columns, determine whether you want the field to appear as a dropdown, radio button or text field and specify prices.

Thanks Brian, you have made our job so much simpler and saved us hours of time.

One other thing we have learned along the way is that Brian's import method loads the images (place them in the /media/import directory) but they are invisible due to a bug in Magento's import code which automatically flags uploaded images as 'exclude.' See this post on the Magento site to fix the bug in another of Magento's core files.

Labels:

3 Comments:

At January 26, 2010 at 9:27 AM , Anonymous Anonymous said...

Its a bit harsh to loose all the work I have done setting up the configurable products and the attribute sets. I read through Brian's workaround and the only real issue I see for me is that I have the attribute "flavour" which has around 340 options and I cant imagine this will impact the size of my csv if I would need to include this on every row. Anyone know if I would have an issue making this a custom field? (Flavour:drop_down:1) [340-flavour-options]

Also, would I loose the ability to have stock for each individual flavour by changing the store to use custom fields instead?

 
At January 26, 2010 at 11:42 AM , Blogger Fuse said...

Hi

Yes using custom fields does mean you'd lose the stock levels for each flavour.

It is a good work-around, but only if the store owner monitors stock levels outside of Magento.

Also I think you'd still have the problem of after importing you'll have to manually associate all the products with their variants. Or write some php code to manipulate the data directly in the database.

I'm sure somebody on the Magento forums will come up with a work-around for these import problems, but it may take some time.

 
At May 23, 2010 at 3:11 AM , Blogger Unknown said...

What does that mean. I was able to upload and work with images. Now I've implemented brian's code. Will that stop me from importing the images ??

my site is - <a href="http://nationalfurnituresupply.com> National Furniture Supply </a>.

Search for "Test" and you will get to the product that i created using brian's code.

Please let me know ...

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home