Product updating

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 anni tempo fa
Hi

I'm using v1.50 a have got a problem with product updating. If i import some products from Excel and after that i change the price of an existing product in Excel. Now i import the Excel file with my products again. The product with the new price isn't updated, there are now two products. One with the old price and one with the old price.

Is it possible to update a product? Or must i always delete all products and import all of them again?

See you, BBAG
13 anni tempo fa
Import function is using product SKU field to search existing product variants. You should assign it for updating instead of inserting.

This is code sample from ImportManager.ImportProductsFromXls


string SKU = dr["SKU"].ToString();
...
var productVariant = ProductManager.GetProductVariantBySKU(SKU);
if (productVariant != null)
{
    //Update...
}
else
{
    //Insert...
}
13 anni tempo fa
Thank you. I'll check it.

Regards BBAG
13 anni tempo fa
Yeah, it works!! :-) Thank you
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.