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



 
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: German
View previous topic :: View next topic  
Author Message
asff
Smarty Rookie


Joined: 03 Feb 2014
Posts: 6

PostPosted: Thu Sep 24, 2015 8:12 am    Post subject: Reply with quote

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


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Thu Sep 24, 2015 7:26 pm    Post subject: Reply with quote

1. keine " Qoutes
Code:
{assign var=mindermenge value=50.00-$cart_total|replace:',':'.'|replace:'EUR':''}
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: German 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