menu Controller
This commit is contained in:
parent
c9126ec5cd
commit
0602a88727
|
|
@ -85,7 +85,7 @@ class Product extends JsonResource
|
|||
{
|
||||
if($this->type == 'configurable')
|
||||
{
|
||||
$product = $this->variants()->with('product_flat')->orderBy('product_flat.min_price')->first();
|
||||
$product = $this->variants()->with('product_flats')->orderBy('product_flat.min_price')->first();
|
||||
|
||||
}else{
|
||||
$product = $this->product ? $this->product : $this;
|
||||
|
|
|
|||
Loading…
Reference in New Issue