Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Create new Product via Import
 
Matthias Laug
Jr. Member
 
Total Posts:  6
Joined:  2009-02-28
 

Hello everybody,

I am kind of new to Magento, but sure no beginner in PHP. Still Magento is going to kill me smile
I want to create an import function so that I can import products based on an csv/excel list.

The Module is set up with a form to upload the file. Now I need to process it. But I cannot find a hint how to create configurables/simples based on php code.

I can create a instance of an model and save it by using the following code

$model Mage::getModel('catalog/product');
// [...] no idea what to do in between here
$model->addData($myData);
$model->save();

What kind of data in that array is needed? Where can I find those informationen on how to create the correct?

Thanks for any help of forumlinks (did not find anything searching the forum, so far)

Mattes

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top