Re:

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47327
interpreted = N
texte = Mark,I know this goes beyond your specific question, but I am currently upgrading an old store I built and I opted to put a 'mini-cart' on each page by recycling the code from the checkout page: Go ahead and fool with it-- order stuff if you want also! :)https://www.casinocenter.com/store/I am still working on it as we speak so please keep that in mind if you have any criticisms... :)The code for the mini-cart is as follows, and I pullit via an [include] onto every page:========== BEGIN MINI-CART CODE =========== [orderfile cart=[cart]][showif [numlineitems]=0] Your cart is empty.
Please continue shopping.


[/showif][hideif [numlineitems]=0]
[lineitems] [/lineitems]
QtyProductTotal
[quantity][getchars start=1&end=20][lookup db=admin/products.db&lookinfield=SKU&value=[url][sku][/url]&returnfield=TITLE][/getchars] ...[lookup db=admin/prefs.db&lookinfield=pref&value=CURRENCY&returnfield=value][format .[lookup db=admin/prefs.db&lookinfield=pref&value=CURRENCY_ACCURACY&returnfield=value]f][math][quantity]*[price][/math][/format]
[/hideif]========== END MINI-CART CODE ===========HTH-Dan ------------------------------------------------------------ http://www.StrongGraphicDesign.com (208) 319-0137 | Toll-free p/f 877-561-1656 ------------------------------------------------------------On Fri, 31 Jan 2003 08:37:22 -0800 Mark D. Laws wrote: >The built in options in Webcatalog for add to cart are 1) take the customer to the shopping cart >(checkout.tpl), or 2) take them back to the home page (default.tpl). > >Anyone know of a way to keep the customer on the current page and display a little item has been >added to cart' message? >-- > > > >Mark D. Laws >Information Systems and eCommerce Manager >Campus Computer Store, The Scholar's Workstation >University of California, Berkeley >2200 University Hall, Rm 41 >Berkeley, CA 94720 > >voice: (510) 642-3135 >fax: (510) 643-6201 > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://webdna.smithmicro.com/------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
Mark,I know this goes beyond your specific question, but I am currently upgrading an old store I built and I opted to put a 'mini-cart' on each page by recycling the code from the checkout page: Go ahead and fool with it-- order stuff if you want also! :)https://www.casinocenter.com/store/I am still working on it as we speak so please keep that in mind if you have any criticisms... :)The code for the mini-cart is as follows, and I pullit via an [include] onto every page:========== BEGIN MINI-CART CODE =========== [orderfile cart=[cart]][showif [numlineitems]=0] Your cart is empty.
Please continue shopping.


[/showif][hideif [numlineitems]=0]
[cart]> [lineitems] [/lineitems]
QtyProductTotal
[quantity][cart]&sku=[sku]>[getchars start=1&end=20][lookup db=admin/products.db&lookinfield=SKU&value=[url][sku][/url]&returnfield=TITLE][/getchars] ...[lookup db=admin/prefs.db&lookinfield=pref&value=CURRENCY&returnfield=value][format .[lookup db=admin/prefs.db&lookinfield=pref&value=CURRENCY_ACCURACY&returnfield=value]f][math][quantity]*[price][/math][/format]
[/hideif]========== END MINI-CART CODE ===========HTH-Dan ------------------------------------------------------------ http://www.StrongGraphicDesign.com (208) 319-0137 | Toll-free p/f 877-561-1656 ------------------------------------------------------------On Fri, 31 Jan 2003 08:37:22 -0800 Mark D. Laws wrote: >The built in options in Webcatalog for add to cart are 1) take the customer to the shopping cart >(checkout.tpl), or 2) take them back to the home page (default.tpl). > >Anyone know of a way to keep the customer on the current page and display a little item has been >added to cart' message? >-- > > > >Mark D. Laws >Information Systems and eCommerce Manager >Campus Computer Store, The Scholar's Workstation >University of California, Berkeley >2200 University Hall, Rm 41 >Berkeley, CA 94720 > >voice: (510) 642-3135 >fax: (510) 643-6201 > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://webdna.smithmicro.com/------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Dan Strong

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:

OT: Non US IP #'s (2003) [ShowNext] feature in 2.0 (1997) displaying New products (Yikes! it's Fixed!) (1997) Netscape v. IE (1997) sort problems....bug or brain fart? (1997) For those of you not on the WebCatalog Beta... (1997) attachment (2000) WebCatalog/Mac 2.1b2 New Features (1997) [OT] Linux -> Winderz (2005) Running _every_ page through WebCat ? (1997) [ModDate] & [ModTime] ? (1997) aol (2000) sandboxes with 6.0 (2004) WebCatb15 Mac CGI -- [purchase] (1997) Great product and great job ! (1997) foriegn characters and webcatalog (1997) Another strange one (2000) Secure server question (1997) [WriteFile] problems (1997) Memory leak with text variables (1998)