-
Counter for Currency
Hi,
I have a technical question in relation of the number of used currencies.
In the generation of the fields both search forms, i would like to check via counter in field, how many currencies are available and activated.
Is there such function via smarty as follow:
{$currency|@count <1}
Best regards
Steffen
-
I will push up tis thread.
I ask because the logic is not given.
Why a dropdown when there is only one currency?
I think it is enough to use a hidden input field with the value for this one currency and only view the currency sign.
It does not need a dropdown with - Any - and the only one used currency. This is illogical.
That's why i ask for a counter.
It is about the search fields...
For better understanding the following image.
If more than one currency then dropdown, otherwise hidden input and only view the currency sign.
http://i41.tinypic.com/vr3lmd.png
Best regards
Steffen
-
It's already like this on add page but for search forms seems it's not (
for current currency count you may use this statement
{'currency'|df|@count}
looks strange, but it should work