Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty w SOTE - math equation

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Polish
View previous topic :: View next topic  
Author Message
nanillia
Smarty n00b


Joined: 18 Dec 2012
Posts: 2

PostPosted: Tue Apr 02, 2013 8:06 am    Post subject: Smarty w SOTE - math equation Reply with quote

Witam,
mam problem chciałabym w szablonie, w pliku html kod obliczający rabat
[nie mogę edytować innych plików]
Kod ma obliczać różnicę między starą a nową ceną zrobiłam coś takiego:
{math equation="(y-x)/100" y=$old_price_brutto x=$price_brutto format="%.2f"} ten kod nie działa
Gdy podstawię liczby to bez problemu wylicza różnicę

{math equation="(y-x)/100" y="100" x="20" format="%.2f"}

Z góry dziękuję za pomoc
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Polish 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