← All changes
|
includes/core/shortcodes/class-wpfnl-shortcode-checkout.php
+1
-1
3.12.10
→
3.13.3
View file →
| @@ -90,9 +90,9 @@ | ||
| 90 | 90 | if( Wpfnl_functions::check_if_this_is_step_type('checkout') ) { |
| 91 | 91 | |
| 92 | 92 | //===Coupon Enabler===// |
| 93 | 93 | $coupon_enabler = get_post_meta(get_the_ID(), '_wpfnl_checkout_coupon', true); |
| 94 | - if ( $coupon_enabler != 'yes' ) { | |
| 94 | + if ( 'no' === $coupon_enabler ) { | |
| 95 | 95 | remove_action('woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10); |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | $checkout_layout = ''; |