Example #1
0
 /**
  * OrderItem constructor.
  * @param array $attributes
  */
 public function __construct($attributes = array())
 {
     $this->item = new Collection();
     parent::__construct($attributes);
 }
Example #2
0
 /**
  * Order constructor.
  * @param array $attributes
  */
 public function __construct(array $attributes = [])
 {
     foreach ($this->fillable as $field) {
         if (!isset($attributes[$field])) {
             $attributes[$field] = '';
         }
     }
     parent::__construct($attributes);
     $this->prices_include_tax = Settings::pricesIncludeTax();
     $this->tax_display_cart = Settings::get('tax_display_price_during_cart', 'no');
 }