DarioG Posted July 7, 2015 Share Posted July 7, 2015 Hi all, I'm working on a .NET application I need to update Prestashop via web service. Well I'm able to set product fields I need to manage. Now I need to set categories to each product. My trouble is I cannot understand in which way I can manage categories. Could you give me an example about it? In which way I can set categories to product via web service? thanks in advance to everybody! Dario Link to comment Share on other sites More sharing options...
DarioG Posted July 7, 2015 Author Share Posted July 7, 2015 _xmld -> xmlDocument from (WebRequest.Create("http://mystore.com/api/products/22")) Dim retVal as string = GetPSCategory() -> function which returns PS ID categories from ERP Dim _xmlNodeLR As Xml.XmlNode = _xmld.SelectSingleNode("prestashop/product/associations/categories") Dim _LinkRewriteNode As Xml.XmlNodeList = _xmlNodeLR.ChildNodes For _LRNodeIndex As Integer = 0 To _LinkRewriteNode.Count - 1 _LinkRewriteNode(_LRNodeIndex).InnerXml = "<id><![CDATA[" & retVal & "]]></id>" Next I solved it! 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