|
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 |
asff Smarty Rookie
Joined: 03 Feb 2014 Posts: 6
|
Posted: Thu Sep 24, 2015 8:12 am Post subject: |
|
|
Hi!
ich würde gerne in einem Warenkorb in einem Shop folgendes ausgeben
50 €
minus "der Gesamte Warenkorb" = "Rest-Euro" bis Mindermengenzuschlag wegfällt.
Code: |
{assign var=mindermenge value="50.00-$cart_total"}
{$mindermenge|string_format:"%.2f"|replace:".":","} EUR
|
Nun wird aber bei $cart_total "EUR" mit ausgegeben.. meine Überlegung wäre den $cart_total ausgeben mit |replace:"EUR" Euro entfernen, umwandeln in Variable und dann entsprechend
Code: | {assign var=mindermenge value="50.00-HIER DEN BETRAG OHNE EUR"} |
mir den Betrag zu errechnen.. allerdings hat dies bis jetzt noch nicht so richtig geklappt...
irgendwelche Tipps ? |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu Sep 24, 2015 7:26 pm Post subject: |
|
|
1. keine " Qoutes
Code: | {assign var=mindermenge value=50.00-$cart_total|replace:',':'.'|replace:'EUR':''} |
|
|
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
|