Re: Shopping carts and reloading pages
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 11782
interpreted = N
texte = >If I have been following this thread correctly, a user who *does* return to>the front door would mess up the shopping cart value. Is this correct?Yes they would get a new cart number. In general, any URL that does not contain an explicit cart=xxx in it will cause a new cart# to be generated in that page's [cart] tags.But sometimes you want that: when you are done shopping and have purchased something, you need to go back to the front door and get a new cart if you want to shop some more. The old one is waiting to be processed and is not allowed to be used again.An alternative would be to have your customers register with a username/password which is then used as a lookup into a database for some kind of permanent cart id. Then you'd protect every page in your site with a forced username dialog so no matter how many times they reload or jump into the middle, they'd get the same id.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>If I have been following this thread correctly, a user who *does* return to>the front door would mess up the shopping cart value. Is this correct?Yes they would get a new cart number. In general, any URL that does not contain an explicit cart=xxx in it will cause a new cart# to be generated in that page's
[cart] tags.But sometimes you want that: when you are done shopping and have purchased something, you need to go back to the front door and get a new cart if you want to shop some more. The old one is waiting to be processed and is not allowed to be used again.An alternative would be to have your customers register with a username/password which is then used as a lookup into a database for some kind of permanent cart id. Then you'd protect every page in your site with a forced username dialog so no matter how many times they reload or jump into the middle, they'd get the same id.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/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:
[WebDNA] WebDNA 7.1 (2012)
Locking up with WebCatalog... (1997)
[WebDNA] Barcode (2014)
emailer not mailing (2004)
Spawning Holdup? (2000)
WebCat2b12 forgets serial # (1997)
Seattle based Webcatters? (2000)
[WebDNA] feature requests (2008)
WC hosting services required (1998)
WC2.0 Memory Requirements (1997)
Add to Cart & List of Products (1997)
Almost a there but..bye bye NetCloak (1997)
Using [showif] (2000)
[cart] not being interpreted inside [founditems] (1997)
Colors in cart (2002)
Multiple 'Users.db' files not possible (1997)
forms and variables (1998)
Converting characters to numbers ... (1997)
HELP! Search finding too much! (1998)
Looking for a host (1997)