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 theshoppingcarts.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 howmany 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 sayscommand=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:>>