Akopia Akopia Services

[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 Ton Verhagen <ton@verhagen.net>     ******

Chris,

Try interpolate=1

Like:
[discount code=ALL_ITEMS interpolate=1]some discount stuff[/discount]

Ton

At 10:37 PM 8/28/00 -0500, Chris Goltz wrote:
>******    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


Search for: Match: Format: Sort by: