Paypal Standard Fixed

This commit is contained in:
Devansh 2022-01-31 15:50:04 +05:30
parent fd3639135c
commit c238263b1a
1 changed files with 6 additions and 2 deletions

View File

@ -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 @@
});
});
</script>
@endif
@endif