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:
cybercash on OSX - was Executing remote AppleScript (2000)
unable to launch acgi in WebCat (1997)
Has anything been fixed in 4.0.1 since the beta? (2000)
Possible Macv2.1b2 Merge Bug (1997)
[format 40s]text[/format] doesn't work (1997)
Bizarre behavior texta behavior (2004)
WebCat editing, SiteGuard & SiteEdit (1997)
Visitor info (2000)
emailer settings and control questions (1997)
Navigator 4.01 (1997)
Closing Databases (1998)
Re:Searching for ALL / empty form field *the FINAL answer* (1997)
Wrapping text (1998)
webdelivery.tmpl???? (1997)
Errata: WCS Newbie question (1997)
WebDelivery downloads alias, not original ? (1997)
Xserve Recommendations (2003)
Authenticate (1997)
Searching for the end (1998)
[redirect] w/o showing args? (1999)