MiniVend Akopia Services

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

How do you display discount amount?



******    message to minivend-users from Ceres <jfrye@ehg.net>     ******

Hello everyone,

I have done my best to solve this on my own by way of docs and mail list
archive but I am at a dead-end. My wish is to display on basket.html and
checkout.html the amount of the customers discount. Something like:
		
		Quantity	Price	    Extension
		  11		$100.00	$1100.00

			Less Discount	$165.00
				Subtotal	$935.00

I have the subtotal discounting correctly with:

	[discount ENTIRE_ORDER]
    return ($s)       if $s < 500;
    return ($s * .9)  if $s < 1000;
    return ($s * .85) if $s < 2500;
    return ($s * .82) if $s > 2500;
	[/discount]

I have not been able to figure out how to get the discount amount to
display. I've fumbled with some various perl code without success. I
figure if I can get the original value of subtotal before the discount
is applied I could use it in perl to calculate the discount amount and
put that into a scratch variable to be displayed on the checkout,
receipt, and report pages. Problem is I can't find a way to grab
subtotal before the discount is applied.

I've exhausted my knowledge of Perl and Minivend (both pretty limited),
now I need some assistance. 

TIA


Jayme Frye
Sys Admin
Epsen Hillmer Graphics Co.
-
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: