[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Free item for every $x
****** message to minivend-users from Mike Lerley <mike@bfent.com> ******
Thank you! Works like a charm. I put it in my basket form so it shows up when they
go to check out. A couple procedural bugs to work out still but it works! Thanks a
million.
-mike
Ace Kumar wrote:
> ****** message to minivend-users from Ace Kumar <ace@digiknow.com> ******
>
> Something like this should work (I have NOT tested this; I made it up just
> now)
>
> [if !ordered 197]
> [perl interpolate=1]
> my $out = '';
> my $subt = '[subtotal]';
> $subt = substr($subt,1);
> $quan = (int($subt / 100));
> $out .= qq(<input type="hidden" name="mv_order_item" value="197">
> <INPUT TYPE="HIDDEN" NAME="mv_order_quantity"
> VALUE="$quan">);
> }
> $out;
> [/perl]
> [/if]
>
> The [if !ordered] is there so that it doesn't keep adding extra lobsters.
>
> Again, I did NOT test this. It should at least get you started.
>
> Ace
>
> On Thu, 21 Jan 1999, Mike Lerley wrote:
>
> > ****** message to minivend-users from Mike Lerley <mike@bfent.com> ******
> >
> > I finally fixed my discount problem, which turned out to be because I
> > wasn't calculating things within an [item-list]. Oops. Now I have a
> > different problem to solve:
> >
> > My client wants customers to receive one free lobster for every $100
> > they spend. Has anyone done this, or have any suggestions about how to
> > approach it? I'd like it to be ordered "automatically"; that is, not
> > have to click a button or anything to add it to the basket, but I don't
> > know if that's possible.
> >
> > Thanks...
> > -mike
> >
> > --
> > Mike Lerley, System Integrator
> > BonFire Enterprises
> > 56 Leighton Road
> > Augusta, ME 04330
> > Email mike@bfent.com
> > Phone (207) 622-3298
> > Fax (207) 623-5125
> >
> >
> > -
> > 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
> >
>
> --
> Simran (Ace) Kumar, Systems Integrator - DigiKnow LLC
> 25700 Science Park Drive #260, Cleveland Ohio 44122
> Office: (216)292-7259 Fax (216)292-4952
> www.digiknow.com
>
> -
> 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
--
Mike Lerley, System Integrator
BonFire Enterprises
56 Leighton Road
Augusta, ME 04330
Email mike@bfent.com
Phone (207) 622-3298
Fax (207) 623-5125
-
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