-
AuthorPosts
-
August 18, 2015 at 4:16 pm #362663
I’ve created a product slider in Revolution Slider that displays a product along with it’s title and description. I used the meta tag %title% for the title and %excerpt% for the excerpt (worked perfect). Now I would like to display the price the same way. %meta:_price% displays the price but it is not formatted as a currency. Is there an easy way to display the price properly formatted (like this –> $0.00)?
Thanks in advance!
August 18, 2015 at 8:52 pm #362818Hi There,
Thanks for writing in! You need to encode the price with decimal place on the backend. For the currency symbol, apply a class to the price layer and add this on your custom css:
.myclass:before { content: "$ "; }
Hope it helps, Cheers!
February 1, 2016 at 3:03 pm #774910I´ve discovered other solution to this case: you can use $ ; (semicolons without spacing) that is the dollar symbol in HTML numbers. For Example:
%title% only: $ ; %meta:_regular_price%
I´m using this in Slider Revolution 5.X and works great!
Best Regards!February 1, 2016 at 11:53 pm #775444Glad to hear it’s working for you and thanks for sharing your workaround! 🙂
-
AuthorPosts