How to remove coupon dropdown feature

Question

I want to remove the coupon drop down feature and just have the input field and ‘add coupon’ button on the checkout page. Does anyone know how I can get rid of the dropdown feature?
Thank you in advance!

HTML:

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}

if ( ! wc_coupons_enabled() ) {
    return;
}

if ( ! WC()->cart->applied_coupons ) {
    $info_message = apply_filters( 'woocommerce_checkout_coupon_message', __( 'Promo code?', 'woocommerce' ) . ' <a href="#" class="showcoupon">' . __( 'Click here to enter your code', 'woocommerce' ) . '</a>' );
    wc_print_notice( $info_message, 'notice' );
}
?>

<form class="checkout_coupon" method="post" style="display:none">

    <p class="form-row form-row-first">
        <input type="text" name="coupon_code" class="input-text" placeholder="<?php esc_attr_e( 'Promo Code', 'woocommerce' ); ?>" id="coupon_code" value="" />
    </p>

    <p class="form-row form-row-last">
        <input type="submit" class="button" name="apply_coupon" value="<?php esc_attr_e( 'Apply', 'woocommerce' ); ?>" />
    </p>

    <div class="clear"></div>
</form>
0
, , T.Doe 2 years 2020-01-07T08:41:05-05:00 0 Answers 101 views 0

Leave an answer

Browse
Browse