Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] Still displaying discount...



******    message to minivend-users from Ryan <rps@willconsult.com>     ******

I need to display the order discount amount, and have been
using the code below to do it:

>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.

Works fine, but what about displaying it on the email report, report.html?
Thats not HTML so you can't call [total-cost] inside <!-- HTML comments -->.

How can I display the discount amount on this page? I've had zero
luck setting variables with [set discount_amount]anything[/set], I
can never get a variable to set. Otherwise, maybe, somehow, I
could store this discount amount in a variable and then use that
where I need discount amount?

Thanks,
Ryan

-
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


Search for: Match: Format: Sort by: