Re: setting the price of goods after its added to the cart

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33754
interpreted = N
texte = I tried this but got the same problem.. maybe its wrong to try and change the cart price and display it within the same lineitems context.. for now i'm bypassing this by not using the cart price.. a bit messy but worksthanks for the help anywaysJason Tyler on 26/6/00 5:40 PM wrote:> >> I'm trying to change the price of items already in the cart using the >> setlineitem context. I want the price to be recalculated from formulas.db >> when the form is reloaded. The page shows the price of each lineitem >> within a showcart command.. and i want this to show the new price when >> the submit button is pressed but the problem is that it still shows the >> old price. >> Inside my showcart command and within the lineitems tag i have >> [setlineitem cart=[cart]&index=[lineindex]]price=[price][/setlineitem].. > >What you need to do is add the price change password, as set in the admin >area, to the tag above so it looks like this. > >[setlineitem >cart=[cart]&index=[lineindex]]price=[price]&password=XXXXXXXX[/setlineitem] > >This will allow you to override the price. > >-Jason Tyler >www.3ip.net > > >------------------------------------------------------------- >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://search.smithmicro.com/ ------------------------- Chamindu Haththotuwegama Woomera Net Solutions Sydney, Australia -------------------------------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: setting the price of goods after its added to the cart (Chamindu 2000)
  2. Re: setting the price of goods after its added to the cart (Jason Tyler 2000)
  3. setting the price of goods after its added to the cart (Chamindu 2000)
I tried this but got the same problem.. maybe its wrong to try and change the cart price and display it within the same lineitems context.. for now i'm bypassing this by not using the cart price.. a bit messy but worksthanks for the help anywaysJason Tyler on 26/6/00 5:40 PM wrote:> >> I'm trying to change the price of items already in the cart using the >> setlineitem context. I want the price to be recalculated from formulas.db >> when the form is reloaded. The page shows the price of each lineitem >> within a showcart command.. and i want this to show the new price when >> the submit button is pressed but the problem is that it still shows the >> old price. >> Inside my showcart command and within the lineitems tag i have >> [setlineitem cart=[cart]&index=[lineindex]]price=[price][/setlineitem].. > >What you need to do is add the price change password, as set in the admin >area, to the tag above so it looks like this. > >[setlineitem >cart=[cart]&index=[lineindex]]price=[price]&password=XXXXXXXX[/setlineitem] > >This will allow you to override the price. > >-Jason Tyler >www.3ip.net > > >------------------------------------------------------------- >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://search.smithmicro.com/ ------------------------- Chamindu Haththotuwegama Woomera Net Solutions Sydney, Australia -------------------------------------------------------------------------------------- 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://search.smithmicro.com/ Chamindu

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:

Country & Ship-to address & other fields ? (1997) WebCat2 - storing unformatted date data? (1997) Running _every_ page through WebCat ? (1997) Initiating NewCart (1997) WebDNA 4.5.1 Now Available (2003) WARNING: MacOS The installer is broken... (2000) 2.0 Info (1997) OT: Amazon Patents (2000) FW: Shipping calculations (1997) Can you do this??? and other stuff (1997) The [shownext] limitations (2002) Migrating to NT -Reply (1997) [ReturnRaw] and hiding FORM data (2003) CommandSecurity? (1997) Looking up two prices in database? (1997) A question on sub-categories (1997) [OT] Mom's gift (2006) Projects & Contractors (1997) Reversed words (1997) Shopping carts and reloading pages (1997)