Jump to content

Web service : assign category to a product


Runan

Recommended Posts

I manage to add product in c# via webservice. I have just one problem. My product is stored in the back office but I can't see it in the front office. I supposed it come from the parameter <position_in_category> with the value 0. This parameter is in the read only mode. :blink:

 

My code in c# :

"<associations>" +
							    "<categories>"+
								    "<category xlink:href=\"https://www.mysite.fr/api/categories/" + ComboBoxCategories.SelectedValue.ToString() + "\">" +
									    "<id>" + ComboBoxCategories.SelectedValue.ToString() + "</id>" +
								    "</category>"+
							    "</categories>" +
							    "<combinations><combinations><id /></combinations></combinations>" +
							    "<product_option_values><product_options_values><id /></product_options_values></product_option_values>" +
							    "<product_features><product_feature><id /><id_feature_value /></product_feature></product_features>" +
							    "<tags><tag><id /></tag></tags>" +
							    "<stock_availables><stock_available><id /><id_product_attribute /></stock_available></stock_availables>" +
						    "</associations>"

 

Do I have to assign the category after creation of the product or is there any way to manage to assign category to a product via webservice ?

 

Regards.

Link to comment
Share on other sites

  • 11 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...