How to import custom options(Individualisierungsoptionen) for a product
Hi,
I have a problem importing custom options(Individualisierungsoptionen). I fill in some fields in data table:
$data[$key]['_custom_option_store'] = array( 'all' );
$data[$key]['_custom_option_type'] = array('drop_down');
$data[$key]['_custom_option_title'] = array( 'Size' );
$data[$key]['_custom_option_is_required'] = array( '0' );
$data[$key]['_custom_option_row_title'] = array( array('L', 'XL', 'XXL') );
I run the script, no errors are found but also the option does not appear in the back-end. I know that in your blog post you have referred to Vinai Kopp's lecture materials but the section about custom options import is limited in terms of required fields and default values that can go into them.
Would you be able to advise or point me to a resource where I could find more information about this subject?
Thank you.
Did you figure out how to import custom options with AvS Fastsimpleimport?
Update: For me it works when I don't set _custom_option_store
$data['_custom_option_type'] = array('field');
$data['_custom_option_title'] = array( 'This is my custom option:' );
$data['_custom_option_is_required'] = array( '0' );
Hi, I have the same problem for importing custom options for a simple product.I'm using the following data array:
$data[] = array( 'sku' => $i, '_type' => 'simple', '_attribute_set' => 'Default', '_product_websites' => 'base', '_category' => 'Art', 'name' => $randomString, 'price' => 0.99, 'special_price' => 0.90, 'cost' => 0.50, 'description' => 'Default', 'short_description' => 'Default', 'meta_title' => 'Default', 'media_gallery' => '/img/local.jpg', 'meta_description' => 'Default', 'meta_keyword' => 'Default', 'weight' => 11, 'status' => 1, 'visibility' => 4, 'tax_class_id' => 2, 'qty' => 0, 'is_in_stock' => 0, 'enable_googlecheckout' => '1', 'gift_message_available' => '0', 'url_key' => strtolower($randomString), '_custom_option_row_sort' => array(0,1,2,3), '_custom_option_div_class' => array('p-size'), '_custom_option_row_sku' => array('sku1','sku2','sku3','sku4'), '_custom_option_row_title' => array('c_title1','c_title2','c_title3','c_title4'), '_custom_option_row_price' => array(10,21,32,43), '_custom_option_type' => array('radio'), '_custom_option_is_required' => 1, '_custom_option_row_default' => 1 );
And the output goes like this:
Array ( ) Elapsed time: 0.9s