Skip to content

Commit

Permalink
Update cart.php
Browse files Browse the repository at this point in the history
  • Loading branch information
crftwrk committed Feb 16, 2023
1 parent 8631421 commit 6f3fa58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions woocommerce/cart/cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 7.0.1
* @version 7.4.0
*/

defined('ABSPATH') || exit;
Expand Down Expand Up @@ -143,7 +143,8 @@
<div class="coupon">
<div class="input-group">
<input type="text" name="coupon_code" class="form-control" id="coupon_code" value="" placeholder="<?php esc_attr_e('Coupon code', 'woocommerce'); ?>" />
<button type="submit" class="input-group-text btn btn-outline-primary<?php echo esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ); ?>" name="apply_coupon" value="<?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?>"><?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?></button>
<label for="coupon_code" class="screen-reader-text"><?php esc_html_e( 'Coupon:', 'woocommerce' ); ?></label>
<button type="submit" class="input-group-text btn btn-outline-primary<?php echo esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ); ?>" name="apply_coupon" value="<?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?>"><?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?></button>
<?php do_action('woocommerce_cart_coupon'); ?>
</div>
</div>
Expand Down

0 comments on commit 6f3fa58

Please sign in to comment.