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 WebWarriors Pacific Coast Software | WebCatalog, WebCommerce Solution 11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMaster San Diego, CA 92128 | 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Where's Cart Created ? (Grant Hulbert 1997)
  2. Where's Cart Created ? (Sven U. Grenander 1997)
>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 WebWarriors Pacific Coast Software | WebCatalog, WebCommerce Solution 11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMaster San 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:

WebCat2b12 CGI Mac -- Problems propagating the cart through (1997) WebCatalog f2 Installation (1997) [WebDNA] Froala Editor working with WebDNA (2016) Bug or syntax error on my part? (1997) Simple way to create unique SKU (1997) European dates (1998) Safari cookies (2006) Strange Search Results (2004) flushdatabases (2000) RE: WebCatalog2 for NT Beta Request (1997) WCS Newbie question (1997) HomePage Caution (1997) [OT] Bookmarking code (2003) Email encryption (1998) webcat nt (1997) Major problem (1999) WebCat2b13MacPlugIn - [include] (1997) Database Upload (2000) BR (1997) Searchable list archive (1997)