diff --git a/config/debugbar.php b/config/debugbar.php index e7f6b0999..bbe553bea 100644 --- a/config/debugbar.php +++ b/config/debugbar.php @@ -14,7 +14,7 @@ return [ | */ - 'enabled' => env('DEBUGBAR_ENABLED', null), + 'enabled' => env('DEBUGBAR_ENABLED', false), 'except' => [ 'telescope*', 'horizon*', diff --git a/packages/Sarga/Shop/src/Repositories/ProductRepository.php b/packages/Sarga/Shop/src/Repositories/ProductRepository.php index 63d903246..c04240502 100644 --- a/packages/Sarga/Shop/src/Repositories/ProductRepository.php +++ b/packages/Sarga/Shop/src/Repositories/ProductRepository.php @@ -292,6 +292,7 @@ class ProductRepository extends WProductRepository $parentProduct = $this->getModel()->create($product); $this->assignAttributes($parentProduct, [ 'sku' => $parentProduct->sku, + 'price' => Arr::get($data, 'price.discountedPrice.value'),$data['price'], 'name' => $data['name'], 'weight' => 0, 'status' => 1,