Orinoko Posted June 24, 2016 Share Posted June 24, 2016 Prestashop 1.6.1.2 If create order $order->add(); and not specify id_cart or set it to 0, it will delete all rows in ps_specific_price where idcart=0 Override: class SpecificPrice extends SpecificPriceCore { public static function deleteByIdCart($id_cart, $id_product = false, $id_product_attribute = false) { if(!empty($id_cart)){ return Db::getInstance()->execute(' DELETE FROM `'._DB_PREFIX_.'specific_price` WHERE id_cart='.(int)$id_cart. ($id_product ? ' AND id_product='.(int)$id_product.' AND id_product_attribute='.(int)$id_product_attribute : '')); }else{ return true; } } } Link to comment Share on other sites More sharing options...
musicmaster Posted June 24, 2016 Share Posted June 24, 2016 Bug reports must be posted at forge.prestashop.com. The Prestashop staff doesn't follow this forum. Link to comment Share on other sites More sharing options...
Orinoko Posted June 24, 2016 Author Share Posted June 24, 2016 Bug reports must be posted at forge.prestashop.com. The Prestashop staff doesn't follow this forum. Thanks, http://forge.prestashop.com/browse/PSCSX-8168 already posted Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now