Re2: frames & carts
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 10378
interpreted = N
texte = >>I have a page that utilizes frames. WC assigns a different cart # when >>you hit reload in the browser. Is there any way to make sure it assigns >>the same cart number?>>It's supposed to generate a different cart number when you reload a page >that doesn't explicitly set the cart...otherwise it would never assign a >new cart number to new visitors.OK.>>I am using the cart=[cart] command. Is this even necessary with WC2b12?>>You absolutely need to propagate the same cart using that technique once >you've given someone their first cart...but now with ACTIONs and Smart >Carts you don't need to explicitly send a $NewCart command -- when >WebCatalog sees a template with [cart] in it, and no cart=### in the >parameters, then it assumes you want a new cart. You can see this happen >in the GeneralStore example.>>Is your problem really with frames themselves? Perhaps each sub-frame is >getting a different cart # because you're not using
src=xx.tmpl?cart=[cart]> in the master frame container?Let me show you. Go to
Click the enter button. You will see a framed page.Click and hold down anywhere in the right hand frame and select new window with this frame.View document source and take a look at the cart #.Hit reload and the cart will stay the same.Now, close that window and go back to the original framed page.View frame source for that same frame & look at the cart #.Now hit reload. When you view src again, that frame will have a different cart number.This is bad. What if someone has made a few additions to their cart and then (for whatever reason) hit the reload button? They have to start all over. You can see this same example at
Am I not doing something right?--BenWebWright, Inc. Make a Presence.(409) 268-3022------------------------------------To leave this talk list send an email to macjordomo@smithmicro.comwith BODYunsubscribe WebDNA-Talk------------------------------------
Associated Messages, from the most recent to the oldest:
>>I have a page that utilizes frames. WC assigns a different cart # when >>you hit reload in the browser. Is there any way to make sure it assigns >>the same cart number?>>It's supposed to generate a different cart number when you reload a page >that doesn't explicitly set the cart...otherwise it would never assign a >new cart number to new visitors.OK.>>I am using the cart=[cart] command. Is this even necessary with WC2b12?>>You absolutely need to propagate the same cart using that technique once >you've given someone their first cart...but now with ACTIONs and Smart >Carts you don't need to explicitly send a $NewCart command -- when >WebCatalog sees a template with [cart] in it, and no cart=### in the >parameters, then it assumes you want a new cart. You can see this happen >in the GeneralStore example.>>Is your problem really with frames themselves? Perhaps each sub-frame is >getting a different cart # because you're not using src=xx.tmpl?cart=[cart]> in the master frame container?Let me show you. Go to Click the enter button. You will see a framed page.Click and hold down anywhere in the right hand frame and select new window with this frame.View document source and take a look at the cart #.Hit reload and the cart will stay the same.Now, close that window and go back to the original framed page.View frame source for that same frame & look at the cart #.Now hit reload. When you view src again, that frame will have a different cart number.This is bad. What if someone has made a few additions to their cart and then (for whatever reason) hit the reload button? They have to start all over. You can see this same example at Am I not doing something right?--BenWebWright, Inc. Make a Presence.(409) 268-3022------------------------------------To leave this Talk List send an email to macjordomo@smithmicro.comwith BODYunsubscribe WebDNA-Talk------------------------------------
ben
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:
Multiple Hideif peramiters (2001)
Dummy Credit Card Number for debug? (1997)
Duplicate Items in the Cart (1998)
/Page Editor Not found (1998)
File dates in WebCatalog .tmpl/.inc (1997)
Calculating multiple shipping... (1997)
Credit Card not accepted (1998)
serial number (1998)
Max Record length restated as maybe bug (1997)
WebCat2 Append problem (B14Macacgi) (1997)
[WriteFile] problems (1997)
Delayed Redirect (2000)
WebCatalog on LinuxPPC (2000)
looping table rows (1999)
[!] not working? (1999)
taxTotal, grandTotal (1997)
Announcement-WebCatalog 2.0 Released (1997)
Secure server question (1997)
WebCat2b13MacPlugIn - more [date] problems (1997)
Can WC remember people? (1998)