Do not hide pui gateway on pay for order page

This commit is contained in:
dinamiko 2022-05-11 11:31:27 +02:00
parent ff2ff8d31f
commit 00b40dc6de

View file

@ -364,7 +364,7 @@ class PayUponInvoice {
}
$cart = WC()->cart ?? null;
if ( $cart ) {
if ( $cart && ! is_checkout_pay_page() ) {
$cart_total = (float) $cart->get_total( 'numeric' );
if ( $cart_total < 5 || $cart_total > 2500 ) {
return false;