Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Page 5 of 5
Skip import row, required field “store” not defined
 
the311guy
Sr. Member
 
Avatar
Total Posts:  111
Joined:  2007-10-18
 

I am confused by this MPN part.  What is the MPN?  Is it something that is already in a product?  Do I have to create it myself?  Is it a custom attribute?  Does it matter what I name it?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
benau
Jr. Member
 
Total Posts:  18
Joined:  2008-07-20
 

I got it working eventually despite errors mentioned in this post and http://www.magentocommerce.com/boards/viewthread/8627/#

benau - 22 July 2008 12:00 AM

So many problems with the import/export feature at present...but as I am not a coder, all I can do is encourage the Magento team who are doing such a fantastic job!

I got the import/export business working by:

1. Using the default Export All Products profile and making sure to set the file name ending to .XML not .XLS
2. Using Excel to edit the file.
3. Using the default Import All Products profile to import.

Local/Remote Server was my Data Transfer Setting. Pushing the files to var/export and pulling them from var/import worked for me.

smile

B

 
Magento Community Magento Community
Magento Community
Magento Community
 
the311guy
Sr. Member
 
Avatar
Total Posts:  111
Joined:  2007-10-18
 

oh, to answer my own question:

The MPN (manufacturer’s part number) is a custom attribute that you only your simple products. I set mine up as an optional text field.  Since I already had all of my products loaded, I simply reloaded them with the new column added for this attribute. The field holds the configurable products sku id. The function will go through each simple product and relate it to the configurable product id in it’s MPN field. I had already associated the attributes to the configurable product, so did not use that portion of the Class; I commented it out.

You can rename it, but must do so as well in the Class object. The Class looks for the attribute named ‘mpn’.

 
Magento Community Magento Community
Magento Community
Magento Community
 
gabrielk
Member
 
Avatar
Total Posts:  73
Joined:  2007-11-30
 
the311guy - 22 July 2008 12:16 AM

oh, to answer my own question:

The MPN (manufacturer’s part number) is a custom attribute that you only your simple products. I set mine up as an optional text field.  Since I already had all of my products loaded, I simply reloaded them with the new column added for this attribute. The field holds the configurable products sku id. The function will go through each simple product and relate it to the configurable product id in it’s MPN field. I had already associated the attributes to the configurable product, so did not use that portion of the Class; I commented it out.

You can rename it, but must do so as well in the Class object. The Class looks for the attribute named ‘mpn’.

Right, sorry about that, I wasn’t watching this thread but you got it.  It wasn’t very clear in my post.  I used MPN as the key between simple and configurable products because the SKU is usually based off a product’s MPN.  Any sort of key will work, though, but yes it is a custom field.

Also, since my initial post, you don’t have to set your store to anything different.  If you leave it as the base store “Admin”, it turns out you just have to use “admin” as your store name in the csv.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Samith_nzl
Jr. Member
 
Total Posts:  15
Joined:  2008-08-11
New Zealand
 

@gabrielk

Thanks so much for uploading that script, got it all sorted, just had to make a minor change to make the actual selection box display, but apart from that, its great!.

Much Appreciated,
Samith_nzl

PS

The lines I added were

$sql "INSERT INTO mag_catalog_product_entity_varchar SET entity_type_id = '4', attribute_id='90', store_id='0', entity_id='".$this->db->escape($parent->entity_id)."', value='container1'";
                     if(
$this->db->query($sql)) {
                         $this
->message('Added container for options box');
                     
}
                     
else
                     
{
                        $this
->message('ERROR: Could not create container link:');
                        
$this->message($sql);
                     
}

At line about line 151 after

if($simpleProducts $this->db->get_results($sql)) {

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 5 of 5
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
52316 users|490 users currently online|105641 forum posts