Пример #1
0
 public static function deleteProduct($id_product, $id_product_attribute = null, $id_customization = null, $id_address_delivery = 0)
 {
     $result = Hook::exec('ppbsDeleteCartProduct', array('id_product' => $id_product, 'id_product_attribute' => $id_product_attribute, 'id_customization' => $id_customization, 'id_address_delivery' => $id_address_delivery), null, false);
     if ($result == false) {
         parent::deleteProduct($id_product, $id_product_attribute = null, $id_customization = null, $id_address_delivery = 0);
     }
 }