View difference between Paste ID: Q11CgiY9 and vCCQBqgP
SHOW: | | - or go back to the newest paste.
1
{foreach $order_details as $order_detail}
2
				{cycle values='#FFF,#DDD' assign=bgcolor}
3
				<tr style="line-height:6px;background-color:{$bgcolor};">
4
					<td style="text-align: left; width: {if !$tax_excluded_display}55%{else}45%{/if}">{$order_detail.product_name}{if isset($order_detail.product_reference) && !empty($order_detail.product_reference)} ({l s='Reference:' pdf='true'} {$order_detail.product_reference}){/if}</td>
5
					<!-- unit price tax excluded is mandatory -->
6
					{if !$tax_excluded_display}
7
						<td style="text-align: right; width: 20%; white-space: nowrap;">
8
						{displayPrice currency=$order->id_currency price=$order_detail.unit_price_tax_excl}
9
						</td>
10
					{/if}
11
					
12
					
13
					<td style="text-align: center; width: 10%">{$order_detail.product_quantity}</td>
14
					<td style="text-align: right;  width: {if !$tax_excluded_display}15%{else}25%{/if}; white-space: nowrap;">
15
					
16
						{displayPrice currency=$order->id_currency price=$order_detail.total_price_tax_excl}
17
					
18
					</td>
19
				</tr>
20
					{foreach $order_detail.customizedDatas as $customizationPerAddress}
21
						{foreach $customizationPerAddress as $customizationId => $customization}
22
							<tr style="line-height:6px;background-color:{$bgcolor};">
23
								<td style="line-height:3px; text-align: left; width: 45%; vertical-align: top">
24
										<blockquote>
25
											{if isset($customization.datas[$smarty.const._CUSTOMIZE_TEXTFIELD_]) && count($customization.datas[$smarty.const._CUSTOMIZE_TEXTFIELD_]) > 0}
26
												{foreach $customization.datas[$smarty.const._CUSTOMIZE_TEXTFIELD_] as $customization_infos}
27
													{$customization_infos.name}: {$customization_infos.value}
28
													{if !$smarty.foreach.custo_foreach.last}<br />
29
													{else}
30
													<div style="line-height:0.4pt">&nbsp;</div>
31
													{/if}
32
												{/foreach}
33
											{/if}
34
35
											{if isset($customization.datas[$smarty.const._CUSTOMIZE_FILE_]) && count($customization.datas[$smarty.const._CUSTOMIZE_FILE_]) > 0}
36
												{count($customization.datas[$smarty.const._CUSTOMIZE_FILE_])} {l s='image(s)' pdf='true'}
37
											{/if}
38
										</blockquote>
39
								</td>
40
								{if !$tax_excluded_display}
41
									<td style="text-align: right;"></td>
42
								{/if}
43
								<td style="text-align: right; width: 10%"></td>
44
								<td style="text-align: center; width: 10%; vertical-align: top">({$customization.quantity})</td>
45
								<td style="width: 15%; text-align: right;"></td>
46
							</tr>
47
						{/foreach}
48
					{/foreach}
49
				{/foreach}