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:

Europe, (1998) Tech support (2000) Adding a product from another site (1997) Error handling for accountNum (1997) WebCatalog and Dreamweaver (1999) GD Spam (2003) ListFiles and .DS_Store (2004) Dummy Credit Card Number for debug? (1997) Multiple prices (1997) HMAC-MD5 hash -- what the... (2003) WebCatalog and WebMerchant reviewed by InfoWorld (1997) Hiding HTML and page breaks (1997) WebDNA Promo Sound Bite (2003) cybercash (2002) SiteEdit Pro Update Announcement (1997) Script install tgz for WebCat 4.02 (2003) [SHOWIF] (1997) Euro WebDNA Conference (2004) [WebDNA] WebDNA AJAX_Fileuploader (2013) Multiple prices (1997)