groupby color

This commit is contained in:
merdan 2022-04-01 13:43:38 +05:00
parent 2bb0db9af6
commit 0526d5af16
1 changed files with 15 additions and 15 deletions

View File

@ -61,7 +61,7 @@ class Product extends JsonResource
*/ */
// 'specifications' => app('Webkul\Product\Helpers\View')->getAdditionalData($product), // 'specifications' => app('Webkul\Product\Helpers\View')->getAdditionalData($product),
/* product's extra information */ /* product's extra information */
// $this->merge($this->allProductExtraInfo()), $this->merge($this->allProductExtraInfo()),
/* special price cases */ /* special price cases */
$this->merge($this->specialPriceInfo()), $this->merge($this->specialPriceInfo()),
@ -137,20 +137,20 @@ class Product extends JsonResource
return [ return [
/* grouped product */ /* grouped product */
$this->mergeWhen( // $this->mergeWhen(
$productTypeInstance instanceof \Webkul\Product\Type\Grouped, // $productTypeInstance instanceof \Webkul\Product\Type\Grouped,
$product->type == 'grouped' // $product->type == 'grouped'
? $this->getGroupedProductInfo($product) // ? $this->getGroupedProductInfo($product)
: null // : null
), // ),
//
/* bundle product */ // /* bundle product */
$this->mergeWhen( // $this->mergeWhen(
$productTypeInstance instanceof \Webkul\Product\Type\Bundle, // $productTypeInstance instanceof \Webkul\Product\Type\Bundle,
$product->type == 'bundle' // $product->type == 'bundle'
? $this->getBundleProductInfo($product) // ? $this->getBundleProductInfo($product)
: null // : null
), // ),
/* configurable product */ /* configurable product */
$this->mergeWhen( $this->mergeWhen(