Show price after login permanently integrated into the system
This commit is contained in:
parent
3aa0135aec
commit
14546dc12d
|
|
@ -5,7 +5,12 @@
|
|||
$function = $status = core()->getConfigData('ShowPriceAfterLogin.settings.settings.selectfunction');
|
||||
@endphp
|
||||
|
||||
@if ($status && ($function == 'hide-buy-cart-guest' || $function == 'hide-price-buy-cart-guest'))
|
||||
@if ($status && ($function == 'hide-buy-cart-guest' || $function == 'hide-price-buy-cart-guest') && ! auth()->guard('customer')->check())
|
||||
<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' : '' }}>
|
||||
{{ __('shop::app.products.add-to-cart') }}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
$function = $status = core()->getConfigData('ShowPriceAfterLogin.settings.settings.selectfunction');
|
||||
@endphp
|
||||
|
||||
@if ($status && ($function == 'hide-buy-cart-guest' || $function == 'hide-price-buy-cart-guest'))
|
||||
@if ($status && ($function == 'hide-buy-cart-guest' || $function == 'hide-price-buy-cart-guest') && ! auth()->guard('customer')->check())
|
||||
@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' : '' }}>
|
||||
{{ __('shop::app.products.buy-now') }}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,17 @@
|
|||
|
||||
@include ('shop::products.price', ['product' => $product])
|
||||
|
||||
@if ($status && ($function == 'hide-buy-cart-guest' || $function == 'hide-price-buy-cart-guest'))
|
||||
@if ($status && ($function == 'hide-buy-cart-guest' || $function == 'hide-price-buy-cart-guest') && ! auth()->guard('customer')->check())
|
||||
<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
|
||||
|
|
|
|||
|
|
@ -8,8 +8,7 @@
|
|||
|
||||
<div class="product-price">
|
||||
@inject ('priceHelper', 'Webkul\Product\Helpers\Price')
|
||||
@if ($status && $function == "hide-price-buy-cart-guest")
|
||||
|
||||
@if ($status && $function == "hide-price-buy-cart-guest" && ! auth()->guard('customer')->check())
|
||||
@else
|
||||
@if ($product->type == 'configurable')
|
||||
<span class="price-label">{{ __('shop::app.products.price-label') }}</span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue