We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 700d221 commit 1847e6cCopy full SHA for 1847e6c
includes/core/class-rfw-payment-gateway.php
@@ -180,6 +180,10 @@ public function maybe_disable( $available_gateways ) {
180
return $available_gateways;
181
}
182
183
+ if ( ! WC()->cart || WC()->cart->is_empty() ) {
184
+ return $available_gateways;
185
+ }
186
+
187
// Remove payment gateway if any of items in cart are on backorder.
188
if ( RFW_Data::is_backorder_pay_disabled() ) {
189
foreach ( WC()->cart->get_cart() as $cart_item ) {
0 commit comments