I am working on Source Magento to Destination Magento migration. I have created an attribute like other attributes so that is not the issue but I am having a big issue or say I don't know how to do....that....if drop down type attribute is already there in destination magento then how to know that which options are missing & insert those options only.
I got a very nice solution in Milan's answer here..... https://stackoverflow.com/questions/32679416/create-a-new-dropdown-select-product-attribute-with-options-in-magento-via-s
What he is doing...creating attribute first & then looping through the options & one by one inserting options in that attribute but here comes the point....that if this attribute is already there in destination magento then how to find that....these....these....options are available in destination magento & we only need to insert these....these....options.
Here is what I am doing to check whether the attribute is already there in destination magento or not....
$check_magento_attribute_already_available_ornot = $dProxy->call($dSessionid,'product_attribute.info',$attribute_code);
This will give true or error & according to that I create or update the attribute.
So finally the questions are 2 :- 1) How to check if options...already there in destination magento's attribute using soap api 2) How to insert that drop down type attribute's value in product at the time of product creation or updation? - Whether to use multi_data or single_data?
Thanks.