PrestaSharp icon indicating copy to clipboard operation
PrestaSharp copied to clipboard

Update an existing product

Open luiskar009 opened this issue 7 years ago • 1 comments

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.

luiskar009 avatar Jun 17 '17 11:06 luiskar009

I think it's better to continue in my issue #264: look like to be the same error

MarcoITDev avatar Jun 19 '17 06:06 MarcoITDev