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:

Looking up two prices in database? (1997) Max Record length restated as maybe bug (1997) Math (1997) Pgp&emailer (1997) Possible Bug in 2.0b15.acgi (1997) [OT] Passing a WebDNA variable through flash (2004) PCS Frames (1997) back button loses cart (2000) Caching problem... (2000) Summary search -- speed (1997) converchars in sendmail context.... (2004) Up and running ... at last !! (1997) RE: How to verify email address (1997) two of the same named db's open at once (1998) Re:Virtual hosting and webcatNT (1997) Missing something simple?? (1998) Username for Admin Group (1997) anyone integrated inventory w/ storebuilder? (2003) ShowNext for method=POST (1997) all records returned. (1997)