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


PHP shipping::getShippingBox方法代碼示例

本文整理匯總了PHP中shipping::getShippingBox方法的典型用法代碼示例。如果您正苦於以下問題:PHP shipping::getShippingBox方法的具體用法?PHP shipping::getShippingBox怎麽用?PHP shipping::getShippingBox使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在shipping的用法示例。


在下文中一共展示了shipping::getShippingBox方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: shipping

$post = $jinput->getArray($_POST);
$shippingbox_template = $redTemplate->getTemplate("shipping_box");
if (count($shippingbox_template) > 0 && $shippingbox_template[0]->template_desc) {
    $box_template_desc = $shippingbox_template[0]->template_desc;
} else {
    $box_template_desc = "<fieldset class=\"adminform\"> <legend><strong>{shipping_box_heading}</strong></legend>\r\n<div>{shipping_box_list}</div>\r\n</fieldset>";
}
$shipping_template = $redTemplate->getTemplate("redshop_shipping");
if (count($shipping_template) > 0 && $shipping_template[0]->template_desc) {
    $template_desc = $shipping_template[0]->template_desc;
} else {
    $template_desc = "<fieldset class=\"adminform\"><legend><strong>{shipping_heading}</strong></legend>\r\n<div>{shipping_method_loop_start}\r\n<h3>{shipping_method_title}</h3>\r\n<div>{shipping_rate_loop_start}\r\n<div>{shipping_rate_name} {shipping_rate}</div>\r\n{shipping_rate_loop_end}</div>\r\n{shipping_method_loop_end}</div>\r\n</fieldset>";
}
if ($this->users_info_id > 0) {
    $shippinghelper = new shipping();
    $shippingBoxes = $shippinghelper->getShippingBox();
    $selshipping_box_post_id = 0;
    if (count($shippingBoxes) > 0) {
        $selshipping_box_post_id = $shippingBoxes[0]->shipping_box_id;
    }
    if (isset($post['shipping_box_id'])) {
        $shipping_box_post_id = $post['shipping_box_id'];
    } else {
        $shipping_box_post_id = $selshipping_box_post_id;
    }
    $box_template_desc = $carthelper->replaceShippingBoxTemplate($box_template_desc, $shipping_box_post_id);
    echo eval("?>" . $box_template_desc . "<?php ");
    $returnarr = $carthelper->replaceShippingTemplate($template_desc, $this->shipping_rate_id, $shipping_box_post_id, $user->id, $this->users_info_id, $this->ordertotal, $this->order_subtotal);
    $template_desc = $returnarr['template_desc'];
    $this->shipping_rate_id = $returnarr['shipping_rate_id'];
    echo eval("?>" . $template_desc . "<?php ");
開發者ID:,項目名稱:,代碼行數:31,代碼來源:


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