View Single Post
  #10  
Old 05-17-2004, 06:41 AM
 
richard_o richard_o is offline
 

Member
  
Join Date: Apr 2004
Posts: 24
 

Default

All sorted now! smarty wasn't liking the underscores in the equation. Working code is:

Quote:
{math equation="(subtotal+discount+shippingcost)*0.02"
subtotal=$cart.sub_total
discount=$cart.discount
shippingcost=$cart.shipping_cost
assign="surcharge"
format="%.2f"}

Thanks for all the help, everyone!
Reply With Quote