+ Reply to Thread
Results 1 to 3 of 3

Thread: Counter for Currency

  1. #1
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421

    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
    Last edited by Steffen Buschkemper; January 22, 2014 at 01:22 PM.

  2. #2
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    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.



    Best regards
    Steffen
    Last edited by Steffen Buschkemper; January 22, 2014 at 02:03 PM.

  3. #3
    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

+ Reply to Thread