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:

Banner Ad example (Typhoon) and WebCatalog (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) Displaying xx number of characters (1997) TCPConnect strange behaviour (2004) Free shipping (2000) Large founditems loops (2000) WCS Newbie question (1997) Getting around DOS filenames (2000) [ModDate] & [ModTime] ? (1997) RE: WebCat and image maps (1997) Multiple security dbs (1997) Emailer help....! (1997) ListFields and [name] (1997) WebCat2 beta 11 - new prefs ... (1997) Showif, Hideif reverse logic ? (1997) [protect] error page (1997) select multiple (1997) Email within tmpl ? (1997) WebCat2 - Getting to the browser's username/password data (1997) problems with 2 tags shakur (1997)