[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
RE: [mv] Discount and database bug? or just bad code?
****** message to minivend-users from "Cameron B. Prince" <cameron@akopia.com> ******
I just ran into this myself...
Try this:
[seti coupon_amount][data table=coupons column=discount
key='mycoupon'][/seti]
[discount ENTIRE_ORDER] $s - $Scratch->{coupon_amount}; [/discount]
Good luck,
Cameron
-----Original Message-----
From: owner-minivend-users@minivend.com
[mailto:owner-minivend-users@minivend.com]On Behalf Of Chris Goltz
Sent: Monday, August 28, 2000 10:37 PM
To: minivend-users@minivend.com
Subject: [mv] Discount and database bug? or just bad code?
****** message to minivend-users from Chris Goltz <chris@gamemore.com>
******
Hello all, I've searched the list and the docs but couldn't find anything
that would tell me what is wrong and I am in a read bind.
I have a coupon database in which I am storing the discount amount that gets
applied when that coupon is entered. Below is a piece of that code.
[discount code=ALL_ITEMS]
$s - [data base="coupons" field="discount" key="mycoupon"]
[/discount]
The problem is that with this code the discounts don't work. The database
lookup return a value (i.e. 5) when it is not in the discount tag, so I know
it is achieving the lookup, and when I hard code a value in place of the
lookup I receive a discount. So it is just when they are combined that the
discount breaks.
I am sure this is something simple. Can someone enlighten me as to what is
wrong here or give me code that does work?
I am using MiniVend 3.14-5.
-Chris
-
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
-
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