本文整理匯總了PHP中wc_cart_totals_shipping_html函數的典型用法代碼示例。如果您正苦於以下問題:PHP wc_cart_totals_shipping_html函數的具體用法?PHP wc_cart_totals_shipping_html怎麽用?PHP wc_cart_totals_shipping_html使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了wc_cart_totals_shipping_html函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: do_action
</td>
</tr>
<?php
}
?>
<?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
}
?>
<?php
foreach (WC()->cart->get_fees() as $fee) {
?>
<tr class="fee">
<th><?php
示例2: woocommerce_cart_totals_shipping_html
/**
* @deprecated
*/
function woocommerce_cart_totals_shipping_html()
{
wc_cart_totals_shipping_html();
}
示例3: foreach
<?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_cart_totals_before_shipping' ); ?>
<?php //wc_cart_totals_shipping_html(); ?>
<?php //do_action( 'woocommerce_cart_totals_after_shipping' ); ?>
<tr class="shipping">
<th><?php echo _e('Delivery' , THEMEDOMAIN ); ?></th>
<td><?php wc_cart_totals_shipping_html(); ?></td>
</tr>
<?php /* elseif ( WC()->cart->needs_shipping() ) : ?>
<tr class="shipping">
<th><?php echo _e('Delivery' , THEMEDOMAIN ); ?></th>
<td><?php //woocommerce_shipping_calculator(); ?></td>
</tr> */
endif; ?>
<?php foreach ( WC()->cart->get_fees() as $fee ) : ?>
<tr class="fee">
<th><?php echo esc_html( $fee->name ); ?></th>
<td><?php wc_cart_totals_fee_html( $fee ); ?></td>
示例4: mango_shipping_calculator
function mango_shipping_calculator()
{
$cart_ver = mango_cart_version();
if (WC()->cart->needs_shipping()) {
if ($cart_ver == "v_1") {
?>
<div class="col-md-6">
<?php
}
?>
<h4 class="title-border-tb"><?php
_e("Get shipping Estimates", 'mango');
?>
</h4>
<?php
if (WC()->cart->needs_shipping() && WC()->cart->show_shipping()) {
?>
<?php
do_action('woocommerce_cart_totals_before_shipping');
?>
<?php
wc_cart_totals_shipping_html();
?>
<?php
do_action('woocommerce_cart_totals_after_shipping');
?>
<?php
} elseif (WC()->cart->needs_shipping()) {
?>
<?php
woocommerce_shipping_calculator();
?>
<?php
}
if ($cart_ver == "v_1") {
?>
</div>
<?php
}
}
}
示例5: hwoo_review_order_shipping
/**
* output review order shipping
*/
function hwoo_review_order_shipping()
{
if (WC()->cart->needs_shipping() && WC()->cart->show_shipping()) {
do_action('woocommerce_review_order_before_shipping');
wc_cart_totals_shipping_html();
do_action('woocommerce_review_order_after_shipping');
}
}