當前位置: 首頁>>代碼示例>>PHP>>正文


PHP wc_cart_totals_shipping_html函數代碼示例

本文整理匯總了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 
開發者ID:olechka1505,項目名稱:hungrylemur,代碼行數:31,代碼來源:new-page.php

示例2: woocommerce_cart_totals_shipping_html

/**
 * @deprecated
 */
function woocommerce_cart_totals_shipping_html()
{
    wc_cart_totals_shipping_html();
}
開發者ID:nayemDevs,項目名稱:woocommerce,代碼行數:7,代碼來源:wc-deprecated-functions.php

示例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>
開發者ID:JDarkGreen,項目名稱:wpmaletek,代碼行數:31,代碼來源:cart-totals.php

示例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 
        }
    }
}
開發者ID:nickkoskowski,項目名稱:Work-Depot,代碼行數:41,代碼來源:woocommerce.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');
    }
}
開發者ID:hoangsoft90,項目名稱:hw-hoangweb-plugin,代碼行數:11,代碼來源:template-functions.php


注:本文中的wc_cart_totals_shipping_html函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。