
11-08-2004, 04:28 PM
|
|
 | |
|
|
 X-Man
|
|
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
|
|
|
Quote:
Originally Posted by funkydunk
what groovico is saying is that x-cart does this mod as standard in ALL versions. He was not talking about the little bit of maths that you want to add in.
If you really want to do the maths bit - an easy way would be to add the following few lines to the cart.tpl template along the lines of:
{math equation=x-y x=$variable_with_limit_in y=$variable_with_cart_total assign=need_to_spend}
{if $need_to_spend gt 0}
spend some more dude
{else}
hurray - you've got free shipping
{/if}
the names of real variables have been changed to protect the innocent.
|
OMFG, FunkyDunk lives! 
|
|