<div class="woocommerce-coupon-container">
before the first div tag in the form-coupon.php file.<div>
after the closing form tag in the form-coupon.php file./**
* Move the WooCommerce coupon field above the payment methods.
*/
(function($) {
var coupon = $('.woocommerce-coupon-container'); // The container we added to form-coupon.php.
$(coupon).insertBefore('.woocommerce-checkout-payment');
})(jQuery);