|
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 |
nanillia Smarty n00b
Joined: 18 Dec 2012 Posts: 2
|
Posted: Tue Apr 02, 2013 8:06 am Post subject: Smarty w SOTE - math equation |
|
|
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 |
|
|
|
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
|