/
uc_order-uberadmin.tpl.php
47 lines (43 loc) · 1.44 KB
/
uc_order-uberadmin.tpl.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
// $Id: uc_order-admin.tpl.php,v 1.1.2.1 2010/07/16 15:45:09 islandusurper Exp $
/**
* @file
* This file is the default admin notification template for Ubercart.
*/
?>
<p>
<?php echo t('Order number:'); ?> <?php echo $order_admin_link; ?><br />
<?php echo t('Customer:'); ?> <?php echo $order_first_name; ?> <?php echo $order_last_name; ?> - <?php echo $order_email; ?><br />
<?php echo t('Order total:'); ?> <?php echo $order_total; ?><br />
<?php echo t('Shipping method:'); ?> <?php echo $order_shipping_method; ?>
</p>
<p>
<?php echo t('Products:'); ?><br />
<?php
$context = array(
'revision' => 'themed',
'type' => 'order_product',
);
foreach ($products as $product) {
$price_info = array(
'price' => $product->price,
'qty' => $product->qty,
);
$context['subject'] = array(
'order_product' => $product,
);
?>
- <?php echo $product->qty; ?> x <?php echo $product->title .' - '. uc_price($price_info, $context); ?><br />
<?php echo t('SKU: ') . $product->model; ?><br />
<?php if (is_array($product->data['attributes']) && count($product->data['attributes']) > 0) {?>
<?php foreach ($product->data['attributes'] as $attribute => $option) {
echo ' '. t('@attribute: @options', array('@attribute' => $attribute, '@options' => implode(', ', (array)$option))) .'<br />';
} ?>
<?php } ?>
<br />
<?php } ?>
</p>
<p>
<?php echo t('Order comments:'); ?><br />
<?php echo $order_comments; ?>
</p>