|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
iPhoneUser10 Smarty n00b
Joined: 07 Sep 2017 Posts: 1
|
Posted: Thu Sep 07, 2017 6:56 am Post subject: Please Help ! |
|
|
Hello Community,
we have an Online Shop on eBay and we using a Template for it.
This template should show the customer the price of the article.
In the Template(which is written in Smarty and HTML) is the following function:
<div class="slimshade shadesofdarkgrey">
<h2 id="hFoot">Jetzt für nur [{$auctionPrice|string_format:"%.2f"}] EUR bei uns auf eBay!</h2>
</div>
Can you please describe me what he is doing here ?
Im an absolutly Newbie in this section.
The language from this sentence is german.
Im glad when you help me.
Thanks |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Sep 07, 2017 5:28 pm Post subject: |
|
|
Nothing arcane is going on in there.
The only deviation from default Smarty setup I noticed is an apparent use of custom Smarty delimiters ("[{ }]" instead of default "{ }").
The variable containing the price is printed and formatted as a floating-point, even though such a formatting is least desirable for a price.
See Smarty documentation for details.
https://www.smarty.net/docs/en/language.basic.syntax.tpl |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|