View Single Post
  #1  
Old 05-18-2004, 06:20 AM
 
spoonernyc spoonernyc is offline
 

Member
  
Join Date: Apr 2004
Posts: 18
 

Default simple smarty question

I have an offer of free shipping for all orders over $30 so I want to implement the following:

{if $subtotal<30}
if you order just ($30-$subtotal} more you can get free shipping
{/if}

I can get the message to print if it is lower than $30 but how do you do simple math in Smarty?

Just as a side note: the Smarty folks MUST get their act together on the docs. I have spent the past hour trying to find some documentation of how to do this VERY SIMPLE task and cannot find it on the SMARTY site. they have one example of MATH for variables but it does not talk about using those variables it just shows you that you can add things together...
LAME...

thank you for any help
Reply With Quote