virofla Posted October 24, 2013 Share Posted October 24, 2013 Hello to all, I have a problem, I have developed a module that allows me to import the products on prestashop upgrading the amount if a product already exists. It works, but since I installed the module ebay, I'd like to each product update was called the hook updateQuantity. This is the code I use, but I can not call the hook: $product = new Product((int)$id_product); $product->quantity = (int)$dispo; $product->price = (float)number_format((float)$priceVenditaDefault, 6, '.', ''); $product->wholesale_price = (float)number_format((float)$priceAcq, 6, '.', ''); $product->weight= $peso; $product->height= $altezza; $product->width= $lunghezza; $product->depth= $profondita; $product->id_tax_rules_group = 2; $product->update(); thanks Link to comment Share on other sites More sharing options...
Recommended Posts