uc-order--admin.tpl.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * @file
  4. * This file is the default admin notification template for Ubercart.
  5. */
  6. ?>
  7. <p>
  8. <?php print t('Order number:'); ?> <?php print $order_admin_link; ?><br />
  9. <?php print t('Customer:'); ?> <?php print $order_first_name; ?> <?php print $order_last_name; ?> - <?php print $order_email; ?><br />
  10. <?php print t('Order total:'); ?> <?php print $order_total; ?><br />
  11. <?php print t('Shipping method:'); ?> <?php print $order_shipping_method; ?>
  12. </p>
  13. <p>
  14. <?php print t('Products:'); ?><br />
  15. <?php foreach ($products as $product): ?>
  16. - <?php print $product->qty; ?> x <?php print $product->title; ?> - <?php print $product->total_price; ?><br />
  17. &nbsp;&nbsp;<?php print t('SKU'); ?>: <?php print $product->model; ?><br />
  18. <?php if (!empty($product->data['attributes'])): ?>
  19. <?php foreach ($product->data['attributes'] as $attribute => $option): ?>
  20. &nbsp;&nbsp;<?php print t('@attribute: @options', array('@attribute' => $attribute, '@options' => implode(', ', (array)$option))); ?><br />
  21. <?php endforeach; ?>
  22. <?php endif; ?>
  23. <br />
  24. <?php endforeach; ?>
  25. </p>
  26. <p>
  27. <?php print t('Order comments:'); ?><br />
  28. <?php print $order_comments; ?>
  29. </p>