Ejemplo n.º 1
0
 /**
  * @param CartCore $cart
  * @param ShopgateOrder $order
  * @param int $shopNumber
  * @return bool
  */
 public function fillFromOrder($cart, $order, $shopNumber)
 {
     $this->id_cart = $cart->id;
     $this->order_number = $order->getOrderNumber();
     $this->shipping_cost = $order->getAmountShipping();
     $this->shipping_service = Configuration::get('SG_SHIPPING_SERVICE');
     $this->shop_number = $shopNumber;
     $this->shopgate_order = $order;
 }