From c238263b1a46fac29081fd2fc40a0217c1c7111a Mon Sep 17 00:00:00 2001 From: Devansh Date: Mon, 31 Jan 2022 15:50:04 +0530 Subject: [PATCH] Paypal Standard Fixed --- .../views/checkout/onepage/paypal-smart-button.blade.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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