Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47435
interpreted = N
texte = Joe R. Richardson wrote:>On 2/4/03 3:37 PM, Donovan wrote: > > > >>2.)This code: >>[showif [numlineitems]=0] >>Your cart is empty.
>>Please continue shopping.


>>[/showif] >> >>is said to be on the shoppingcarts.tpl page yet >>I haven't seen any showpage links to that page. >>Do you ever see your cart is empty. Please continue shopping on this >>page? >> >> > > This is just part of the test protocol I put together. [snip] > So, in answer to your question, ³your cart is empty² comes up. > Then I am not seeing the full code or something because I don't see anything linking to the shoppingcarts.tpl that would allow a [numlineitems].>>3)The reason you are seeing another lineitem when refreshing is that >>the add command is reenacting. All vars will be processed again upon a >>refresh. >> >> > > Yes, that is born out by the test grid, but why does it seem to be one >step out of sync? > No it is not. It is only because there is an add command linking to that page. No matter how many times you refresh that page, it will keep adding products.If you want to test to make sure the lineitem gets there... Go to the site. shop for an item. When you get to the cart it won't be there. Just take out the part of the URL that says command=add& and hit return and you will see your product in the lineitems.>>4)When using forms I like to add a unique URL function... IE >>your: >>
>> >>can turn into: >> >> >>What this can do is help with caching and proxying issues. >> >> > > Forgive my ignorance, but I have no idea what >ra=[random][random][random]. > its junk. It just tells the browser and/or proxy that this is a new page being requested. (unique everytime)>[snip] > > > >>5)My guess: >>try number 4 and see what happens. >> >> > > I did, but got the same results. =( > O.K., its good practice anyway IMHO.> > >>Rest assured that the item *HAS* been entered in. Its just that you >>page layout code isn't >>seeing it... whether it isn't having time to grab the new info or >>whether there is a caching issue. >> >> > > Perhaps someone can make sense out of the test grid. I have been >wondering if sending the ADD command through a DNA page which doesnıt show >but redirects to ShoppingCart.tpl, might put it back in sync. > This *is* a solution. I didn't suggest it however because you should be able to get it to work on this single page. AND, there are some wierd things on this page that should be looked at anyway. > It is sure frustrating trying to take a working store from WC 2 to WC 4 >only to find it no longer works. > There are some major differences... specially with the use of globals directories... Also, there might be commands/contexts that phase out.>Thanks for the help, Donovan. > No Problem. My issue is that I can't see all the code so it is hard to help you. Also, I don't have all the time in the world (have to make a living).I am thinking you are close (otheres may have time to spot it) but if you need me to look at it further please contact me off list.Donovan> >-- -Donovan Brooke -Administrator of IT / -Assc. Art Director -Creative Services -Epsen Hillmer Graphics-402.829-0123 ------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Donovan 2003)
  2. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Joe R. Richardson 2003)
  3. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Joe R. Richardson 2003)
  4. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (charles kline 2003)
  5. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Donovan 2003)
  6. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Joe R. Richardson 2003)
  7. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Donovan 2003)
  8. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Joe R. Richardson 2003)
  9. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Donovan 2003)
  10. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Joe R. Richardson 2003)
  11. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Donovan 2003)
  12. Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Joe R. Richardson 2003)
Joe R. Richardson wrote:>On 2/4/03 3:37 PM, Donovan wrote: > > > >>2.)This code: >>[showif [numlineitems]=0] >>Your cart is empty.
>>Please continue shopping.


>>[/showif] >> >>is said to be on the shoppingcarts.tpl page yet >>I haven't seen any showpage links to that page. >>Do you ever see your cart is empty. Please continue shopping on this >>page? >> >> > > This is just part of the test protocol I put together. [snip] > So, in answer to your question, ³your cart is empty² comes up. > Then I am not seeing the full code or something because I don't see anything linking to the shoppingcarts.tpl that would allow a [numlineitems].>>3)The reason you are seeing another lineitem when refreshing is that >>the add command is reenacting. All vars will be processed again upon a >>refresh. >> >> > > Yes, that is born out by the test grid, but why does it seem to be one >step out of sync? > No it is not. It is only because there is an add command linking to that page. No matter how many times you refresh that page, it will keep adding products.If you want to test to make sure the lineitem gets there... Go to the site. shop for an item. When you get to the cart it won't be there. Just take out the part of the URL that says command=add& and hit return and you will see your product in the lineitems.>>4)When using forms I like to add a unique URL function... IE >>your: >> >> >>can turn into: >>[random][random][random] method=post> >> >>What this can do is help with caching and proxying issues. >> >> > > Forgive my ignorance, but I have no idea what >ra=[random][random][random]. > its junk. It just tells the browser and/or proxy that this is a new page being requested. (unique everytime)>[snip] > > > >>5)My guess: >>try number 4 and see what happens. >> >> > > I did, but got the same results. =( > O.K., its good practice anyway IMHO.> > >>Rest assured that the item *HAS* been entered in. Its just that you >>page layout code isn't >>seeing it... whether it isn't having time to grab the new info or >>whether there is a caching issue. >> >> > > Perhaps someone can make sense out of the test grid. I have been >wondering if sending the ADD command through a DNA page which doesnıt show >but redirects to ShoppingCart.tpl, might put it back in sync. > This *is* a solution. I didn't suggest it however because you should be able to get it to work on this single page. AND, there are some wierd things on this page that should be looked at anyway. > It is sure frustrating trying to take a working store from WC 2 to WC 4 >only to find it no longer works. > There are some major differences... specially with the use of globals directories... Also, there might be commands/contexts that phase out.>Thanks for the help, Donovan. > No Problem. My issue is that I can't see all the code so it is hard to help you. Also, I don't have all the time in the world (have to make a living).I am thinking you are close (otheres may have time to spot it) but if you need me to look at it further please contact me off list.Donovan> >-- -Donovan Brooke -Administrator of IT / -Assc. Art Director -Creative Services -Epsen Hillmer Graphics-402.829-0123 ------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Donovan

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:

RE: Formulas.db + Users.db (1997) Customer - again (1998) Sku numbers (1997) Special characters & [sendmail] (1998) WebCat2 several catalogs? (1997) New cart in ShoppingCarts (2003) HTTP upload (2000) Re:Emailer and encryption (1997) Updating checkboxes made easy !!! (1998) Is this possible, WebCat2.0 and checkboxes (1997) Math function in Formula.db (1997) Supressing Error Messages (1998) F2 to F3 rocky transition (1997) frames & carts (1997) Frames and WebCat (1997) What am I missing (1997) Search for starts with and ends with? (2003) Image maps/Webcat (1997) There's a bug in the math context ... (1997) Major bug report on rootbeer (1997)