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:

Help name our technology! (1997) Help returning tracking data from USPS website (2004) Blocking off access (2005) final on include (1997) RE: Formulas.db + Users.db (1997) Running _every_ page through WebCat ? (1997) ReturnRaw, download link for mov (2007) Emailer help....! (1997) NYC-based WebDNA programmers (2003) P.S.: WebDNA Hosting? (2003) WebCat2final1 crashes (1997) Dual processors? (2000) Bad URL reference? (1997) Looking for WebCat web hoster in Chicago/Illinois/Midwest (2000) WebCatalog2 Feature Feedback (1996) HideIf ip= OR ip= (1998) Clickable maps and WebCatalog? (1996) Am I going senile? (Price recalc based on quantity) (1997) Silly Question (1997) MasterCounter Help (1998)