本文整理汇总了PHP中Basket::getBasketContentForOrder方法的典型用法代码示例。如果您正苦于以下问题:PHP Basket::getBasketContentForOrder方法的具体用法?PHP Basket::getBasketContentForOrder怎么用?PHP Basket::getBasketContentForOrder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Basket
的用法示例。
在下文中一共展示了Basket::getBasketContentForOrder方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?php
defined('SYSPATH') or die('No direct access allowed.');
?>
<?php
$db = new Database();
$id = $this->uri->segment(3);
$order = Order::getOrderByID($id);
$_order = ORM::factory('order', $id);
$user = ORM::factory('user')->where('id', $order->user_id)->find();
$shipping = ORM::factory('user_shipping_info')->where('id', $order->shippingID)->find();
$billing = ORM::factory('user_billing_info')->where('id', $order->billingID)->find();
//$user = User::getUserByID($order->user_id);
$order_products = Basket::getBasketContentForOrder($id);
//var_dump($order_products[0]);
$order_statuses = Order::getOrderStatusByID($id);
$order_id = $_order->getOrderId();
function order_status()
{
$status = array(1 => "Pending", 2 => "Processed", 3 => "Denied", 4 => "Shipped", 5 => "Delivered", 6 => "Canceled", 7 => "Refund");
return $status;
}
function status_filter($id)
{
switch ($id) {
case 1:
return "Pending";
case 2:
return "Processed";
case 3: