コード例 #1
0
ファイル: new-page.php プロジェクト: olechka1505/hungrylemur
</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()) {
    ?>
コード例 #2
0
</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 
コード例 #3
0
ファイル: functions.php プロジェクト: coderkevin/woocommerce
 /**
  * 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);
 }
コード例 #4
0
ファイル: review-order.php プロジェクト: simonsays88/costa
            }
        }

        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 ?>">
コード例 #5
0
?>
:    <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 
コード例 #6
0
</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()) {
    ?>