I use the import/export functionality in order to import products each night. I additionally use AvS_FastSimpleImport, but this should not really matter. Many of my products have custom options. In the data I import, I set something like this in order to import the custom option:
'_custom_option_title' => 'My super funky option title',
'_custom_option_type' => Mage_Catalog_Model_Product_Option::OPTION_TYPE_CHECKBOX,
'_custom_option_is_required' => false,
'_custom_option_row_title' => 'My super funky option row title',
'_custom_option_row_price' => 50,
'_custom_option_row_sku' => 'MY_SKU'
The problem is that the custom option is not updated, but always added again. Hence, I have the same custom option multiple times.
I tried to set a _custom_option_sku
and hoped that this would work, but the SKU is ignored completely (source).
Another alternative would be to completely replace all products and not update them (Mage_ImportExport_Model_Import::BEHAVIOR_REPLACE
instead of Mage_ImportExport_Model_Import::BEHAVIOR_APPEND
), but I would rather like to avoid this.
So any idea how an existing custom option can be updated with the ImportExport module?