本文整理汇总了PHP中wc_cart_totals_coupon_label函数的典型用法代码示例。如果您正苦于以下问题:PHP wc_cart_totals_coupon_label函数的具体用法?PHP wc_cart_totals_coupon_label怎么用?PHP wc_cart_totals_coupon_label使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wc_cart_totals_coupon_label函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: wc_cart_totals_subtotal_html
</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()) {
?>
开发者ID:olechka1505,项目名称:hungrylemur,代码行数:30,代码来源:new-page.php
示例2: foreach
</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
开发者ID:Carfulan-Group,项目名称:SYS-Consumables-Store,代码行数:31,代码来源:cart-totals.php
示例3: test_wc_cart_totals_coupon_label
/**
* 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);
}
开发者ID:coderkevin,项目名称:woocommerce,代码行数:11,代码来源:functions.php
示例4: do_action
}
}
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 ?>">
开发者ID:simonsays88,项目名称:costa,代码行数:31,代码来源:review-order.php
示例5: foreach
?>
: <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
开发者ID:andersonaguiaralves,项目名称:meiotomloja,代码行数:31,代码来源:cart-totals.php
示例6: wc_cart_totals_subtotal_html
</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()) {
?>
开发者ID:romapad,项目名称:sound-themplate,代码行数:31,代码来源:review-order.php
注:本文中的wc_cart_totals_coupon_label函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论