Re: Inventory Adjustment

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 29350
interpreted = N
texte = As Ken is saying... Inv is not an orderfile variable so to get a value for Inv it has to be coming from a database (and then you get it with a [lookup] or [search]), or a formvariable (do you pass it into ShoppingCart.tpl?), or a hand-set [math] or [text].How you are realizing a value for [Inv] on ShoppingCarts.tpl? Via one of the above methods?-JohnGlenn Busbin wrote:> on 03/19/00 8:47 PM, John Butler at john@feeling-goods.com wrote: > > > But you are > > missing the ¬Found=xxx in the [lookup]. maybe that is all it needs. > > I tried that, but got the same results. > > >You > > originally had the [replace] inside a [lineitems]? > > Yes. I also tried it outside a [lineitems] with just one item. Same results. > > > Make sure that all the variable > > values you think are available to you within the [replace] actually are > > available. > > Now this is a problem. The values for Inv are found on some pages, but not > on others even though they all use [lineitems]. > > On the ShoppingCart.tpl page, everything, including the values for Inv, > display fine. > > [lineItems] > > SIZE=-1>[lineIndex] > [SKU] > [Name]
> [CommonName] > [Size] > NAME=quantity[lineIndex] SIZE=3 VALUE=[quantity]> > [Inv] > $[format > 6.2f][price][/format] > HREF=ShoppingCart.tpl?command=remove&db=POL.db&index=[lineIndex]&cart=[cart > ]>Remove it
> from your
> Cart
> > [/lineItems] > > ---------------------------------------- > But on the Invoice.tpl page, everything EXCEPT the Inv values display ok. On > this page, all I get to appear is [Inv]. > > [lineItems] > > [lineIndex] > [sku]  > [textA] > [quantity] > [Inv] > $[price] > $[format > .2f][math][quantity]*[price][/math][/format] > > [/lineItems] > > ---------------------------------------- > The same hold true on the ThankYou.tpl page. Everything displays properly > except the Inv value. All I get to appear is [Inv]. This is the page on > which I want to deduct ordered items from inventory. > > [lineItems] > > NAME=textA[lineIndex] VALUE=[name]>[lineindex] > [sku] > [textA] > [quantity] > [Inv] > $[price] > $[format > .2f][math][quantity]*[price][/math][/format] > > [/lineItems] > > So what's the difference? Why is Inv found on one page, but not on others? > > > Do some simple tests with hard coded values then add variables back one at a > >time to see where it is breaking. > > I tried that, but since the field for Inv isn't found on some pages, I'm not > getting anything that will help solve the problem. > > This is a major roadblock. I'd appreciate any help I can get. > > Thanks, > 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 ------------------------------------------------------------- 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 Associated Messages, from the most recent to the oldest:

    
  1. Re: Inventory Adjustment SOLUTION (John Butler 2000)
  2. Re: Inventory Adjustment SOLUTION (Glenn Busbin 2000)
  3. Re: Inventory Adjustment (Glenn Busbin 2000)
  4. Re: Inventory Adjustment (John Butler 2000)
  5. Re: Inventory Adjustment (Kenneth Grome 2000)
  6. Re: Inventory Adjustment (Glenn Busbin 2000)
  7. Re: Inventory Adjustment (John Butler 2000)
  8. Re: Inventory Adjustment (Glenn Busbin 2000)
  9. Re: Inventory Adjustment (John Butler 2000)
  10. Inventory Adjustment (Glenn Busbin 2000)
As Ken is saying... Inv is not an orderfile variable so to get a value for Inv it has to be coming from a database (and then you get it with a [lookup] or [search]), or a formvariable (do you pass it into ShoppingCart.tpl?), or a hand-set [math] or [text].How you are realizing a value for [Inv] on ShoppingCarts.tpl? Via one of the above methods?-JohnGlenn Busbin wrote:> on 03/19/00 8:47 PM, John Butler at john@feeling-goods.com wrote: > > > But you are > > missing the ¬Found=xxx in the [lookup]. maybe that is all it needs. > > I tried that, but got the same results. > > >You > > originally had the [replace] inside a [lineitems]? > > Yes. I also tried it outside a [lineitems] with just one item. Same results. > > > Make sure that all the variable > > values you think are available to you within the [replace] actually are > > available. > > Now this is a problem. The values for Inv are found on some pages, but not > on others even though they all use [lineitems]. > > On the ShoppingCart.tpl page, everything, including the values for Inv, > display fine. > > [lineitems] > > SIZE=-1>[lineIndex] > [SKU] > [Name]
> [CommonName] > [Size] > NAME=quantity[lineIndex] SIZE=3 VALUE=[quantity]> > [Inv] > $[format > 6.2f][price][/format] > HREF=ShoppingCart.tpl?command=remove&db=POL.db&index=[lineIndex]&cart=[cart > ]>Remove it
> from your
> Cart
> > [/lineItems] > > ---------------------------------------- > But on the Invoice.tpl page, everything EXCEPT the Inv values display ok. On > this page, all I get to appear is [Inv]. > > [lineitems] > > [lineIndex] > [sku]  > [textA] > [quantity] > [Inv] > $[price] > $[format > .2f][math][quantity]*[price][/math][/format] > > [/lineItems] > > ---------------------------------------- > The same hold true on the ThankYou.tpl page. Everything displays properly > except the Inv value. All I get to appear is [Inv]. This is the page on > which I want to deduct ordered items from inventory. > > [lineitems] > > NAME=textA[lineIndex] VALUE=[name]>[lineindex] > [sku] > [textA] > [quantity] > [Inv] > $[price] > $[format > .2f][math][quantity]*[price][/math][/format] > > [/lineItems] > > So what's the difference? Why is Inv found on one page, but not on others? > > > Do some simple tests with hard coded values then add variables back one at a > >time to see where it is breaking. > > I tried that, but since the field for Inv isn't found on some pages, I'm not > getting anything that will help solve the problem. > > This is a major roadblock. I'd appreciate any help I can get. > > Thanks, > 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 ------------------------------------------------------------- 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 John Butler

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:

changing order number (1998) OR-searching (2000) Conditional searching & displaying (1997) Search results templates (1996) Showif, Hideif reverse logic ? (1997) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) Search Question (2003) Using Cookie for client specific info? (1997) executing via commandline (2003) We are searching (2005) Initiating NewCart (1997) Re:Hideif / Showif (1998) db caching in bizarre ways (2001) Need WebDNA that crashes server for testing (2000) Re:Emailer setup (1997) 2.0Beta Command Ref (can't find this instruction) (1997) Show shoppingcart after remove last item (1997) Still search problems! (1999) Multi Actions (1999) How to Display text in empty fields (1997)