sku
parent
665e2b11cf
commit
4cc1ab4629
|
|
@ -161,7 +161,7 @@ class ProductSku extends Model
|
|||
public function getSaleableStockAttribute(): int
|
||||
{
|
||||
if ($this->isOnline()) {
|
||||
if ($this->is_pre_sale || $this->spu->is_pre_sale) {
|
||||
if ($this->is_pre_sale || $this->spu?->is_pre_sale) {
|
||||
return 99999;
|
||||
}
|
||||
return $this->attributes['stock'];
|
||||
|
|
|
|||
Loading…
Reference in New Issue