-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split cart products listing partials (#62)
- Loading branch information
Showing
7 changed files
with
40 additions
and
34 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
resources/views/cart/partials/product/description.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<td class="flex max-md:w-1/2 md:table-cell"> | ||
<div class="flex flex-col items-start"> | ||
<a :href="item.url | url"> | ||
<div dusk="cart-item-name">@{{ item.name }}</div> | ||
<div v-for="(optionValue, option) in item.options"> | ||
@{{ option }}: @{{ optionValue }} | ||
</div> | ||
<div v-for="option in cart?.items2?.find((item) => item.item_id == itemId).options.filter((option) => !['info_buyRequest', 'option_ids'].includes(option.code) && option.label)"> | ||
@{{ option.label }}: @{{ option.value.title || option.value }} | ||
</div> | ||
</a> | ||
@include('rapidez-ct::cart.partials.product.remove-button') | ||
</div> | ||
</td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<td class="h-24 w-40 !pl-0 max-md:flex max-md:w-1/2"> | ||
<img v-if="item.image" class="object-contain" :alt="item.name" :src="'/storage/{{ config('rapidez.store') }}/resizes/200/magento/catalog/product' + item.image + '.webp'"> | ||
<x-rapidez::no-image v-else /> | ||
</td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<td class="flex items-center font-medium max-md:w-1/3 md:table-cell"> | ||
<div v-if="item.specialPrice"> | ||
@{{ item.specialPrice | price }} | ||
</div> | ||
<div :class="{ 'line-through text-xs text-ct-inactive font-normal': item.specialPrice }"> | ||
@{{ item.price | price }} | ||
</div> | ||
</td> | ||
<td class="flex items-center font-medium max-md:w-1/3 md:table-cell [&>*]:mx-auto"> | ||
<x-rapidez-ct::input.quantity/> | ||
</td> | ||
<td class="flex items-center justify-end text-right font-medium max-md:w-1/3 md:table-cell"> | ||
@{{ item.total | price }} | ||
</td> |
3 changes: 3 additions & 0 deletions
3
resources/views/cart/partials/product/remove-button.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<button v-on:click="remove(item)" class="text-ct-inactive mt-1 text-xs hover:underline" :dusk="'item-delete-' + index"> | ||
@lang('Remove') | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
resources/views/checkout/partials/sections/newsletter.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<x-rapidez-ct::newsletter v-model="checkout.newsletter_subscribe" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters