当前位置: 首页>>代码示例>>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;未经允许,请勿转载。