Esempio n. 1
0
 public function add($autodate = true, $null_values = true)
 {
     $order = new Order($this->id_order);
     $cart = new Cart($order->id_cart);
     Hook::exec('actionBeforeAddOrderInvoice', array('order_invoice' => $this, 'order' => $order, 'cart' => $cart));
     return parent::add($autodate, $null_values);
 }
Esempio n. 2
0
 public function getProducts($products = false, $selected_products = false, $selected_qty = false)
 {
     $products = parent::getProducts($products, $selected_products, $selected_qty);
     foreach ($products as &$product) {
         Product::amendProduct($product);
     }
     return $products;
 }