Akopia Akopia Services

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

[mv] [discount] (not) in report



******    message to minivend-users from James Johnson <flam@airmail.net>     ******

Hiya List!

I have a simple discount scheme in one of my carts:
Basically if a customer orders any 2 items they get 15% off, any 3 is
20 and 4 or more is 30...

It looks like this:

[calc]
        [item-list]
            $totalq += [item-quantity];
        [/item-list]
            return '';
[/calc]
    
[item-list]
        [discount code="[item-code]"]
            return ($s)       if $totalq == 1;
            return ($s * .85) if $totalq == 2;
            return ($s * .80) if $totalq == 3;
            return ($s * .70) if $totalq > 3;
        [/discount]
[/item-list]

This is in the ord/basket.html, ord/checkout.html, ../etc/receipt.html
and ../etc/report files.

It all works like a charm except for the report.

Therefore the basket shows discounts nicely, the checkout page looks
good, the receipt a customer gets is correct, but the order emailed to
the cart owner is wrong. It will be full price.

I have tried putting the code in several places in the file, moving
the file (to the pages/ord/ directory), and changing the report file
to html all to no avail.

Can anyone clue me in to what is wrong??  Does MiniVend not support
the [discount] command in the report file?

Must I use CommonAdjust?

BTW - Mike Heins, if you are listening... thanks for the great
program.  Your work is appreciated!

Best regards,
James
flam@airmail.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: