[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
RE: User Discount Problems
****** message to minivend-users from "Thompson-Jordan" <Thompson-Jordan@mindspring.com> ******
Haven't a clue. You could grep (or in windows Start->Find) for "discount"
in Minvend's Perl directory.
Christopher Thompson
> -----Original Message-----
> From: owner-minivend-users@minivend.com
> [mailto:owner-minivend-users@minivend.com]On Behalf Of
> mwatkins@lexmark.com
> Sent: Tuesday, March 23, 1999 7:50 AM
> To: minivend-users@minivend.com
> Subject: RE: User Discount Problems
>
>
> ****** message to minivend-users from mwatkins@lexmark.com ******
>
> Interesting thought. Any idea where the discount is actually calculated
> and saved? I would be willing to explore this further if I new where
> minivend is handling this. (i.e. Order.pm?)
>
> Mark Watkins
>
> >I an interested in this also. As I suspected, you will need to get
> deeper
> >into how Minivend (as Mike says "magically") calculates the discount,
> >subtotal, and total on both the basket and checkout.
>
> >For all you know, Minivend may be copying the value in the return as a
> >string (e.g. return($s * 0.9); to '$s * 0.9') and then recalculating it
> on
> >the checkout page - in your case '$s * $myper{""}' would evaluate to
> >nothing. I'm not saying it is actually doing this, just that
> it could be
> >doing somthing other that what you think it is doing.
>
> >Christopher Thompson
>
>
> > ****** message to minivend-users from mwatkins@lexmark.com
> ******
> >
> > I currently running minivend version 3.12beta6 and have been
> > working on a way to give an individual a discount. The userdb
> > has a column added called getdiscount.
> >
> > The following code is from basket.html:
> > [item-list]
> > .
> > .
> > [if session logged_in]
> > [if value getdiscount]
> > [calc]
> > $myper{""} += 1 - ([value
> > getdiscount]/100);
> > return '';
> > [/calc]
> > [discount [item-code]]
> > return ($s * $myper{""});
> > [/discount]
> > <FONT COLOR="#FFFF80"
> > SIZE=-1>User gets a
> > [value getdiscount]% discount!</FONT>
> > [/if]
> > [else]
> > [discount [item-code]] return($s); [/discount]
> > [/else]
> > [/if]
> > </TD>
> > <TD [var HEADERBG] VALIGN=TOP ALIGN=RIGHT>
> > <FONT COLOR="__HEADERTEXT__">[item-subtotal]
> > </FONT>
> > </TD>
> > </TR>
> > [/item-list]
> > The basket total shows up exactly correct. If I change the
> > number in userdb
> > the total work fine. HOWEVER, when I proceed to the checkout page.
> > I get the following:
> > Durr-Walks in Beauty
> > Giclee 1 @ $320.00
> > $320.00
> >
> > Subtotal
> > $0.00
> >
> > Sales Tax
> > $0.00
> > Shipping (includes $3 handling charge)
> > $6.93
> >
> >
> > TOTAL
> > $6.93
> >
> > BUT if I put the following in for [discount]:
> >
> > [discount [item-code]]
> > return ($s * 0.9);
> > [/discount]
> >
> > Everything works like it should, checkout is fine the totals are fine!
> > What am I missing it has been driving me nuts!
> >
> > Thanks in advance!
> > Mark Watkins
> >
> >
> > -
> > 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
>
-
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