</th> <td><?php wc_cart_totals_subtotal_html(); ?> </td> </tr> <?php foreach (WC()->cart->get_coupons() as $code => $coupon) { ?> <tr class="cart-discount coupon-<?php echo esc_attr(sanitize_title($code)); ?> "> <th><?php wc_cart_totals_coupon_label($coupon); ?> </th> <td><?php wc_cart_totals_coupon_html($coupon); ?> </td> </tr> <?php } ?> <?php if (WC()->cart->needs_shipping() && WC()->cart->show_shipping()) { ?>
</td> </tr> <?php foreach (WC()->cart->get_coupons() as $code => $coupon) { ?> <tr class="cart-discount coupon-<?php echo esc_attr(sanitize_title($code)); ?> "> <th><?php wc_cart_totals_coupon_label($coupon); ?> </th> <td data-title="<?php echo esc_attr(wc_cart_totals_coupon_label($coupon, false)); ?> "><?php wc_cart_totals_coupon_html($coupon); ?> </td> </tr> <?php } ?> <?php if (WC()->cart->needs_shipping() && WC()->cart->show_shipping()) { ?> <?php
/** * Test wc_cart_totals_coupon_label(). * * @since 2.4 */ public function test_wc_cart_totals_coupon_label() { $coupon = WC_Helper_Coupon::create_coupon(); $this->expectOutputString(apply_filters('woocommerce_cart_totals_coupon_label', 'Coupon: ' . $coupon->code), wc_cart_totals_coupon_label($coupon)); WC_Helper_Coupon::delete_coupon($coupon->id); }
} } do_action( 'woocommerce_review_order_after_cart_contents' ); ?> </tbody> <tfoot> <tr class="cart-subtotal"> <th><?php _e( 'Cart Subtotal', 'yit' ); ?></th> <td><?php wc_cart_totals_subtotal_html(); ?></td> </tr> <?php foreach ( WC()->cart->get_coupons() as $code => $coupon ) : ?> <tr class="cart-discount coupon-<?php echo esc_attr( $code ); ?>"> <th><?php wc_cart_totals_coupon_label( $coupon ); ?></th> <td><?php wc_cart_totals_coupon_html( $coupon ); ?></td> </tr> <?php endforeach; ?> <?php if ( WC()->cart->needs_shipping() && WC()->cart->show_shipping() ) : ?> <?php do_action( 'woocommerce_review_order_before_shipping' ); ?> <?php wc_cart_totals_shipping_html(); ?> <?php do_action( 'woocommerce_review_order_after_shipping' ); ?> <?php endif; ?> <?php foreach ( WC()->cart->get_fees() as $fee ) : ?> <tr class="fee fee-<?php echo $fee->id ?>">
?> : <span><?php echo $subtotal; ?> </span></li> <?php foreach (WC()->cart->get_coupons() as $code => $coupon) { ?> <ul class="cart-discount coupon-<?php echo esc_attr(sanitize_title($code)); ?> "> <li><?php wc_cart_totals_coupon_label(true); ?> </li> <li><?php wc_cart_totals_coupon_html(true); ?> </li> </ul> <?php } ?> <li class="cartGrandT"><?php _e('Total', 'woocommerce'); ?> : <span><?php
</th> <td><?php wc_cart_totals_subtotal_html(); ?> </td> </tr> <?php foreach (WC()->cart->get_coupons() as $code => $coupon) { ?> <tr class="cart-discount coupon-<?php echo esc_attr(sanitize_title($code)); ?> "> <th><?php wc_cart_totals_coupon_label(); echo '<span>' . esc_attr(sanitize_title($code)) . '</span>'; ?> </th> <td><?php wc_cart_totals_coupon_html($coupon); ?> </td> </tr> <?php } ?> <?php if (WC()->cart->needs_shipping() && WC()->cart->show_shipping()) { ?>