Re: Where's Cart Created ?
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 10294
interpreted = N
texte = >The first change we want to make to the General Store structure is that >we want to know/track the geographic location of the visitor off the bat. >The reason for needing this information is that we ship virtually >everywhere and we want to be able to provide accurate shipping costs on >the fly as items are added to the shopping cart.If you look at www.club-mac.com you'll see we purposely designed the flow of that store so that when you're just throwing stuff in your cart you don't see the final totals...later, when they've decided to actually move forward with the purchase, you are asked for your zipcode. Part of it is psychological -- some people get scared off when asked too many questions up front. ClubMac stretches that process out a little more that I like, but that's their call....buuuut you can do it any way you like (see below)>What we are thinking is that we'd ask the visitor to just select the >location from a pop-up menu on the entry page (it's a list of 100+ >countries). The question is how to pass that information to the shopping >cart. We can't find where the shopping cart is created and assume that's >where we would pass the location information into the cart ?The answer is to use $ShowCart to set some value in the shopping cart, such as zip or header1 of something like that. /ShoppingCart.tmpl$ShowCart?cart=[cart]&zip=92128 will set the zip code field in the current shopping cart.>Where is the shopping cart created ? The entry page doesn't have a >NewCart command and we didn't see it on the search page either (where the >shopping cart is referenced).WebCat2 has a smart cart feature that automatically notices when a template has not been assigned a cart, so it makes one up automatically. That lets you put [cart] right on your home page (index.html) if you have .HTML set as a suffix-mapping for WebCatalog.Technically, if you go to a page with no cart number, like so/GeneralStore/Entry.tmplThen all the [cart] tags inside Entry.tmpl will be filled with a unique cart #But if you hit that same page with/GeneralStore/Entry.tmpl?cart=1234Then all the [cart] tags inside Entry.tmpl will be filled with 1234Grant Hulbert, V.P. Engineering | Tools for WebWarriorsPacific Coast Software | WebCatalog, WebCommerce Solution11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMasterSan Diego, CA 92128 |619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>The first change we want to make to the General Store structure is that >we want to know/track the geographic location of the visitor off the bat. >The reason for needing this information is that we ship virtually >everywhere and we want to be able to provide accurate shipping costs on >the fly as items are added to the shopping cart.If you look at www.club-mac.com you'll see we purposely designed the flow of that store so that when you're just throwing stuff in your cart you don't see the final totals...later, when they've decided to actually move forward with the purchase, you are asked for your zipcode. Part of it is psychological -- some people get scared off when asked too many questions up front. ClubMac stretches that process out a little more that I like, but that's their call....buuuut you can do it any way you like (see below)>What we are thinking is that we'd ask the visitor to just select the >location from a pop-up menu on the entry page (it's a list of 100+ >countries). The question is how to pass that information to the shopping >cart. We can't find where the shopping cart is created and assume that's >where we would pass the location information into the cart ?The answer is to use $ShowCart to set some value in the shopping cart, such as zip or header1 of something like that. /ShoppingCart.tmpl$ShowCart?cart=
[cart]&zip=92128 will set the zip code field in the current shopping cart.>Where is the shopping cart created ? The entry page doesn't have a >NewCart command and we didn't see it on the search page either (where the >shopping cart is referenced).WebCat2 has a smart cart feature that automatically notices when a template has not been assigned a cart, so it makes one up automatically. That lets you put
[cart] right on your home page (index.html) if you have .HTML set as a suffix-mapping for WebCatalog.Technically, if you go to a page with no cart number, like so/GeneralStore/Entry.tmplThen all the
[cart] tags inside Entry.tmpl will be filled with a unique cart #But if you hit that same page with/GeneralStore/Entry.tmpl?cart=1234Then all the
[cart] tags inside Entry.tmpl will be filled with 1234Grant Hulbert, V.P. Engineering | Tools for WebWarriorsPacific Coast Software | WebCatalog, WebCommerce Solution11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMasterSan Diego, CA 92128 |619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Grant Hulbert
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:2nd WebCatalog2 Feature Request (1996)
WebCat2.0 acgi vs plugin (1997)
[middle] (2000)
WTB WEBDNA Version 4.5 for OS X (2003)
database visibility (2000)
ShowNext Command (1997)
Photo Album (2000)
Clean Code: Rules for inserting keyboard returns? (1997)
Date Formats (1997)
WebCatalog for NT (1999)
To brighten your day... (2006)
dates and hex formatting (1997)
WebCat2: Items xx to xx shown, etc. (1997)
Possible Bug in 2.0b15.acgi (1997)
Extended [ConvertChars] (1997)
UPS (2003)
[item] appears after 'remove last item' ... (1997)
SetLineItem (1997)
Frames and WebCat (1997)
variables in [addlineitem] (1998)