Skip to content

Commit

Permalink
Added In Default Theme As Well
Browse files Browse the repository at this point in the history
  • Loading branch information
devansh-webkul committed Aug 4, 2020
1 parent a990963 commit 67ddf60
Showing 1 changed file with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,24 @@
<span>{{ __('shop::app.products.qty') }}</span>
</li>
@foreach ($product->grouped_products as $groupedProduct)
<li>
<span class="name">
{{ $groupedProduct->associated_product->name }}
@if($groupedProduct->associated_product->getTypeInstance()->isSaleable())
<li>
<span class="name">
{{ $groupedProduct->associated_product->name }}

@include ('shop::products.price', ['product' => $groupedProduct->associated_product])
</span>
@include ('shop::products.price', ['product' => $groupedProduct->associated_product])
</span>

<span class="qty">
<quantity-changer
:control-name="'qty[{{$groupedProduct->associated_product_id}}]'"
:validations="'required|numeric|min_value:0'"
quantity="{{ $groupedProduct->qty }}"
min-quantity="0">
</quantity-changer>
</span>
</li>
<span class="qty">
<quantity-changer
:control-name="'qty[{{$groupedProduct->associated_product_id}}]'"
:validations="'required|numeric|min_value:0'"
quantity="{{ $groupedProduct->qty }}"
min-quantity="0">
</quantity-changer>
</span>
</li>
@endif
@endforeach
</ul>
</div>
Expand Down

0 comments on commit 67ddf60

Please sign in to comment.