GET a coupon code via URL and apply it in WooCommerce Checkout page [closed]
Update 3: This can be done in a very simple way with the following 2 hooked functions: The first one will catch the coupon code in the Url and will set it in WC_Sessions. The second one will apply the coupon code from session in checkout page. Here is this code: add_action(‘init’, ‘get_custom_coupon_code_to_session’); function get_custom_coupon_code_to_session(){ … Read more