uc-packing-slip.tpl.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?php
  2. /**
  3. * @file
  4. * The shipment packing slip template.
  5. */
  6. ?>
  7. <table width="95%" border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#006699" style="font-family: verdana, arial, helvetica; font-size: small;">
  8. <tr>
  9. <td>
  10. <table width="100%" border="0" cellspacing="0" cellpadding="5" align="center" bgcolor="#FFFFFF" style="font-family: verdana, arial, helvetica; font-size: small;">
  11. <tr valign="top">
  12. <td>
  13. <table width="100%" style="font-family: verdana, arial, helvetica; font-size: small;">
  14. <tr>
  15. <td>
  16. <?php print $site_logo; ?>
  17. </td>
  18. <td width="20%" nowrap="nowrap">
  19. <?php print $store_address; ?>
  20. <br />
  21. <?php print $store_phone; ?>
  22. </td>
  23. </tr>
  24. </table>
  25. </td>
  26. </tr>
  27. <tr valign="top">
  28. <td>
  29. <table cellpadding="4" cellspacing="0" border="0" width="100%" style="font-family: verdana, arial, helvetica; font-size: small;">
  30. <tr>
  31. <td colspan="2" bgcolor="#006699" style="color: white;">
  32. <b><?php echo t('Purchasing Information:'); ?></b>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td nowrap="nowrap">
  37. <b><?php echo t('E-mail Address:'); ?></b>
  38. </td>
  39. <td width="98%">
  40. <?php print $order_email; ?>
  41. </td>
  42. </tr>
  43. <tr>
  44. <td colspan="2">
  45. <table width="100%" cellspacing="0" cellpadding="0" style="font-family: verdana, arial, helvetica; font-size: small;">
  46. <tr>
  47. <td valign="top" width="50%">
  48. <b><?php echo t('Billing Address:'); ?></b><br />
  49. <?php print $billing_address; ?><br />
  50. <br />
  51. <b><?php echo t('Billing Phone:'); ?></b><br />
  52. <?php print $billing_phone; ?><br />
  53. </td>
  54. <td valign="top" width="50%">
  55. <b><?php echo t('Shipping Address:'); ?></b><br />
  56. <?php print $shipping_address; ?><br />
  57. <br />
  58. <b><?php echo t('Shipping Phone:'); ?></b><br />
  59. <?php print $shipping_phone; ?><br />
  60. </td>
  61. </tr>
  62. </table>
  63. </td>
  64. </tr>
  65. <tr>
  66. <td nowrap="nowrap">
  67. <b><?php echo t('Payment Method:'); ?></b>
  68. </td>
  69. <td width="98%">
  70. <?php print $payment_method; ?>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td colspan="2" bgcolor="#006699" style="color: white;">
  75. <b><?php echo t('Order Summary:'); ?></b>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td colspan="2" bgcolor="#EEEEEE">
  80. <font color="#CC6600"><b><?php echo t('Shipping Details:'); ?></b></font>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td colspan="2">
  85. <table border="0" cellpadding="1" cellspacing="0" width="100%" style="font-family: verdana, arial, helvetica; font-size: small;">
  86. <tr>
  87. <td nowrap="nowrap">
  88. <b><?php echo t('Order #:'); ?></b>
  89. <?php print $order_link; ?>
  90. </td>
  91. </tr>
  92. <tr>
  93. <td nowrap="nowrap">
  94. <b><?php echo t('Carrier:'); ?></b>
  95. <?php print $carrier; ?>
  96. </td>
  97. </tr>
  98. <tr>
  99. <td nowrap="nowrap">
  100. <b><?php echo t('Tracking #:'); ?></b>
  101. <?php print $tracking_number; ?>
  102. </td>
  103. </tr>
  104. <tr>
  105. <td colspan="2">
  106. <br /><br /><b><?php echo t('Products on order:'); ?>&nbsp;</b>
  107. <table width="100%" style="font-family: verdana, arial, helvetica; font-size: small;">
  108. <?php if (is_array($packages)) {
  109. foreach ($packages as $package) {
  110. foreach ($package->products as $product) { ?>
  111. <tr>
  112. <td valign="top" nowrap="nowrap">
  113. <b><?php print $product->qty; ?> x </b>
  114. </td>
  115. <td width="98%">
  116. <b><?php print $product->title; ?></b>
  117. <br />
  118. <?php echo t('SKU: ') . $product->model; ?><br />
  119. <?php if (isset($product->data['attributes']) && is_array($product->data['attributes']) && count($product->data['attributes']) > 0) {
  120. foreach ($product->data['attributes'] as $attribute => $option) {
  121. echo '<li>' . t('@attribute: @options', array('@attribute' => $attribute, '@options' => implode(', ', (array) $option))) . '</li>';
  122. }
  123. } ?>
  124. <br />
  125. </td>
  126. </tr>
  127. <?php }
  128. }
  129. } ?>
  130. </table>
  131. </td>
  132. </tr>
  133. </table>
  134. </td>
  135. </tr>
  136. </table>
  137. </td>
  138. </tr>
  139. </table>
  140. </td>
  141. </tr>
  142. </table>