Re: Changing SubTotal

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 54055
interpreted = N
texte = Thanks for the hint and making me aware of what could be a nasty loophole... on 11/13/03 4:25 PM, Donovan Brooke at dbrooke@euca.us wrote: > Alan, > A very brief rundown as I don't have much time... > > Setup a product in the products database with a SKU call VOUCHER or something. > Set the price to 0. > > Then use your code to calculate the discount. Addlineitem this discount > (using > pricechange password, and price / quan to the cart... > > However, doing it this way, one has to account for the editing and removing > of products etc!!. > > So, be carefull to not let users crack your discounting (to get product > cheaper). > :-) > > Donovan > > > > Alan White wrote: > >> I don't suppose someone would be able to show me an example of adding the >> lineitem could they? Do I have to allocate a fictitious SKU number seeing >> as the Voucher doesn't actually reside in stock? >> >> Thanks >> Alan > ------------------------------------------------------------- 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: Changing SubTotal ( John Peacock 2003)
  2. Re: Changing SubTotal ( Alan White 2003)
  3. Re: Changing SubTotal ( John Peacock 2003)
  4. Re: Changing SubTotal ( Alan White 2003)
  5. Re: Changing SubTotal ( Donovan Brooke 2003)
  6. Re: Changing SubTotal ( Alan White 2003)
  7. Re: Changing SubTotal ( Alan White 2003)
  8. Re: Changing SubTotal ( Alan White 2003)
  9. Re: Changing SubTotal ( John Peacock 2003)
  10. Re: Changing SubTotal ( Donovan Brooke 2003)
  11. Changing SubTotal ( Alan White 2003)
Thanks for the hint and making me aware of what could be a nasty loophole... on 11/13/03 4:25 PM, Donovan Brooke at dbrooke@euca.us wrote: > Alan, > A very brief rundown as I don't have much time... > > Setup a product in the products database with a SKU call VOUCHER or something. > Set the price to 0. > > Then use your code to calculate the discount. Addlineitem this discount > (using > pricechange password, and price / quan to the cart... > > However, doing it this way, one has to account for the editing and removing > of products etc!!. > > So, be carefull to not let users crack your discounting (to get product > cheaper). > :-) > > Donovan > > > > Alan White wrote: > >> I don't suppose someone would be able to show me an example of adding the >> lineitem could they? Do I have to allocate a fictitious SKU number seeing >> as the Voucher doesn't actually reside in stock? >> >> Thanks >> Alan > ------------------------------------------------------------- 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/ Alan White

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:

[WriteFile] problems (1997) If search results are blank... (2003) webcat- multiple selection in input field (1997) How does WebCatalog search the database? (1997) [append] vs. [appendfile] delta + question? (1997) RE: Credit card processing - UK (1997) Setting up shop (1997) [WebDNA] improvements (2015) FM and Webcat together? (1998) change the number format (1997) Date Bug (1998) WebCatalog 4.0.1b1 is now available (2000) Re[2]: Charting records by state (2000) [protect] is protecting too much!!! (2000) Emailer setup (1997) WebCatalog can't find database (1997) Dumb Question about Docs (1997) PSC recommends what date format yr 2000??? (1997) PCS Frames-Default page is solution! (1997) hidden (phantom) file downloads (2000)