[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Advice on quantity-range surcharges
Quoting Brian Knotts (bknotts@europa.com):
> 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]
>
$75 will show up as "", since you can't use $ in numbers in
Perl (or any other language I know). Otherwise it should work.