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 = 33681
interpreted = N
texte = > 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/ 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'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/ Jason Tyler

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:

[input] questions (1997) Sorting by SKU Not Working (1998) Set Header Context (1998) Re:One more time (1997) Banner DNA (1997) WebMerchant and Mac Auth Hub Help Please (1999) A multi-processor savvy WebCatalog? (1997) Database Helper missing? (2000) WebCatalog 2.0 b 15 mac (1997) [BULK] [WebDNA] An actual attempt to get WebDNA and MAMP Pro to work - assistance needed (2018) Instructions for Digest (1997) Error Lob.db records error message not name (1997) Sendmail strangie (2002) PIXO support (1997) PSC recommends what date format yr 2000??? (1997) Re:2nd WebCatalog2 Feature Request (1996) multiple search commands (1997) Limit to variables passed on to next tpl? (1998) Setting up shop (1997) [SearchString] usage (1997)