Beispiel #1
0
 /**
  * @param Product $product
  */
 public function categorise(Product $product)
 {
     $product->taxable(false);
 }
Beispiel #2
0
 /**
  * @param $sku
  * @param $name
  * @param $price
  * @param array $actions
  */
 public function addQuick($sku, $name, $price, $actions = [])
 {
     $price = new Money($price, $this->jurisdiction->currency());
     $product = new Product($sku, $name, $price, $this->basket->rate());
     $product->action($this->productClosure($actions));
     $this->basket->add($product);
     $this->reconcile();
 }