I have tried removeing the form-coupon.php
under the checkout template in woocommerce with this code on the child theme functions.php
file with this code:
add_filter( 'woocommerce_review_order_before_payment' , 'coupon_code' );
function coupon_code() {
if ( ! wc_coupons_enabled() ) { // @codingStandardsIgnoreLine.
return;
}
?>
<div class="coupon_code_form">
<form class="checkout_coupon woocommerce-form-coupon" method="post" style="display:none">
<h4>ברשותך קוד קופון? הזיני כאן<h4/>
<div id="coupon_redeem_form">
<input type="text" name="coupon_code" class="input-text" placeholder="<?php esc_attr_e( 'הזיני קוד קופון', 'woocommerce' ); ?>" id="coupon_code" value="" />
<button type="submit" class="button" name="apply_coupon" value="<?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?>"><?php esc_html_e( 'Apply coupon', 'woocommerce' ); ?></button>
</div>
<div class="clear"></div>
</form>
</div>
<?php
}
For some reasons the form is shown but isn't sending out post, why this could happen?