Shop package view reset
This commit is contained in:
parent
7053a425c2
commit
80ea917581
|
|
@ -1,4 +1,5 @@
|
|||
{!! view_render_event('bagisto.shop.products.view.product-add.after', ['product' => $product]) !!}
|
||||
|
||||
<div class="add-to-buttons">
|
||||
@if ($product->type != 'configurable')
|
||||
@if ($product->totalQuantity() < 1 && $product->allow_preorder)
|
||||
|
|
@ -15,7 +16,7 @@
|
|||
|
||||
@include ('shop::products.buy-now')
|
||||
|
||||
<button type="submit" class="btn btn-lg btn-primary pre-order-btn" style="width: 100%; display: none;background: #000 !important;">
|
||||
<button type="submit" class="btn btn-lg btn-primary pre-order-btn" style="width: 100%; display: none;">
|
||||
{{ __('preorder::app.shop.products.preorder') }}
|
||||
</button>
|
||||
@endif
|
||||
|
|
|
|||
|
|
@ -1,14 +1,5 @@
|
|||
@if ($product->type != "configurable" && $product->totalQuantity() < 1 && $product->allow_preorder)
|
||||
@if (core()->getConfigData('preorder.settings.general.percent'))
|
||||
@if (core()->getConfigData('preorder.settings.general.preorder_type') == 'partial')
|
||||
<p>{{ __('preorder::app.shop.products.percent-to-pay', ['percent' => core()->getConfigData('preorder.settings.general.percent')]) }}</p>
|
||||
@endif
|
||||
@else
|
||||
<p>{{ __('preorder::app.shop.products.nothing-to-pay') }}</p>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if ($product->type == "configurable")
|
||||
@if ($product->type == "configurable")
|
||||
<div class="cart-wish-wrap">
|
||||
<a href="{{ route('cart.add.configurable', $product->url_key) }}" class="btn btn-lg btn-primary addtocart">
|
||||
{{ __('shop::app.products.add-to-cart') }}
|
||||
|
|
@ -16,21 +7,16 @@
|
|||
|
||||
@include('shop::products.wishlist')
|
||||
</div>
|
||||
@else
|
||||
@else
|
||||
<div class="cart-wish-wrap">
|
||||
<form action="{{ route('cart.add', $product->product_id) }}" method="POST">
|
||||
@csrf
|
||||
<input type="hidden" name="product" value="{{ $product->product_id }}">
|
||||
<input type="hidden" name="quantity" value="1">
|
||||
<input type="hidden" value="false" name="is_configurable">
|
||||
|
||||
@if ($product->totalQuantity() < 1 && $product->allow_preorder)
|
||||
<button class="btn btn-lg btn-primary addtocart">{{ __('preorder::app.shop.products.preorder') }}</button>
|
||||
@else
|
||||
<button class="btn btn-lg btn-primary addtocart" {{ $product->haveSufficientQuantity(1) ? '' : 'disabled' }}>{{ __('shop::app.products.add-to-cart') }}</button>
|
||||
@endif
|
||||
</form>
|
||||
|
||||
@include('shop::products.wishlist')
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
|
@ -1,19 +1,7 @@
|
|||
{!! view_render_event('bagisto.shop.products.add_to_cart.before', ['product' => $product]) !!}
|
||||
@php
|
||||
$status = core()->getConfigData('ShowPriceAfterLogin.settings.settings.enableordisable');
|
||||
|
||||
$function = core()->getConfigData('ShowPriceAfterLogin.settings.settings.selectfunction');
|
||||
@endphp
|
||||
|
||||
@if (($status && ! auth()->guard('customer')->check()) && ($function == 'hide-buy-cart-guest' || $function == 'hide-price-buy-cart-guest'))
|
||||
<div class="login-to-view-price">
|
||||
<a class="btn btn-lg btn-primary addtocart" href="{{ route('customer.session.index') }}" style="width:100%;">
|
||||
{{ __('ShowPriceAfterLogin::app.products.login-to-view-price') }}
|
||||
</a>
|
||||
</div>
|
||||
@else
|
||||
<button type="submit" class="btn btn-lg btn-primary addtocart" {{ $product->type != 'configurable' && ! $product->haveSufficientQuantity(1) ? 'disabled' : '' }}>
|
||||
<button type="submit" class="btn btn-lg btn-primary addtocart" {{ $product->type != 'configurable' && ! $product->haveSufficientQuantity(1) ? 'disabled' : '' }}>
|
||||
{{ __('shop::app.products.add-to-cart') }}
|
||||
</button>
|
||||
@endif
|
||||
</button>
|
||||
|
||||
{!! view_render_event('bagisto.shop.products.add_to_cart.after', ['product' => $product]) !!}
|
||||
|
|
@ -1,15 +1,7 @@
|
|||
{!! view_render_event('bagisto.shop.products.buy_now.before', ['product' => $product]) !!}
|
||||
|
||||
@php
|
||||
$status = core()->getConfigData('ShowPriceAfterLogin.settings.settings.enableordisable');
|
||||
|
||||
$function = core()->getConfigData('ShowPriceAfterLogin.settings.settings.selectfunction');
|
||||
@endphp
|
||||
|
||||
@if (($status && ! auth()->guard('customer')->check()) && ($function == 'hide-buy-cart-guest' || $function == 'hide-price-buy-cart-guest'))
|
||||
@else
|
||||
<button type="submit" data-href="{{ route('shop.product.buynow', $product->product_id)}}" class="btn btn-lg btn-primary buynow" {{ $product->type != 'configurable' && ! $product->haveSufficientQuantity(1) ? 'disabled' : '' }}>
|
||||
<button type="submit" data-href="{{ route('shop.product.buynow', $product->product_id)}}" class="btn btn-lg btn-primary buynow" {{ $product->type != 'configurable' && ! $product->haveSufficientQuantity(1) ? 'disabled' : '' }}>
|
||||
{{ __('shop::app.products.buy-now') }}
|
||||
</button>
|
||||
@endif
|
||||
</button>
|
||||
|
||||
{!! view_render_event('bagisto.shop.products.buy_now.after', ['product' => $product]) !!}
|
||||
|
|
@ -1,12 +1,7 @@
|
|||
{!! view_render_event('bagisto.shop.products.list.card.before', ['product' => $product]) !!}
|
||||
|
||||
@php
|
||||
$status = core()->getConfigData('ShowPriceAfterLogin.settings.settings.enableordisable');
|
||||
|
||||
$function = core()->getConfigData('ShowPriceAfterLogin.settings.settings.selectfunction');
|
||||
@endphp
|
||||
|
||||
<div class="product-card">
|
||||
|
||||
@inject ('productImageHelper', 'Webkul\Product\Helpers\ProductImage')
|
||||
|
||||
<?php $productBaseImage = $productImageHelper->getProductBaseImage($product); ?>
|
||||
|
|
@ -35,19 +30,7 @@
|
|||
|
||||
@include ('shop::products.price', ['product' => $product])
|
||||
|
||||
@if (($status && ! auth()->guard('customer')->check()) && ($function == 'hide-buy-cart-guest' || $function == 'hide-price-buy-cart-guest'))
|
||||
<div class="login-to-view-price">
|
||||
<a class="btn btn-lg btn-primary addtocart" href="{{ route('customer.session.index') }}" style="width:100%;">
|
||||
@if ($function == 'hide-buy-cart-guest')
|
||||
{{ __('ShowPriceAfterLogin::app.products.login-to-buy') }}
|
||||
@else
|
||||
{{ __('ShowPriceAfterLogin::app.products.login-to-view-price') }}
|
||||
@endif
|
||||
</a>
|
||||
</div>
|
||||
@else
|
||||
@include('shop::products.add-buttons', ['product' => $product])
|
||||
@endif
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,15 +1,8 @@
|
|||
{!! view_render_event('bagisto.shop.products.price.before', ['product' => $product]) !!}
|
||||
|
||||
@php
|
||||
$status = core()->getConfigData('ShowPriceAfterLogin.settings.settings.enableordisable');
|
||||
|
||||
$function = core()->getConfigData('ShowPriceAfterLogin.settings.settings.selectfunction');
|
||||
@endphp
|
||||
|
||||
<div class="product-price">
|
||||
@inject ('priceHelper', 'Webkul\Product\Helpers\Price')
|
||||
@if (($status && ! auth()->guard('customer')->check()) && $function == "hide-price-buy-cart-guest")
|
||||
@else
|
||||
|
||||
@if ($product->type == 'configurable')
|
||||
<span class="price-label">{{ __('shop::app.products.price-label') }}</span>
|
||||
|
||||
|
|
@ -27,7 +20,6 @@
|
|||
<span>{{ core()->currency($product->price) }}</span>
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
|
||||
{!! view_render_event('bagisto.shop.products.price.after', ['product' => $product]) !!}
|
||||
|
|
@ -1,10 +1,4 @@
|
|||
@php
|
||||
$status = core()->getConfigData('ShowPriceAfterLogin.settings.settings.enableordisable');
|
||||
$function = core()->getConfigData('ShowPriceAfterLogin.settings.settings.selectfunction');
|
||||
@endphp
|
||||
|
||||
@if(($status && ! auth()->guard('customer')->check()) && $function == 'hide-price-buy-cart-guest')
|
||||
<div class="product-price mt-10">
|
||||
<div class="product-price mt-10">
|
||||
@inject ('priceHelper', 'Webkul\Product\Helpers\Price')
|
||||
|
||||
@if ($product->type == 'configurable')
|
||||
|
|
@ -16,5 +10,4 @@
|
|||
<span class="pro-price">{{ core()->currency($product->price) }}</span>
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
|
@ -1,25 +1,9 @@
|
|||
{!! view_render_event('bagisto.shop.products.view.product-add.after', ['product' => $product]) !!}
|
||||
|
||||
<div class="add-to-buttons">
|
||||
@if ($product->type != 'configurable')
|
||||
@if ($product->totalQuantity() < 1 && $product->allow_preorder)
|
||||
<button type="submit" class="btn btn-lg btn-primary addtocart" style="width: 100%">
|
||||
{{ __('preorder::app.shop.products.preorder') }}
|
||||
</button>
|
||||
@else
|
||||
@include ('shop::products.add-to-cart', ['product' => $product])
|
||||
|
||||
@include ('shop::products.buy-now')
|
||||
@endif
|
||||
@else
|
||||
@include ('shop::products.add-to-cart', ['product' => $product])
|
||||
|
||||
@include ('shop::products.buy-now')
|
||||
|
||||
<button type="submit" class="btn btn-lg btn-primary pre-order-btn" style="width: 100%; display: none;">
|
||||
{{ __('preorder::app.shop.products.preorder') }}
|
||||
</button>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
{!! view_render_event('bagisto.shop.products.view.product-add.after', ['product' => $product]) !!}
|
||||
Loading…
Reference in New Issue