TeeT Posted August 30, 2015 Share Posted August 30, 2015 Hello EveryBody, I try to develop a desktop application with c#.net. The program can connect to my site's Database via webservice. i could manage many things but the add new product is the problem for me. Actually i can add new product but i can not set the supplier of this product. .... .... .... NewProduct.id_supplier = (long)18; //id of supplier NewProduct.supplier_reference = NameOfSupplier; product ReturnProduct = ProductFactory.Add(NewProduct) after this operation ReturnProduct.id_supplier = 18 is correct but when i open the Manager console of the my site and open the the product properties the Suppliers was not be selected, of course in the site the product can not be shown in this supplier's category. i try to everything to solve this problem but i couldn't.. Link to comment Share on other sites More sharing options...
pedepot Posted October 4, 2015 Share Posted October 4, 2015 hello, Could you share more about your implementation. Prestashop takes all your resources as String not integer. Maybe you should just set id_supplier as String rather than Integer in your code. Best regards, Link to comment Share on other sites More sharing options...
TeeT Posted October 16, 2015 Author Share Posted October 16, 2015 hello i solved this problem. the issue is about product_supplier not Supplier when i add the prdoduct_supplier by product id it will be ok. thank you. 1 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