scrap fix

This commit is contained in:
merdan 2022-02-04 15:48:26 +05:00
parent 3be851946f
commit ece2b58d60
2 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@ return [
| |
*/ */
'enabled' => env('DEBUGBAR_ENABLED', null), 'enabled' => env('DEBUGBAR_ENABLED', false),
'except' => [ 'except' => [
'telescope*', 'telescope*',
'horizon*', 'horizon*',

View File

@ -292,6 +292,7 @@ class ProductRepository extends WProductRepository
$parentProduct = $this->getModel()->create($product); $parentProduct = $this->getModel()->create($product);
$this->assignAttributes($parentProduct, [ $this->assignAttributes($parentProduct, [
'sku' => $parentProduct->sku, 'sku' => $parentProduct->sku,
'price' => Arr::get($data, 'price.discountedPrice.value'),$data['price'],
'name' => $data['name'], 'name' => $data['name'],
'weight' => 0, 'weight' => 0,
'status' => 1, 'status' => 1,