Re: Discounts: Buy One, Get One =?ISO-8859-1?Q?99=A2?=
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 55461
interpreted = N
texte = Clint Davis wrote:> Well, the more I ask the account executive about this, the more complex it> gets. Here's the basic structure:> > 1. Lineitems with quantity greater than one are split into as many lineitems> as the quantity.> 2. Is there more than one lineitem?> a. If there is, is there already a discounted item?> i. If there is, check out.> ii. If there isn't, is the promotion code correct?> 1. If it is, change the price of the least expensive item to 99�> and check out.> 2. If it isn't, check out.> b. If there isn't, is there already a discounted item?> i. If there is, reset it's price by doing a [lookup].> ii. If there isn't, check out.:-)regarding 2aii: depending on how your ordering flow goes, you might not have to gothrough as much trouble as above. I would incorporate a system similar to aboveIF you always need the correct values the cart each time its edited (for example, thecart is on the same page as the results). In this case, I would incorporate [setlineitem], [switch]and a flag variable that initiates code depending on "deleting" or "updateing" (editing).If you don't need the correct values until the invoice page thenI would do the promotion code lookup first. In this case, you wouldn't have toreset the price in the above way because the prices would always be reset dynamicallyIF the code is valid. If the code is not valid, then you don't have to mess with anyof the dicounting stuff (hide it entirely to save processing power).Good luck!Donovan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Clint Davis wrote:> Well, the more I ask the account executive about this, the more complex it> gets. Here's the basic structure:> > 1. Lineitems with quantity greater than one are split into as many lineitems> as the quantity.> 2. Is there more than one lineitem?> a. If there is, is there already a discounted item?> i. If there is, check out.> ii. If there isn't, is the promotion code correct?> 1. If it is, change the price of the least expensive item to 99�> and check out.> 2. If it isn't, check out.> b. If there isn't, is there already a discounted item?> i. If there is, reset it's price by doing a [lookup].> ii. If there isn't, check out.:-)regarding 2aii: depending on how your ordering flow goes, you might not have to gothrough as much trouble as above. I would incorporate a system similar to aboveIF you always need the correct values the cart each time its edited (for example, thecart is on the same page as the results). In this case, I would incorporate [setlineitem], [switch]and a flag variable that initiates code depending on "deleting" or "updateing" (editing).If you don't need the correct values until the invoice page thenI would do the promotion code lookup first. In this case, you wouldn't have toreset the price in the above way because the prices would always be reset dynamicallyIF the code is valid. If the code is not valid, then you don't have to mess with anyof the dicounting stuff (hide it entirely to save processing power).Good luck!Donovan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Donovan Brooke
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Gettting IPAddress (2001)
Emailer again (1997)
For those of you not on the WebCatalog Beta... (1997)
Re:Emailer and encryption (1997)
[shownext] (1999)
HELP WITH DATES (1997)
Ongoing group search problems ... (1997)
Support ?? (1997)
autosensing lanague selection (1997)
I give up!! (1997)
invoice.tpl (1998)
[addlineitems] (1997)
WebCat2: Formulas.db question (1997)
Three new problems, maybe a fourth (1997)
Shipping cost out of synch (1998)
A little syntax help (1997)
[ShowIf] a either fields are blank (1998)
MacAuthorize order data fields WAS:How To question... (1997)
spaces in db (2001)
HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997)