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:

Silly Question (1997) Cart/ Form Use (1998) $purchase vs [purchase] (1999) Multiple Newcarts (1996) TCPConnect & Post (2002) Email notification to one of multiple vendors ? (1997) how to do multiple prices/item? (1998) forced timeout? (1998) Time Display from Database (1997) Calculating Total QTY (1998) [WebDNA] Froala Editor working with WebDNA (2016) SOP for WebDNA talk (2004) Help name our technology! (1997) Can GMT be called from the OS ? (2004) [WebDNA] WebDNA not processing templates (2009) (1999) The beginning (1997) [WebDNA] client request (2010) searchable list archive (1997) Country & Ship-to address & other fields ? (1997)