コード例 #1
0
$option = JRequest::getVar('option');
$tmpl = JRequest::getVar('tmpl');
$model = $this->getModel('order_detail');
$session = JFactory::getSession();
$billing = $this->billing;
$shipping = $this->shipping;
$is_company = $billing->is_company;
$order_id = $this->detail->order_id;
$products = $order_functions->getOrderItemDetail($order_id);
$log_rec = $model->getOrderLog($order_id);
if (!$shipping) {
    $shipping = $billing;
}
$session->set('shipp_users_info_id', $shipping->users_info_id);
# get Downloadable Products
$downloadProducts = $order_functions->getDownloadProduct($order_id);
$totalDownloadProduct = count($downloadProducts);
$dproducts = array();
for ($t = 0; $t < $totalDownloadProduct; $t++) {
    $downloadProduct = $downloadProducts[$t];
    $dproducts[$downloadProduct->product_id][$downloadProduct->download_id] = $downloadProduct;
}
?>
<script type="text/javascript">
	var rowCount = 1;
	function openPrintOrder() {
		window.open('index.php?tmpl=component&option=com_redshop&view=order_detail&layout=print_order&cid[]=' + <?php 
echo $order_id;
?>
, 'mywindow', 'scrollbars=1', 'location=1');
	}