• Resolved supernova42

    (@supernova42)


    When in Manage Database fields and selecting the Currency Field, it would be great if I could also choose a Currency symbol to precede the displayed value.

    Instead of something like 95.67, I think £95.67, or $95.67 etc looks much better.

    Is there a way I can achieve this or is this that you would need to do?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter supernova42

    (@supernova42)

    I thought I could add a ‘£’ symbol as follows thinking that it might be displayed before the actual price. Unfortunately it didn’t work.

    [pdb_list template=”flexbox” fields=’photo,summary,’.’£’.’price,more_info’]

    Then I created a drop-down field called ‘currency’ with a selection of currencies for the user to select. This works fine when I list items through php and I can also include it within the following shortcode.

    [pdb_list template=”flexbox” fields=’photo,summary,currency,price,more_info’]

    Unfortunately the currency and price come out on different lines.

    Instead of this £95.67 it come out as


    95.67

    Can you give any advice please.

    Thanks

    Plugin Author xnau webdesign

    (@xnau)

    You can set the symbol in the field definition using the data-before attribute.

    For example:

    data-before::$

    Thread Starter supernova42

    (@supernova42)

    I just could not find that in the documentation.

    Many Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Currency Symbol’ is closed to new replies.