[WebDNA] Apply discount using a line item
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 106545
interpreted = N
texte = HiI have a very old shopping site that was loosely based on a sitebuilder =template and my customer has requested an ability to give users a 15% =early order facility. Basically the site is for catering requirements =for exhibitions, so if a customer orders a certain amount of time before =the exhibition they get a discount.I had started adding code to the totals bit but I'm wondering if it =would be easier to have a line item that was a discount item instead. =That would save me having to re-write a load of reports stuff at the =backend.So thinking aloud I would get to the checkout, fill in the address =stuff, proceed to the invoice and in doing so automatically add a line =item with a negative amount. My question is, if I was doing this how can =I override the price of a lineitem as I add it to the cart as the =discount would obviously vary depending on the size of their order?Or does anyone have any better ideas, I need a simple solution as they =are not wanting a bill for my time.Thanks for any help.Cheers=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSteve Craig - Asylum Interactive LtdTel +44 1330 860550 Fax +44 1330 860880=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dhttp://www.asylumweb.comEmail: steve@asylumweb.comSkype: s.craig - iChat: steve.craig=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Associated Messages, from the most recent to the oldest:
HiI have a very old shopping site that was loosely based on a sitebuilder =template and my customer has requested an ability to give users a 15% =early order facility. Basically the site is for catering requirements =for exhibitions, so if a customer orders a certain amount of time before =the exhibition they get a discount.I had started adding code to the totals bit but I'm wondering if it =would be easier to have a line item that was a discount item instead. =That would save me having to re-write a load of reports stuff at the =backend.So thinking aloud I would get to the checkout, fill in the address =stuff, proceed to the invoice and in doing so automatically add a line =item with a negative amount. My question is, if I was doing this how can =I override the price of a lineitem as I add it to the cart as the =discount would obviously vary depending on the size of their order?Or does anyone have any better ideas, I need a simple solution as they =are not wanting a bill for my time.Thanks for any help.Cheers=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSteve Craig - Asylum Interactive LtdTel +44 1330 860550 Fax +44 1330 860880=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dhttp://www.asylumweb.comEmail: steve@asylumweb.comSkype: s.craig - iChat: steve.craig=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Steve Craig
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:
multiple databases (1997)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Variables (1999)
WebCat & WebTen (1997)
RE: protect tag on NT (1997)
[include file=filename.inc&strip=t] (2002)
Re:Can this be done? (1997)
Access Denied! But why? (1997)
PCS Frames (1997)
[taxrate] question (1997)
Date Calulation (1997)
Country & Ship-to address & other fields ? (1997)
2.0 Info (1997)
How About Credit Card Transactions (1998)
RE: CloseDatabase (1997)
Caching problem... (2000)
Sample Tea Room Search Error (1997)
[WebDNA] Search using CL (2017)
Country & Ship-to address & other fields ? (1997)
ups quickcost [repost] (1999)