Re: quantity limit

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16707
interpreted = N
texte = >Since the launch of our store, we have had only one product, and it was >easy to set the limit in quantity of our product with a [showif]. However, >we are now going to add a second product and soon a third. > >But still we can only ship out in total quantities of 5 and I am having >trouble coding my invoice page, where it will limit the total quantity to >be no more than 5. > >For instance, if a customer wanted 3 of PRODUCT_A and 3 of of PROUCT_B, >then my invoice page would give out an error saying Sorry we cannot ship >more than five boxes total. But, if the total of the above added up to >3+2, then that would be fine and the invoice page would proceed to process >the order. > >Any suggestions? Sure. Forget about that 5 item limit, and ship as many items as the customer wants to buy! :)No, seriously, if you *really* need to limit the number of items per order to 5, you need to change the Invoice template as follows:[showif [numberOfItemsInTheCart]<6] Put all the stuff that's in your current Invoice template here. [/showif][hideif [numberOfItemsInTheCart]<6] Sorry, you have more items in your cart than we can ship at one time. Please use your browser's Back button to go back and set the total number of items in this order to 5 or less, then you may proceed with your order. [/hideif]By changing your Invoice template as shown here, all that's left is to replace the [numberOfItemsInTheCart] tags above with some WebDNA code that counts the number of items in the cart ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: quantity limit (Kenneth Grome 1998)
  2. quantity limit (Kevin Furuta 1998)
>Since the launch of our store, we have had only one product, and it was >easy to set the limit in quantity of our product with a [showif]. However, >we are now going to add a second product and soon a third. > >But still we can only ship out in total quantities of 5 and I am having >trouble coding my invoice page, where it will limit the total quantity to >be no more than 5. > >For instance, if a customer wanted 3 of PRODUCT_A and 3 of of PROUCT_B, >then my invoice page would give out an error saying Sorry we cannot ship >more than five boxes total. But, if the total of the above added up to >3+2, then that would be fine and the invoice page would proceed to process >the order. > >Any suggestions? Sure. Forget about that 5 item limit, and ship as many items as the customer wants to buy! :)No, seriously, if you *really* need to limit the number of items per order to 5, you need to change the Invoice template as follows:[showif [numberOfItemsInTheCart]<6] Put all the stuff that's in your current Invoice template here. [/showif][hideif [numberOfItemsInTheCart]<6] Sorry, you have more items in your cart than we can ship at one time. Please use your browser's Back button to go back and set the total number of items in this order to 5 or less, then you may proceed with your order. [/hideif]By changing your Invoice template as shown here, all that's left is to replace the [numberOfItemsInTheCart] tags above with some WebDNA code that counts the number of items in the cart ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

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:

Problems searching from a FORM (1997) Alternative to Authorize.net (2002) eMail not being sent (1999) WCS Newbie question (1997) Request Time Out (1997) Running 2 two WebCatalog.acgi's (1996) more cookie crumbling (1999) WebCat2b13MacPlugIn - More limits on [include] (1997) [searchString] (1997) tcpconnect/tcpsend frustrations (2002) [TCPSend] and whois? (1999) server 2003 weirdness (2004) Append command (1999) access denied problem (1997) [WebDNA] improvements (2015) Help name our technology! I found it (1997) Sendmail not sending (2004) Pithy questions on webcommerce & siteedit (1997) $Append for Users outside the ADMIN group (1997) Calculating multiple shipping... (1997)