enhancement #4321 done with all required changes

This commit is contained in:
rahul shukla 2020-12-04 13:01:52 +05:30
parent 6ce2116a49
commit 4320f4b004
11 changed files with 16 additions and 11 deletions

View File

@ -1380,7 +1380,7 @@ return [
'client-secret-info' => 'Add your secret key here', 'client-secret-info' => 'Add your secret key here',
'accepted-currencies' => 'Accepted currencies', 'accepted-currencies' => 'Accepted currencies',
'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...', 'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...',
'buy-now-button-display' => 'Buy now button display' 'buy-now-button-display' => 'Allow customers to directly buy products'
] ]
] ]
]; ];

View File

@ -1354,7 +1354,7 @@ return [
'client-secret-info' => 'Add your secret key here', 'client-secret-info' => 'Add your secret key here',
'accepted-currencies' => 'Accepted currencies', 'accepted-currencies' => 'Accepted currencies',
'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...', 'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...',
'buy-now-button-display' => 'Buy now button display' 'buy-now-button-display' => 'Allow customers to directly buy products'
], ],
], ],
]; ];

View File

@ -1380,7 +1380,7 @@ return [
'client-secret-info' => 'Add your secret key here', 'client-secret-info' => 'Add your secret key here',
'accepted-currencies' => 'Accepted currencies', 'accepted-currencies' => 'Accepted currencies',
'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...', 'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...',
'buy-now-button-display' => 'Buy now button display' 'buy-now-button-display' => 'Allow customers to directly buy products'
] ]
] ]
]; ];

View File

@ -1336,7 +1336,7 @@ return [
'client-secret-info' => 'Add your secret key here', 'client-secret-info' => 'Add your secret key here',
'accepted-currencies' => 'Accepted currencies', 'accepted-currencies' => 'Accepted currencies',
'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...', 'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...',
'buy-now-button-display' => 'Buy now button display' 'buy-now-button-display' => 'Allow customers to directly buy products'
] ]
] ]
]; ];

View File

@ -1372,7 +1372,7 @@ return [
'client-secret-info' => 'Add your secret key here', 'client-secret-info' => 'Add your secret key here',
'accepted-currencies' => 'Accepted currencies', 'accepted-currencies' => 'Accepted currencies',
'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...', 'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...',
'buy-now-button-display' => 'Buy now button display' 'buy-now-button-display' => 'Allow customers to directly buy products'
] ]
] ]
]; ];

View File

@ -1377,7 +1377,7 @@ return [
'client-secret-info' => 'Add your secret key here', 'client-secret-info' => 'Add your secret key here',
'accepted-currencies' => 'Accepted currencies', 'accepted-currencies' => 'Accepted currencies',
'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...', 'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...',
'buy-now-button-display' => 'Buy now button display' 'buy-now-button-display' => 'Allow customers to directly buy products'
] ]
] ]
]; ];

View File

@ -1372,7 +1372,7 @@ return [
'client-secret-info' => 'Add your secret key here', 'client-secret-info' => 'Add your secret key here',
'accepted-currencies' => 'Accepted currencies', 'accepted-currencies' => 'Accepted currencies',
'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...', 'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...',
'buy-now-button-display' => 'Buy now button display' 'buy-now-button-display' => 'Allow customers to directly buy products'
] ]
] ]
]; ];

View File

@ -1361,7 +1361,7 @@ return [
'client-secret-info' => 'Add your secret key here', 'client-secret-info' => 'Add your secret key here',
'accepted-currencies' => 'Accepted currencies', 'accepted-currencies' => 'Accepted currencies',
'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...', 'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...',
'buy-now-button-display' => 'Buy now button display' 'buy-now-button-display' => 'Allow customers to directly buy products'
] ]
] ]
]; ];

View File

@ -1375,7 +1375,7 @@ return [
'client-secret-info' => 'Add your secret key here', 'client-secret-info' => 'Add your secret key here',
'accepted-currencies' => 'Accepted currencies', 'accepted-currencies' => 'Accepted currencies',
'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...', 'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...',
'buy-now-button-display' => 'Buy now button display' 'buy-now-button-display' => 'Allow customers to directly buy products'
] ]
] ]
]; ];

View File

@ -1358,7 +1358,7 @@ return [
'client-secret-info' => 'Add your secret key here', 'client-secret-info' => 'Add your secret key here',
'accepted-currencies' => 'Accepted currencies', 'accepted-currencies' => 'Accepted currencies',
'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...', 'accepted-currencies-info' => 'Add currency code comma seperated e.g. USD,INR,...',
'buy-now-button-display' => 'Buy now button display' 'buy-now-button-display' => 'Allow customers to directly buy products'
] ]
] ]
]; ];

View File

@ -1,6 +1,11 @@
{!! view_render_event('bagisto.shop.products.add_to_cart.before', ['product' => $product]) !!} {!! view_render_event('bagisto.shop.products.add_to_cart.before', ['product' => $product]) !!}
<button type="submit" class="btn btn-lg btn-primary addtocart" {{ ! $product->isSaleable() ? 'disabled' : '' }}> @php
$width = (core()->getConfigData('catalog.products.storefront.buy_now_button_display') == 1) ? '49' : '95';
@endphp
<button type="submit" class="btn btn-lg btn-primary addtocart" {{ ! $product->isSaleable() ? 'disabled' : '' }}
style="width: <?php echo $width.'%';?>;">
{{ ($product->type == 'booking') ? __('shop::app.products.book-now') : __('shop::app.products.add-to-cart') }} {{ ($product->type == 'booking') ? __('shop::app.products.book-now') : __('shop::app.products.add-to-cart') }}
</button> </button>