Answer the question
In order to leave comments, you need to log in
How to change the coupon field in WordPress?
How to change the coupon output field in wordpress, woocommerce? I just need to change the text inside the 'apply' button, and where does it all lie xs.
Answer the question
In order to leave comments, you need to log in
First of all, find this div with class "coupon"
<div class="coupon">
<label for="coupon_code"><?php esc_html_e( 'Coupon:', 'woocommerce' ); ?></label>
<input type="text" name="coupon_code" class="input-text" id="coupon_code" value="" placeholder="<?php esc_attr_e( 'Coupon code', 'woocommerce' ); ?>" /> <button type="submit" class="button" name="apply_coupon" style="margin-top: 0; margin-left: 50px;" value="<?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?>"><?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?></button>
<?php do_action( 'woocommerce_cart_coupon' ); ?>
</div>
<button type="submit" class="button" name="apply_coupon" style="margin-top: 0; margin-left: 50px;" value="<?php esc_attr_e( 'Your Text', 'woocommerce' ); ?>"><?php esc_attr_e( 'Your Text', 'woocommerce' ); ?></button>
<button type="submit" class="button" name="apply_coupon" style="margin-top: 0; margin-left: 50px;" value="Your Text">Your Text</button>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question