diff --git a/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php b/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php index 9c4be4a56..dff427bac 100644 --- a/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php +++ b/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php @@ -1,4 +1,8 @@ -@if (request()->route()->getName() == 'shop.checkout.onepage.index') +@if ( + request()->route()->getName() == 'shop.checkout.onepage.index' + && core()->getConfigData('sales.paymentmethods.paypal_smart_button.active') + && core()->getConfigData('sales.paymentmethods.paypal_smart_button.active') == '1' +) @php $clientId = core()->getConfigData('sales.paymentmethods.paypal_smart_button.client_id'); $acceptedCurrency = core()->getConfigData('sales.paymentmethods.paypal_smart_button.accepted_currencies'); @@ -101,4 +105,4 @@ }); }); -@endif \ No newline at end of file +@endif