MiniVend Akopia Services

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

Re: Minivend Help



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

Victor,
	
	Yes I did get this resolved with help from Mike and other list members.
I posted the solution to the list it should be in the archive. The
primary discount code is as follows:

[discount ENTIRE_ORDER]
               
                $original = $s;
                if ($s < 500) {
                	$discounted = $s;
                } elsif ($s < 1000) {
                	$discounted = $s * .9;
                } elsif ($s < 2500) {
                $discounted = $s * .85;
                } elsif ($s >= 2500) {
                $discounted = $s * .82;
                }
                $difference = $original - $discounted;
                return $discounted;
        [/discount]


	This sets up the discount and creates a global variable $difference
which is called on the page with:

	<FONT COLOR=RED>[currency][calc] return $difference; [/calc][/currency]</FONT>

	This was all placed on the basket page. I also call the $difference
variable on the checkout, and receipt. I tried to call it on the report
page but it doesn't work and I don't know why, let me know if you figure
it out.

If you would like to see it in action take a look at my development site http://com1.ehg.net/cgi-bin/hgdev.

I will cross post this to the list for everyone.

Victor Nolton wrote:
> 
> DId you ever get a solution for below.. I see Mike responded to your
> problem but yet the solution he gave I don't believe helped..
> 
> I really want like you have.. where the discount for the entire order is
> printed..
> 
> Thanks..
> 
> Ven
> 
>   Quantity        Price       Extension
>     11            $100.00     $1100.00
>                Less Discount   $165.00
>                Subtotal        $935.00
> 
> Ven (ven@pragakhan.com) _________________ http://ven.pragakhan.com __
> AOL IM: WebmstrVen                                      ICQ : 8321393
>                     Praga Khan's Official Website
>                       http://www.pragakhan.com

-- 
Jayme Frye
Sys Admin
Epsen Hillmer Graphics Co.
402-342-7000
              jfrye@ehg.net
-
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: