cancel
Showing results for 
Search instead for 
Did you mean: 

Getting past “Select Configurable Attributes” programmatically via SOAP API

Getting past “Select Configurable Attributes” programmatically via SOAP API

We are using the Magento SOAP API to programmatically create configurable products ("catalog_product.create"), but we would also like to programmatically choose the configurable attributes for the new product (i.e. bypass the "Select Configurable Attributes" screen where the attributes for the configurable product must be chosen manually). This step must happen before simple products can successfully be associated with the configurable product via the API.

 

We have tried sending various parameters to "catalog_product.create" but nothing we have tried has successfully allowed us past the screen. Googling this issue has not produced any answers. Has anyone run into this issue before and found a fix?

 

http://www.magentocommerce.com/api/soap/catalog/catalogProduct/catalog_product.create.html

 

Below is the JSON for the product.  The attribute set has been set, and the two attributes that need to be configurable are "color" and "size".

 

{

"product_id"=>"66",

"sku"=>"test",

"set"=>"4",

"type"=>"configurable",

"categories"=>[],

"websites"=>["1"],

"type_id"=>"configurable",

"name"=>"test",

"style_number"=>nil,

"manufacturer"=>nil,

"description"=>"Test",

"old_id"=>nil,

"product_details"=>nil,

"short_description"=>"Test",

"color"=>nil,

"size"=>nil,

"length"=>nil,

"url_path"=>"test.html",

"activity"=>nil,

"print"=>nil,

"category_ids"=>[],

"news_from_date"=>nil,

"required_options"=>"0",

"has_options"=>"0",

"news_to_date"=>nil,

"image_label"=>nil,

"status"=>"2",

"url_key"=>"test",

"small_image_label"=>nil,

"thumbnail_label"=>nil,

"visibility"=>"4",

"created_at"=>"2015-03-26T07:36:04-07:00",

"country_of_manufacture"=>nil,

"updated_at"=>"2015-03-26 14:36:04",

"is_returnable"=>"2",

"amxnotif_hide_alert"=>nil,

"related_tgtr_position_limit"=>nil,

"related_tgtr_position_behavior"=>nil,

"upsell_tgtr_position_limit"=>nil,

"upsell_tgtr_position_behavior"=>nil,

"price"=>"100.0000",

"group_price"=>[],

"special_price"=>nil,

"minimal_price"=>nil,

"special_from_date"=>nil,

"special_to_date"=>nil,

"tier_price"=>[],

"msrp_enabled"=>nil,

"msrp_display_actual_price_type"=>nil,

"msrp"=>nil,

"tax_class_id"=>nil,

"meta_title"=>nil,

"meta_keyword"=>nil,

"meta_description"=>nil,

"custom_design"=>nil,

"custom_design_from"=>nil,

"custom_design_to"=>nil,

"custom_layout_update"=>nil,

"page_layout"=>nil,

"options_container"=>"container1",

"gift_message_available"=>nil,

"gift_wrapping_available"=>nil,

"gift_wrapping_price"=>nil

}

Tags (1)
1 REPLY

Re: Getting past “Select Configurable Attributes” programmatically via SOAP API

Did you find your solution to this? If so can you post your answer

Magento Moderator since 2009
Keep Calm and Clear Cache!