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 go through as much trouble as above. I would incorporate a system similar to above IF you always need the correct values the cart each time its edited (for example, the cart 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 then I would do the promotion code lookup first. In this case, you wouldn't have to reset the price in the above way because the prices would always be reset dynamically IF the code is valid. If the code is not valid, then you don't have to mess with any of 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:

    
  1. Re: Discounts: Buy One, Get One =?ISO-8859-1?Q?99=A2?= ( Clint Davis 2004)
  2. Re: Discounts: Buy One, Get One =?ISO-8859-1?Q?99=A2?= ( Donovan Brooke 2004)
  3. Re: Discounts: Buy One, Get One =?ISO-8859-1?Q?99=A2?= ( Clint Davis 2004)
  4. Re: Discounts: Buy One, Get One =?ISO-8859-1?Q?99=A2?= ( Donovan Brooke 2004)
  5. Re: Discounts: Buy One, Get One =?ISO-8859-1?Q?99=A2?= ( Clint Davis 2004)
  6. Re: Discounts: Buy One, Get One =?ISO-8859-1?Q?99=A2?= ( Donovan Brooke 2004)
  7. Discounts: Buy One, Get One =?ISO-8859-1?Q?99=A2?= ( Clint Davis 2004)
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 go through as much trouble as above. I would incorporate a system similar to above IF you always need the correct values the cart each time its edited (for example, the cart 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 then I would do the promotion code lookup first. In this case, you wouldn't have to reset the price in the above way because the prices would always be reset dynamically IF the code is valid. If the code is not valid, then you don't have to mess with any of 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:

Wishlist;: Was Runtime version ... (2003) Webten + Webcat running smooth (1998) Country & Ship-to address & other fields ? (1997) The Depths of Credit Card Payment (2003) Generating Report Totals (1997) Shopping cart now bad (1997) [include file=filename.inc&strip=t] (2002) RE: Can a database get stomped by simultaneous access? (1997) WebCatalog for Postcards ? (1997) syntax question, not in online refernce (1997) Banner system (2000) Disappearing Databases (2000) referrer and no caches (1997) RE: Purchased cart being overwritten (1997) Possible Bug in 2.0b15.acgi (1997) Encrypt Decrypt URL UnURL Weirdness (2001) any suggestions for creating a multi-lingual site? (1999) Emailer Problem (2000) [WebDNA] reply vs. new (2009) carriage returns in data (1997)