Fix currency with facebook pixel
This commit is contained in:
parent
3382d89a7e
commit
64d33eafb7
@ -16,19 +16,11 @@ class OrderConfirmationController extends OrderConfirmationControllerCore
|
||||
$productIds[] = (int) $product['product_id'];
|
||||
}
|
||||
|
||||
$currency = Currency::getCurrency((int) $order->id_currency);
|
||||
$currencyIsoCode = 'EUR';
|
||||
if (!empty($currency['iso_code'])) {
|
||||
$currencyIsoCode = $currency['iso_code'];
|
||||
}
|
||||
|
||||
self::$smarty->assign(
|
||||
array(
|
||||
'order' => $order,
|
||||
'productIds' => $productIds,
|
||||
'currency' => $currencyIsoCode,
|
||||
)
|
||||
);
|
||||
self::$smarty->assign(array(
|
||||
'order' => $order,
|
||||
'productIds' => $productIds,
|
||||
'currency' => Currency::getCurrency((int) $order->id_currency),
|
||||
));
|
||||
}
|
||||
|
||||
public function displayContent()
|
||||
|
@ -413,7 +413,7 @@
|
||||
<script>
|
||||
fbq('track', 'Purchase', {
|
||||
value: '{/literal}{$order->total_paid}{literal}',
|
||||
currency: "{/literal}{$currencyIsoCode}{literal}"
|
||||
currency: "{/literal}{$currency['iso_code']}{literal}"
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
@ -395,7 +395,7 @@
|
||||
<script>
|
||||
fbq('track', 'Purchase', {
|
||||
value: '{/literal}{$order->total_paid}{literal}',
|
||||
currency: "{/literal}{$currencyIsoCode}{literal}"
|
||||
currency: "{/literal}{$currency['iso_code']}{literal}"
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
Loading…
Reference in New Issue
Block a user