[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Negative Order Totals
****** message to minivend-users from "Gideon van Gelder" <gideon@swingmaster.nl> ******
> ****** message to minivend-users from Chris Rapier <rapier@psc.edu>
******
>
> I'm giving a discount to first time customers of $5. Currently if they
> order less than $5 worth of merchandise they end up with a negative
> order total and I owe them money. This is something I would like to
> avoid if possible. I would think some sort of error checking on this
> would be built it but I might be mistaken.
>
> Does anyone know how to get aroudn this problem? I check the mailing
> list but wasn't able to find anythign appropriate.
Dear Chris,
How about something like
[if explicit]
[condition]
return 1 if '[calc][total-cost noformat=1][/calc]' < 0;
return 0;
[/condition]
$0.00
[else]
[total-cost]
[else]
[/if]
(untested)
Good luck,
-Gideon
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list