quantity minimum problem

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12369
interpreted = N
texte = I am moving along with our store, but have run into an invoice problems and lineindex.We have a special price for bulk orders on certain items. I am trying to figure out how to make it so that the [quantity] has to be a certain minimum when ordering the discount items.On my cart.tmpl page, I have the following entered so that purchaser will automatically have 50 or 40 in the quantity box, depending on the sku-item.This works fine. However, problems happen when moving on to the invoice.tmpl page.To make sure that the customer did not re-enter a number lower than 50 or 40 respectively, I put the following WEBDNA on the invoice.tmpl page in the lineindex [quantity] area.[showif [sku]=101&[quantity]<50]50[/showif][showif [sku]=201&[quantity]<40]40[/showif]Obviously I am programming something wrong because it gives me 5040 as a result in the invoice page.Please advise.Kevin Associated Messages, from the most recent to the oldest:

    
  1. Re: quantity minimum problem (Grant Hulbert 1997)
  2. Re: quantity minimum problem (Kevin Furuta 1997)
  3. Re: quantity minimum problem (Grant Hulbert 1997)
  4. Re: quantity minimum problem (Kevin Furuta 1997)
  5. Re: quantity minimum problem (Grant Hulbert 1997)
  6. Re: quantity minimum problem (Kevin Furuta 1997)
  7. Re: quantity minimum problem (Kenneth Grome 1997)
  8. quantity minimum problem (Kevin Furuta 1997)
I am moving along with our store, but have run into an invoice problems and lineindex.We have a special price for bulk orders on certain items. I am trying to figure out how to make it so that the [quantity] has to be a certain minimum when ordering the discount items.On my cart.tmpl page, I have the following entered so that purchaser will automatically have 50 or 40 in the quantity box, depending on the sku-item.This works fine. However, problems happen when moving on to the invoice.tmpl page.To make sure that the customer did not re-enter a number lower than 50 or 40 respectively, I put the following WEBDNA on the invoice.tmpl page in the lineindex [quantity] area.[showif [sku]=101&[quantity]<50]50[/showif][showif [sku]=201&[quantity]<40]40[/showif]Obviously I am programming something wrong because it gives me 5040 as a result in the invoice page.Please advise.Kevin Kevin Furuta

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:

Shipcost formula (2004) E-Mailer (WebCatb15acgiMac) (1997) Sense/Disallow HTML tags during $Append (1997) results in a table (2000) Clearly.home (1998) Problem with summary on date / inconsequent webcat behaviour (1998) Summing fields (1997) Re WebDNA has reached it connection limit (2004) Sorting a Search... (1998) WebCat2 several catalogs? (1997) [SHOWNEXT] Examples (1997) Database Updates (1997) Installer AppleScript (2000) using showpage and showcart commands (1996) Cross platform problem with Convertchars (2002) [OT] Bad Hard Drive? (2003) Explorer 3.0/ Access Denied! (1997) PowerKey and PageSentry not playing nice (2000) Append..... doesn't (2000) Searchable list mail via wwebcat (1998)