MiniVend Akopia Services

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

Advice on quantity-range surcharges



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just looking for some advice on what the best approach would be for this
situation:

On particular items, I want to apply a flat total surcharge based on a quantity
category.

For instance:

q100-q499       $40
q500-q999       $55
q1000-q4999     $65
q5000-up        $75

But this does not apply to every item; only certain ones.

What would be the best way to implement this? Just a pointer to the right
method (PriceAdjust, CommonAdjust, PriceBreaks, [discount], etc.) would be very
helpful.

I did try putting this on the checkout page, but it didn't seem to have any
effect:

[discount C1]
return ( $s + $75 ) if $q >= 5000;
return ( $s + $65 ) if $q < 5000;
return ( $s + $55 ) if $q < 1000;
return ( $s + $45 ) if $q < 500;
[/discount]

Does that look wrong? Does having letters in the item-code cause a problem?

Thanks in advance for any advice.

- ---
- ------------------------------------------------------------------------
Brian Knotts                                          bknotts@europa.com
Webmaster/Developer/Portland SysAdmin                     (503) 222-9508
Europa/NWLink                                        Fax: (503) 796-9134

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v0.9.7 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD4DBQE3tGl3KV5kReY9sP8RAr0HAJME91xctK9awiake2Xc3/cLtUx2AJ0eJVqT
UxhwGk/a8nEVQqrH9VXTsA==
=ADAE
-----END PGP SIGNATURE-----


Search for: Match: Format: Sort by: