Esempio n. 1
0
use osCommerce\OM\Core\OSCOM;
use osCommerce\OM\Core\PDO;
use osCommerce\OM\Core\Site\Shop\Order;
?>

<h1><?php 
echo $OSCOM_Template->getPageTitle();
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists('Account')) {
    echo $OSCOM_MessageStack->get('Account');
}
if (Order::numberOfEntries() > 0) {
    $orders_listing = Order::getListing(MAX_DISPLAY_ORDER_HISTORY);
    foreach ($orders_listing['entries'] as $o) {
        if (!empty($o['delivery_name'])) {
            $order_type = OSCOM::getDef('order_shipped_to');
            $order_name = $o['delivery_name'];
        } else {
            $order_type = OSCOM::getDef('order_billed_to');
            $order_name = $o['billing_name'];
        }
        ?>

<div class="moduleBox">
  <span style="float: right;"><h6><?php 
        echo OSCOM::getDef('order_status') . ' ' . $o['orders_status_name'];
        ?>
</h6></span>
Esempio n. 2
0
<?php 
echo osc_image(DIR_WS_IMAGES . $OSCOM_Template->getPageImage(), $OSCOM_Template->getPageTitle(), HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT, 'id="pageIcon"');
?>

<h1><?php 
echo $OSCOM_Template->getPageTitle();
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists('Account')) {
    echo $OSCOM_MessageStack->get('Account');
}
if (Order::numberOfEntries() > 0) {
    $Qhistory = Order::getListing(MAX_DISPLAY_ORDER_HISTORY);
    while ($Qhistory->next()) {
        if (!osc_empty($Qhistory->value('delivery_name'))) {
            $order_type = OSCOM::getDef('order_shipped_to');
            $order_name = $Qhistory->value('delivery_name');
        } else {
            $order_type = OSCOM::getDef('order_billed_to');
            $order_name = $Qhistory->value('billing_name');
        }
        ?>

<div class="moduleBox">
  <span style="float: right;"><h6><?php 
        echo OSCOM::getDef('order_status') . ' ' . $Qhistory->value('orders_status_name');
        ?>
</h6></span>