Fixed: services and facility currency symbol change on currency change on order-detail and order-confirmation page
This commit is contained in:
@@ -214,6 +214,11 @@ class OrderDetailControllerCore extends FrontController
|
||||
'additionalServices' => $additionalServices,
|
||||
));
|
||||
}
|
||||
$this->context->smarty->assign(
|
||||
array(
|
||||
'objOrder' => new Order($idOrder)
|
||||
)
|
||||
);
|
||||
$response['extra_demands'] = $this->context->smarty->fetch(_PS_THEME_DIR_.'_partials/order_booking_demands.tpl');
|
||||
}
|
||||
|
||||
|
||||
@@ -48,9 +48,9 @@
|
||||
<div class="col-xs-6">
|
||||
<span class="pull-right">
|
||||
{if $useTax}
|
||||
{displayPrice price="{$demand['total_price_tax_incl']|escape:'html':'UTF-8'}"}
|
||||
{displayPrice price="{$demand['total_price_tax_incl']|escape:'html':'UTF-8'}" currency=$objOrder->id_currency}
|
||||
{else}
|
||||
{displayPrice price="{$demand['total_price_tax_excl']|escape:'html':'UTF-8'}"}
|
||||
{displayPrice price="{$demand['total_price_tax_excl']|escape:'html':'UTF-8'}" currency=$objOrder->id_currency}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
@@ -90,9 +90,9 @@
|
||||
<div class="col-xs-6">
|
||||
<span class="pull-right">
|
||||
{if $useTax}
|
||||
{displayPrice price=$additionalService['total_price_tax_incl']|escape:'html':'UTF-8'}
|
||||
{displayPrice price=$additionalService['total_price_tax_incl']|escape:'html':'UTF-8' currency=$objOrder->id_currency}
|
||||
{else}
|
||||
{displayPrice price=$additionalService['total_price_tax_excl']|escape:'html':'UTF-8'}
|
||||
{displayPrice price=$additionalService['total_price_tax_excl']|escape:'html':'UTF-8' currency=$objOrder->id_currency}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -299,7 +299,7 @@
|
||||
<strong>{l s='Total extra services cost'} {if $use_tax}{l s='(tax incl.)'}{/if}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_services_ti'] currency=$currency convert=1}</span>
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_services_ti'] currency=$objCurrency convert=1}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if} *}
|
||||
@@ -322,9 +322,9 @@
|
||||
</td>
|
||||
<td colspan="2">
|
||||
{if $priceDisplay && $use_tax}
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=($orderTotalInfo['total_discounts_te'] * -1) currency=$currency convert=1}</span>
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=($orderTotalInfo['total_discounts_te'] * -1) currency=$objCurrency convert=1}</span>
|
||||
{else}
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=($orderTotalInfo['total_discounts'] * -1) currency=$currency convert=1}</span>
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=($orderTotalInfo['total_discounts'] * -1) currency=$objCurrency convert=1}</span>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -356,7 +356,7 @@
|
||||
<strong>{l s='Total Tax'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=$orderTotalInfo['total_tax'] currency=$currency convert=1}</span>
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=$orderTotalInfo['total_tax'] currency=$objCurrency convert=1}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="totalprice item">
|
||||
|
||||
Reference in New Issue
Block a user