Issue #6972 fixed
This commit is contained in:
parent
aad4ba93fd
commit
a7979d709a
File diff suppressed because one or more lines are too long
|
|
@ -4,7 +4,7 @@
|
|||
"/js/velocity.js": "/js/velocity.js?id=1f4ae4855a36d2f980c787c0f2151eba",
|
||||
"/js/manifest.js": "/js/manifest.js?id=4113cf6789cdd4f2768f508bc32cad2d",
|
||||
"/js/components.js": "/js/components.js?id=30f7b8203c73ee97e82a2fb93bba6fae",
|
||||
"/css/velocity.css": "/css/velocity.css?id=75868e17fec8aa8c77c4597a6f6676d6",
|
||||
"/css/velocity.css": "/css/velocity.css?id=ea5628fe388de780093c4d8775c0d3aa",
|
||||
"/css/velocity-admin.css": "/css/velocity-admin.css?id=b67a82956e53163b5e3ff45a44f9778f",
|
||||
"/images/Camera.svg": "/images/Camera.svg?id=b2fd2f9e17e1ccee96e29f6c6cec91e8",
|
||||
"/images/Icon-Arrow-Right.svg": "/images/Icon-Arrow-Right.svg?id=e30f624f1a70197dc9ad9011b240aa8e",
|
||||
|
|
|
|||
|
|
@ -2530,7 +2530,7 @@
|
|||
|
||||
.btn-add-to-cart {
|
||||
white-space: pre-wrap;
|
||||
max-width: 63%;
|
||||
width:220px;
|
||||
}
|
||||
|
||||
.close-btn {
|
||||
|
|
@ -2558,11 +2558,22 @@
|
|||
}
|
||||
}
|
||||
|
||||
.wishlist-icon {
|
||||
top: 5px;
|
||||
right: 52px;
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
.wishlist {
|
||||
display: flex;
|
||||
padding: 7px;
|
||||
width: max-content;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.wishlist span {
|
||||
font-size: 14px;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.comparison-remove {
|
||||
float: right;
|
||||
margin-top: -31px;
|
||||
margin-right: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -74,13 +74,11 @@
|
|||
@case('addToCartHtml')
|
||||
<div class="action">
|
||||
<vnode-injector :nodes="getDynamicHTML(product.addToCartHtml)"></vnode-injector>
|
||||
|
||||
<i
|
||||
class="material-icons cross fs16"
|
||||
@click="removeProductCompare(product.id)">
|
||||
|
||||
close
|
||||
</i>
|
||||
<div class="comparison-remove" style="">
|
||||
<span class="rango-delete fs24" @click="removeProductCompare(product.id)"></span>
|
||||
|
||||
<span class="align-vertical-top" @click="removeProductCompare(product.id)">{{ __('shop::app.checkout.cart.remove') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
@break
|
||||
|
||||
|
|
|
|||
|
|
@ -20,18 +20,6 @@
|
|||
></compare-component>
|
||||
@endif
|
||||
|
||||
@if (
|
||||
! (
|
||||
isset($showWishlist)
|
||||
&& ! $showWishlist
|
||||
)
|
||||
&& (bool) core()->getConfigData('general.content.shop.wishlist_option')
|
||||
)
|
||||
@include('shop::products.wishlist', [
|
||||
'addClass' => $addWishlistClass ?? ''
|
||||
])
|
||||
@endif
|
||||
|
||||
<div class="add-to-cart-btn pl0">
|
||||
@if (
|
||||
isset($form)
|
||||
|
|
@ -89,6 +77,18 @@
|
|||
</add-to-cart>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@if (
|
||||
! (
|
||||
isset($showWishlist)
|
||||
&& ! $showWishlist
|
||||
)
|
||||
&& (bool) core()->getConfigData('general.content.shop.wishlist_option')
|
||||
)
|
||||
@include('shop::products.wishlist', [
|
||||
'addClass' => $addWishlistClass ?? ''
|
||||
])
|
||||
@endif
|
||||
</div>
|
||||
|
||||
{!! view_render_event('bagisto.shop.products.add_to_cart.after', ['product' => $product]) !!}
|
||||
|
|
@ -19,24 +19,27 @@
|
|||
/* title */
|
||||
$title = $wishlist ? __('velocity::app.shop.wishlist.remove-wishlist-text') : __('velocity::app.shop.wishlist.add-wishlist-text');
|
||||
@endphp
|
||||
|
||||
<a
|
||||
class="unset wishlist-icon {{ $addWishlistClass ?? '' }} text-right"
|
||||
href="javascript:void(0);"
|
||||
title="{{ $title }}"
|
||||
onclick="submitWishlistForm(
|
||||
'{{ $href }}',
|
||||
'{{ $method }}',
|
||||
{{ $isConfirm }},
|
||||
'{{ csrf_token() }}'
|
||||
)"
|
||||
>
|
||||
<wishlist-component active="{{ $wishlist ? false : true }}"></wishlist-component>
|
||||
|
||||
@if (isset($text))
|
||||
{!! $text !!}
|
||||
@endif
|
||||
</a>
|
||||
<div>
|
||||
<a
|
||||
class="unset wishlist-icon wishlist{{ $addWishlistClass ?? '' }} text-right"
|
||||
href="javascript:void(0);"
|
||||
title="{{ $title }}"
|
||||
onclick="submitWishlistForm(
|
||||
'{{ $href }}',
|
||||
'{{ $method }}',
|
||||
{{ $isConfirm }},
|
||||
'{{ csrf_token() }}'
|
||||
)"
|
||||
>
|
||||
<wishlist-component active="{{ $wishlist ? false : true }}"></wishlist-component>
|
||||
|
||||
@if (isset($text))
|
||||
{!! $text !!}
|
||||
@else
|
||||
<span>{{__('admin::app.admin.system.wishlist')}}</span>
|
||||
@endif
|
||||
</a>
|
||||
</div>
|
||||
@endauth
|
||||
|
||||
@guest('customer')
|
||||
|
|
@ -45,15 +48,16 @@
|
|||
action="{{ route('shop.customer.wishlist.add', $product->id) }}"
|
||||
method="POST">
|
||||
@csrf
|
||||
|
||||
<a
|
||||
class="unset wishlist-icon {{ $addWishlistClass ?? '' }} text-right"
|
||||
href="javascript:void(0);"
|
||||
title="{{ __('velocity::app.shop.wishlist.add-wishlist-text') }}"
|
||||
onclick="document.getElementById('wishlist-{{ $product->id }}').submit();">
|
||||
<div>
|
||||
<a
|
||||
class="unset wishlist-icon wishlist {{ $addWishlistClass ?? '' }} text-right"
|
||||
href="javascript:void(0);"
|
||||
title="{{ __('velocity::app.shop.wishlist.add-wishlist-text') }}"
|
||||
onclick="document.getElementById('wishlist-{{ $product->id }}').submit();">
|
||||
|
||||
<wishlist-component active="false"></wishlist-component>
|
||||
</a>
|
||||
<wishlist-component active="false"></wishlist-component>
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
@endauth
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue