Komp / Max Produkt,
This commit is contained in:
parent
a4c76d06fa
commit
78f43169c8
19 changed files with 347 additions and 51 deletions
|
|
@ -141,7 +141,10 @@ class Product extends Model
|
|||
'wp_number' => 'int',
|
||||
'single_commission' => 'bool',
|
||||
'amount_commission' => 'bool',
|
||||
'active' => 'bool'
|
||||
'active' => 'bool',
|
||||
'shipping_addon' => 'bool',
|
||||
'max_buy' => 'bool',
|
||||
'max_buy_num' => 'int'
|
||||
];
|
||||
use Sluggable;
|
||||
|
||||
|
|
@ -178,7 +181,10 @@ class Product extends Model
|
|||
'partner_commission',
|
||||
'identifier',
|
||||
'action',
|
||||
'upgrade_to_id'
|
||||
'upgrade_to_id',
|
||||
'shipping_addon',
|
||||
'max_buy',
|
||||
'max_buy_num'
|
||||
];
|
||||
|
||||
public $identifiers_types = [
|
||||
|
|
@ -249,6 +255,10 @@ class Product extends Model
|
|||
return $this->hasMany(CountryPrice::class, 'product_id');
|
||||
}
|
||||
|
||||
public function product_buys()
|
||||
{
|
||||
return $this->hasMany(ProductBuy::class, 'product_id');
|
||||
}
|
||||
|
||||
public function p_ingredients()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue