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!
