[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: I'm Back
****** message to minivend-users from mikeh@minivend.com ******
Quoting Ceres (jfrye@ehg.net):
>
> I realize I am not the most popular person right now but I'm going to
> ask again anyway.
Blackholing your machine was nothing personal, just self-defense... 8-)
> Is there a way to display the dollar amount of the
> discount for the entire order when using the [discount ENTIRE_ORDER]?
>
No; but you could create one by taking advantage of the [discount]
tag sharing memory space with [calc]....
[discount ENTIRE_ORDER]
$original = $s;
$discounted = $s - 5.00;
$difference = $original - $discounted;
return $discounted;
[/discount]
Total cost is [total-cost].
You save [currency]
[calc]
return $difference;
[/calc]
[/currency].
The total cost must be done first, even if it is hidden in a <!-- -->,
as the discount operation is what sets $difference.
Don't use my() as that will create variables which don't stick.
--
Mike Heins http://www.minivend.com/ ___
Internet Robotics |_ _|____
Fast, reliable, cheap. 131 Willow Lane, Floor 2 | || _ \
Pick two and we'll talk. Oxford, OH 45056 | || |_) |
-- unknown <mikeh@minivend.com> |___| _ <
513.523.7621 FAX 7501 |_| \_\
-
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