Re: Passing [quantity]

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35015
interpreted = N
texte = >Create a loop at the top of your invoice page, after they have the >chance to change the quantity but before they complete the purchase. >Use a [lineitems] loop and reset the price based on the quantity in the >cart at that time. This way, even if they go back to the shopping_cart >page and adjust the quantity, you will always have a chance to correct >the price.In fact, I already had a [lineitems] loop there. I tried modifying it by adding &price=[price] and &[interpret] price=[price][/interpret]I also used price=__[price] after setting that on the Results.tpl page.Didn't work. >You can also do the price update at the same time they perform change >the quantity. Remember that when changing the price, you need to use a >price-change password. It is not a security issue because it is a >context rather than a command (the user never can see the password). >I tried that, too, but didn't figure out how to get it to work. I set the password in Preferences and used &password=[password]&price=[price] and &password=secret&price=[price]I'm sure neither of those is the correct syntax, but before I could study it more, I hit on another idea.On ShoppingCart.tpl, I changed to [quantity]This is not an elegant solution, but it works.It passes [quantity] to Invoice.tpl and ShoppingCart.tpl, but doesn't allow users to change the value. They can delete the item from the cart and then add it back again with a different quantity, but can't get an improper quantity discount by changing [quantity]. It also eliminates the mysterious 8-digit number problem.Glenn ------------------------------------------------------------- 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: Passing [quantity] (Glenn Busbin 2000)
  2. Re: Passing [quantity] (Glenn Busbin 2000)
  3. Re: Passing [quantity] (John Peacock 2000)
  4. Passing [quantity] (Glenn Busbin 2000)
  5. Passing [quantity] (Glenn Busbin 2000)
>Create a loop at the top of your invoice page, after they have the >chance to change the quantity but before they complete the purchase. >Use a [lineitems] loop and reset the price based on the quantity in the >cart at that time. This way, even if they go back to the shopping_cart >page and adjust the quantity, you will always have a chance to correct >the price.In fact, I already had a [lineitems] loop there. I tried modifying it by adding &price=[price] and &[interpret] price=[price][/interpret]I also used price=__[price] after setting that on the Results.tpl page.Didn't work. >You can also do the price update at the same time they perform change >the quantity. Remember that when changing the price, you need to use a >price-change password. It is not a security issue because it is a >context rather than a command (the user never can see the password). >I tried that, too, but didn't figure out how to get it to work. I set the password in Preferences and used &password=[password]&price=[price] and &password=secret&price=[price]I'm sure neither of those is the correct syntax, but before I could study it more, I hit on another idea.On ShoppingCart.tpl, I changed to [quantity]This is not an elegant solution, but it works.It passes [quantity] to Invoice.tpl and ShoppingCart.tpl, but doesn't allow users to change the value. They can delete the item from the cart and then add it back again with a different quantity, but can't get an improper quantity discount by changing [quantity]. It also eliminates the mysterious 8-digit number problem.Glenn ------------------------------------------------------------- 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/ Glenn Busbin

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 prices (1997) Targeting [redirect] to a frame? (1998) select multiple (1997) item sorting (1997) AppleScript does not work properly ... (2000) Multiple prices (1997) Showif, Hideif reverse logic ? (1997) [WebDNA] Looking for WebDNA help (2013) WebCat2 as a chat server? (1997) WC2b15 - [HTMLx]...[/HTMLx] problems SOLVED! (1997) [WebDNA] Page close data (2014) [include] and v.email (1998) Bug when including a db file & [platform] (2000) Cart Question (1998) WebDNA on a Raq4i (2003) quantity minimum problem (1997) Anybody see this before? (2006) [WebDNA] New Years Wish... WebDNA (2009) OFF-TOPIC: Check www.godaddy.com for me ... (2003) in conversions.db crashes unix webcat (1999)