[-] Core: Fix cache issue and order slip pdf generation
This commit is contained in:
@@ -30,8 +30,6 @@
|
||||
<td style="width: 80%">
|
||||
{if $tax_exempt}
|
||||
{l s='Exempt of VAT according section 259B of the General Tax Code.' pdf='true'}
|
||||
{else if (count($shipping_tax_breakdown) + count($product_tax_breakdown) + count($ecotax_tax_breakdown) + count($wrapping_tax_breakdown) == 0)}
|
||||
{l s='No tax' pdf='true'}
|
||||
{else}
|
||||
<table style="width: 70%" >
|
||||
<tr style="line-height:5px;">
|
||||
|
||||
@@ -107,25 +107,33 @@
|
||||
- {displayPrice currency=$order->id_currency price=$order_detail.total_price_tax_incl}
|
||||
</td>
|
||||
</tr>
|
||||
{foreach $order_detail.customizedDatas as $customization}
|
||||
<tr style="line-height:6px;background-color:{$bgcolor}; ">
|
||||
<td style="line-height:3px; text-align: left; width: 60%; vertical-align: top">
|
||||
{foreach $customization.datas as $customization_types}
|
||||
<blockquote>
|
||||
{foreach $customization_types as $customization_infos name=custo_foreach}
|
||||
{$customization_infos.name}: {$customization_infos.value}
|
||||
{if !$smarty.foreach.custo_foreach.last}<br />
|
||||
{else}
|
||||
<div style="line-height:0.4pt"> </div>
|
||||
{/if}
|
||||
{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: 60%; vertical-align: top">
|
||||
{foreach $customization.datas as $customization_types}
|
||||
<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>
|
||||
{/foreach}
|
||||
</blockquote>
|
||||
{/foreach}
|
||||
</td>
|
||||
<td style="text-align: right; width: 15%"></td>
|
||||
<td style="text-align: center; width: 10%; vertical-align: top">({$customization.quantity})</td>
|
||||
<td style="width: 15%; text-align: right;"></td>
|
||||
</tr>
|
||||
</td>
|
||||
<td style="text-align: right; width: 15%"></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}
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user