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:

problems with 2 tags (1997) Country & Ship-to address & other fields ? (1997) Possible Bug in 2.0b15.acgi (1997) Trouble with Showif and Search (1998) WebSTAR 2.1 freezes my Mac (1997) Milliseconds (1998) [showif] results returned... (2003) Help! WebCat2 bug (1997) Variable Sizes, Widths and Colors (2000) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) WCS Newbie question (1997) RE: Tax and ShipCost Problem (1997) Further on formula.db failure to calculate shipCost (1997) Emailer (WebCat2) (1997) [OT] Happy Turkey Day! (2003) RE: [WebDNA] Poll: Cloud hosting (2016) Nested vs conditional (1997) problem serving foreign languages text (1997) Multiply prices (1997) Change to 5.0 per website licensing (2003)