Site logo

[Resolved] Customize coupon area at woocommerce checkout

Home Forums Support [Resolved] Customize coupon area at woocommerce checkout

Home Forums Support Customize coupon area at woocommerce checkout

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2418401
    Dorin

    I have a bit of a struggle with this. I want ‘the coupon input box and apply button’ area to be shorter (the same width or shorter than the billing details column). Also, I’d like to decrease the spacing between the input box and the button. And then the button to have the same height as the input box. For mobile, these two should be stacked vertically, both width 100%. Thanks.

    #2418851
    Fernando
    Customer Support

    Hi Dorin,

    Try adding this through Appearance > Customize > Additional CSS:

    .woocommerce-checkout .woocommerce-form-coupon {
        display: flex;
        width: 60%;
        flex-wrap: wrap;
    }
    
    .woocommerce-checkout .woocommerce-form-coupon > p:first-of-type {
        flex-basis: 100%;
    }
    
    .woocommerce-checkout .woocommerce-form-coupon > p.form-row-first {
        margin-right: 4px;
    }
    
    .woocommerce-checkout .woocommerce-form-coupon > p.form-row-first input {
        height: 100%;
    }
    
    @media (max-width: 768px) {
        .woocommerce-checkout .woocommerce-form-coupon {
            width: 100%;
        }
    
        .woocommerce-checkout .woocommerce-form-coupon > p.form-row-first {
            margin-right: 0px;
            flex-basis: 100%;
        }
    
        .woocommerce-checkout .woocommerce-form-coupon > p.form-row-last {
            flex-basis: 100%;
        }
    
        .woocommerce-checkout .woocommerce-form-coupon > p.form-row-last button {
            width: 100%;
        }
    }
    #2419081
    Dorin

    Perfect. Thank you so much, Fernando.

    #2419101
    Fernando
    Customer Support

    You’re welcome Dorin!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.