Hello All,
I am working my way thought migrating some sites over to CS-CART and I am very impressed so far, the way it handles languages is fantastic.
I am 99% done however I would like to display some different images/phone numbers based on the currency the user has selected.
Can somebody advise the best way to perform the following:
IF (currency=USD)
{
Print X;
}
IF (currency=GBP)
{
Print Y;
}
IF (currency=EUR)
{
Print Z;
}
I would ideally like to bring this into the template manager (via a HTML block)
Thank you.
Smarty variable for the currently selected user currency would be:
$smary.const.CART_SECONDARY_CURRENCY
or just
$primary_currency
And for the cart currency (store currency) it would be:
$smary.const.CART_PRIMARY_CURRENCY
or just
$secondary_currency
See core/fn.init.php for the function fn_init_templater().