Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {foreach $order_details as $order_detail}
- {cycle values='#FFF,#DDD' assign=bgcolor}
- <tr style="line-height:6px;background-color:{$bgcolor};">
- <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>
- <!-- unit price tax excluded is mandatory -->
- {if !$tax_excluded_display}
- <td style="text-align: right; width: 20%; white-space: nowrap;">
- {displayPrice currency=$order->id_currency price=$order_detail.unit_price_tax_excl}
- </td>
- {/if}
- <td style="text-align: center; width: 10%">{$order_detail.product_quantity}</td>
- <td style="text-align: right; width: {if !$tax_excluded_display}15%{else}25%{/if}; white-space: nowrap;">
- {displayPrice currency=$order->id_currency price=$order_detail.total_price_tax_excl}
- </td>
- </tr>
- {foreach $order_detail.customizedDatas as $customizationPerAddress}
- {foreach $customizationPerAddress as $customizationId => $customization}
- <tr style="line-height:6px;background-color:{$bgcolor};">
- <td style="line-height:3px; text-align: left; width: 45%; vertical-align: top">
- <blockquote>
- {if isset($customization.datas[$smarty.const._CUSTOMIZE_TEXTFIELD_]) && count($customization.datas[$smarty.const._CUSTOMIZE_TEXTFIELD_]) > 0}
- {foreach $customization.datas[$smarty.const._CUSTOMIZE_TEXTFIELD_] as $customization_infos}
- {$customization_infos.name}: {$customization_infos.value}
- {if !$smarty.foreach.custo_foreach.last}<br />
- {else}
- <div style="line-height:0.4pt"> </div>
- {/if}
- {/foreach}
- {/if}
- {if isset($customization.datas[$smarty.const._CUSTOMIZE_FILE_]) && count($customization.datas[$smarty.const._CUSTOMIZE_FILE_]) > 0}
- {count($customization.datas[$smarty.const._CUSTOMIZE_FILE_])} {l s='image(s)' pdf='true'}
- {/if}
- </blockquote>
- </td>
- {if !$tax_excluded_display}
- <td style="text-align: right;"></td>
- {/if}
- <td style="text-align: right; width: 10%"></td>
- <td style="text-align: center; width: 10%; vertical-align: top">({$customization.quantity})</td>
- <td style="width: 15%; text-align: right;"></td>
- </tr>
- {/foreach}
- {/foreach}
- {/foreach}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement