Done From User End
This commit is contained in:
parent
ae95459974
commit
0737ba63ee
|
|
@ -1,5 +1,4 @@
|
|||
@inject ('toolbarHelper', 'Webkul\Product\Helpers\Toolbar')
|
||||
@inject ('productImageHelper', 'Webkul\Product\Helpers\ProductImage')
|
||||
|
||||
@extends('shop::customers.account.index')
|
||||
|
||||
|
|
@ -28,59 +27,27 @@
|
|||
|
||||
@if ($items->count())
|
||||
@foreach ($items as $item)
|
||||
<div class="col-12 lg-card-container list-card product-card row">
|
||||
<div class="product-image">
|
||||
<a
|
||||
title="{{ $item->product->name }}"
|
||||
href="{{ route('shop.productOrCategory.index', $item->product->url_key) }}">
|
||||
@php
|
||||
$currentMode = $toolbarHelper->getCurrentMode();
|
||||
$moveToCartText = __('shop::app.customer.account.wishlist.move-to-cart');
|
||||
@endphp
|
||||
|
||||
<img
|
||||
src="{{ $productImageHelper->getProductBaseImage($item->product)['medium_image_url'] }}"
|
||||
:onerror="`this.src='${this.$root.baseUrl}/vendor/webkul/ui/assets/images/product/large-product-placeholder.png'`" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="product-information">
|
||||
<div>
|
||||
<div class="product-name mt10">
|
||||
<a
|
||||
href="{{ route('shop.productOrCategory.index', $item->product->url_key) }}"
|
||||
title="{{ $item->product->name }}" class="unset">
|
||||
|
||||
<span class="fs16">{{ $item->product->name }}</span>
|
||||
|
||||
@if (isset($item->additional['attributes']))
|
||||
<div class="item-options">
|
||||
|
||||
@foreach ($item->additional['attributes'] as $attribute)
|
||||
<b>{{ $attribute['attribute_name'] }} : </b>{{ $attribute['option_label'] }}</br>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
@endif
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="product-price">
|
||||
@include ('shop::products.price', ['product' => $item->product])
|
||||
</div>
|
||||
|
||||
<div class="operations">
|
||||
<a href="{{ route('customer.wishlist.move', $item->id) }}" class="btn btn-add-to-cart">
|
||||
{{ __('shop::app.customer.account.wishlist.move-to-cart') }}
|
||||
</a>
|
||||
|
||||
<a href="{{ route('customer.wishlist.remove', $item->id) }}" class="btn btn-warning">
|
||||
{{ __('shop::app.customer.account.address.index.delete') }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@include ('shop::products.list.card', [
|
||||
'checkmode' => true,
|
||||
'moveToCart' => true,
|
||||
'addToCartForm' => true,
|
||||
'removeWishlist' => true,
|
||||
'reloadPage' => true,
|
||||
'itemId' => $item->id,
|
||||
'product' => $item->product,
|
||||
'additionalAttributes' => true,
|
||||
'btnText' => $moveToCartText,
|
||||
'addToCartBtnClass' => 'small-padding',
|
||||
])
|
||||
@endforeach
|
||||
|
||||
<div class="bottom-toolbar">
|
||||
{{ $items->links() }}
|
||||
{{ $items->links() }}
|
||||
</div>
|
||||
@else
|
||||
<div class="empty">
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
$galleryImages = $productImageHelper->getGalleryImages($product);
|
||||
$priceHTML = view('shop::products.price', ['product' => $product])->render();
|
||||
|
||||
|
||||
$product->__set('priceHTML', $priceHTML);
|
||||
$product->__set('avgRating', $avgRatings);
|
||||
$product->__set('totalReviews', $totalReviews);
|
||||
|
|
@ -115,7 +115,7 @@
|
|||
{{-- <product-quick-view-btn :quick-view-details="product"></product-quick-view-btn> --}}
|
||||
<product-quick-view-btn :quick-view-details="{{ json_encode($product) }}"></product-quick-view-btn>
|
||||
</a>
|
||||
|
||||
|
||||
@if ($product->new)
|
||||
<div class="sticker new">
|
||||
{{ __('shop::app.products.new') }}
|
||||
|
|
@ -130,6 +130,18 @@
|
|||
class="unset">
|
||||
|
||||
<span class="fs16">{{ $product->name }}</span>
|
||||
|
||||
@if (isset($additionalAttributes) && $additionalAttributes)
|
||||
@if (isset($item->additional['attributes']))
|
||||
<div class="item-options">
|
||||
|
||||
@foreach ($item->additional['attributes'] as $attribute)
|
||||
<b>{{ $attribute['attribute_name'] }} : </b>{{ $attribute['option_label'] }}</br>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue