Open flauteps opened 7 years ago
You can insert link_rewrite doing this:
product prod = new product(); string name = "Name of product" Bukimedia.PrestaSharp.Entities.AuxEntities.language auxLang = new Bukimedia.PrestaSharp.Entities.AuxEntities.language(); auxLang.Value = name.ToLower().Replace(" ", "-"); auxLang.id = 1; prod.link_rewrite.Add(auxLang);
Unfortunately, it does not work Below I attach the XML and the error
application/json, application/xml, text/json, text/x-json, text/javascript, text/xml, text/html
<?xml version="1.0" encoding="UTF-8"?>
HttpStatusCode: BadRequest
You have probably forgotten to change the namespace in Bukimedia.PrestaSharpSerializer.cs
I moved the the location of Bukimedia.PrestaSharp.Entities.AuxEntities.language -> shop.api.prestashop.Entities.AuxEntities.language and the auto-apply-rename updated alle references except from the "Bukimedia.PrestaSharp.Entities.AuxEntities.language", since they were in a string.
Everything worked after that, and the "<![CDATA[84]]>
Hi when I try to add a product we have the error: Property Product->link_rewrite is empty