Runan Posted November 28, 2012 Share Posted November 28, 2012 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. 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 More sharing options...
Runan Posted November 29, 2012 Author Share Posted November 29, 2012 I found my solution. I have justed deleted the line : <combinations><combinations><id /></combinations></combinations> and I can see now py product in my front office. Link to comment Share on other sites More sharing options...
ambitos Posted November 13, 2013 Share Posted November 13, 2013 Can you please show all your c# code? I am trying to add new category with c# and I have problems. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now