Created
September 12, 2022 06:07
-
-
Save pramodjodhani/a6550e5ff18606b6b27ff29953db379b to your computer and use it in GitHub Desktop.
Flux checkout - reposition coupon form.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Flux checkout - reposition coupon form. | |
* | |
* @return void | |
*/ | |
function flux_reposition_coupon_form() { | |
remove_action( 'woocommerce_review_order_after_cart_contents', array( 'Iconic_Flux_Sidebar', 'checkout_add_coupon_form' ), 9 ); | |
add_action( 'woocommerce_review_order_before_payment', array( 'Iconic_Flux_Sidebar', 'checkout_add_coupon_form' ) ); | |
} | |
add_action( 'init', 'flux_reposition_coupon_form', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment