PrestaSharp
PrestaSharp copied to clipboard
Update an existing product
ProductFactory pf = new ProductFactory(ConfigurationManager.AppSettings["baseUrl"].ToString(), ConfigurationManager.AppSettings["accProduct"].ToString(), ""); string id = ""; /* I get the id of the product i want to edit from the MySql table ps_product */ product editProd = pf.Get(Int64.Parse(id)); editProd.name[0].Value = "Name Changed"; pf.Update(editProd);
When it executes the Update function it doesn't matter what change for the exiting product it displays an error:
Original message: La etiqueta de apertura 'meta' en la línea 11 posición 2 no coincide con la etiqueta de cierre de 'head'. línea 20, posición 3. Translate message: The 'meta' opening tag on line 11 position 2 does not match the 'head' closing tag. Line 20, position 3.
I think it's better to continue in my issue #264: look like to be the same error