Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.77 KB | None | 0 0
  1. {var $style = [
  2. 'logo' => 'display:block;margin: auto;',
  3. 'a' => 'color:#348eda;',
  4. 'p' => 'font-family: Arial;color: #666666;font-size: 12px;',
  5. 'h' => 'font-family:Arial;color: #111111;font-weight: 200;line-height: 1.2em;margin: 40px 20px;',
  6. 'h1' => 'font-size: 36px;',
  7. 'h2' => 'font-size: 28px;',
  8. 'h3' => 'font-size: 22px;',
  9. 'th' => 'font-family: Arial;text-align: left;color: #111111;',
  10. 'td' => 'font-family: Arial;text-align: left;color: #111111;',
  11. ]}
  12.  
  13. {var $site_url = ('site_url' | option) | preg_replace : '#/$#' : ''}
  14. {var $assets_url = 'assets_url' | option}
  15. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  16. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  17. <html xmlns="http://www.w3.org/1999/xhtml">
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  20. <title>{'site_name' | option}</title>
  21. </head>
  22. <body style="margin:0;padding:0;background:#f6f6f6;">
  23. <div style="height:100%;padding-top:20px;background:#f6f6f6;">
  24. {block 'logo'}
  25. <a href="{$site_url}">
  26. <img style="{$style.logo}"
  27. src="{$site_url}{$assets_url}images/email-logo.jpg"
  28. alt="{$site_url}"
  29. width="120" height="90"/>
  30. </a>
  31. {/block}
  32. <!-- body -->
  33. <table class="body-wrap" style="padding:0 20px 20px 20px;width: 100%;background:#f6f6f6;margin-top:10px;">
  34. <tr>
  35. <td></td>
  36. <td class="container" style="border:1px solid #f0f0f0;background:#ffffff;width:800px;margin:auto;">
  37. <div class="content">
  38. <table style="width:100%;">
  39. <tr>
  40. <td>
  41. <h3 style="{$style.h}{$style.h3}">
  42. {block 'title'}
  43. miniShop2
  44. {/block}
  45. </h3>
  46.  
  47. {block 'products'}
  48. <table style="width:90%;margin:auto;">
  49. <thead>
  50. <tr>
  51. <th>&nbsp;</th>
  52. <th style="{$style.th}">{'ms2_cart_title' | lexicon}</th>
  53. <th style="{$style.th}">{'ms2_cart_count' | lexicon}</th>
  54. <th style="{$style.th}">{'ms2_cart_weight' | lexicon}</th>
  55. <th style="{$style.th}">{'ms2_cart_cost' | lexicon}</th>
  56. </tr>
  57. </thead>
  58. {foreach $products as $product}
  59. <tr>
  60. <td style="{$style.th}">
  61. {if $product.thumb?}
  62. <img src="{$site_url}{$product.thumb}"
  63. alt="{$product.pagetitle}"
  64. title="{$product.pagetitle}"
  65. width="120" height="90"/>
  66. {else}
  67. <img src="{$site_url}{$assets_url}components/minishop2/img/web/ms2_small@2x.png"
  68. alt="{$product.pagetitle}"
  69. title="{$product.pagetitle}"
  70. width="120" height="90"/>
  71. {/if}
  72. </td>
  73. <td style="{$style.th}">
  74. {if $product.id?}
  75. <a href="{$product.id | url : ['scheme' => 'full']}"
  76. style="{$style.a}">
  77. {$product.name}
  78. </a>
  79. {else}
  80. {$product.name}
  81. {/if}
  82. {if $product.options?}
  83. <div class="small">
  84. {$product.options | join : '; '}
  85. </div>
  86. {/if}
  87. </td>
  88. <td style="{$style.th}">{$product.count} {'ms2_frontend_count_unit' | lexicon}</td>
  89. <td style="{$style.th}">{$product.weight} {'ms2_frontend_weight_unit' | lexicon}</td>
  90. <td style="{$style.th}">{$product.price} {'ms2_frontend_currency' | lexicon}</td>
  91. </tr>
  92. {/foreach}
  93. <tfoot>
  94. <tr>
  95. <th colspan="2"></th>
  96. <th style="{$style.th}">
  97. {$total.cart_count} {'ms2_frontend_count_unit' | lexicon}
  98. </th>
  99. <th style="{$style.th}">
  100. {$total.cart_weight} {'ms2_frontend_weight_unit' | lexicon}
  101. </th>
  102. <th style="{$style.th}">
  103. {$total.cart_cost} {'ms2_frontend_currency' | lexicon}
  104. </th>
  105. </tr>
  106. </tfoot>
  107. </table>
  108. <h3 style="{$style.h}{$style.h3}">{'ms2_frontend_contacts' | lexicon}</h3>
  109. <table style="width:90%;margin:auto;">
  110. <thead></thead>
  111. <tbody>
  112. <tr>
  113. <td>{'ms2_frontend_payment_select' | lexicon}:</td>
  114. <td>{$payment.name | lexicon}</td>
  115. </tr>
  116. <tr>
  117. <td>{'ms2_frontend_email' | lexicon}:</td>
  118. <td>{$user.email}</td>
  119. </tr>
  120. {foreach $address as $key => $value}
  121. {if $value? && $key not in ['id','user_id','createdon','updatedon']}
  122. <tr>
  123. <td>{('ms2_frontend_'~$key) | lexicon}:</td>
  124. <td>{$value}</td>
  125. </tr>
  126. {/if}
  127. {/foreach}
  128. </tbody>
  129. </table>
  130. <h3 style="{$style.h}{$style.h3}">
  131. {'ms2_frontend_order_cost' | lexicon}:
  132. {if $total.delivery_cost}
  133. {$total.cart_cost} {'ms2_frontend_currency' | lexicon} + {$total.delivery_cost}
  134. {'ms2_frontend_currency' | lexicon} =
  135. {/if}
  136. <strong>{$total.cost}</strong> {'ms2_frontend_currency' | lexicon}
  137. </h3>
  138. {/block}
  139. </td>
  140. </tr>
  141. </table>
  142. </div>
  143. <!-- /content -->
  144. </td>
  145. <td></td>
  146. </tr>
  147. </table>
  148. <!-- /body -->
  149. <!-- footer -->
  150. <table style="clear:both !important;width: 100%;">
  151. <tr>
  152. <td></td>
  153. <td class="container">
  154. <!-- content -->
  155. <div class="content">
  156. <table style="width:100%;text-align: center;">
  157. <tr>
  158. <td align="center">
  159. <p style="{$style.p}">
  160. {block 'footer'}
  161. <a href="{$site_url}" style="color: #999999;">
  162. {'site_name' | option}
  163. </a>
  164. {/block}
  165. </p>
  166. </td>
  167. </tr>
  168. </table>
  169. </div>
  170. <!-- /content -->
  171. </td>
  172. <td></td>
  173. </tr>
  174. </table>
  175. <!-- /footer -->
  176. </div>
  177. </body>
  178. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement