Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Please Help !

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
iPhoneUser10
Smarty n00b


Joined: 07 Sep 2017
Posts: 1

PostPosted: Thu Sep 07, 2017 6:56 am    Post subject: Please Help ! Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1633

PostPosted: Thu Sep 07, 2017 5:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP