Community Forums 

Main Content

A global "View Shopping Cart" link with the "Continue Shopping" to go back to the previous page.

    Jul 21 2011 21:46:32

    #1

    Cousin Jack

    Join date : 2011-07-21      Posts : 20

    I would like to add a "View Shopping Cart" link to the top of every page on my website (I think the term is "global"), so that the user can view their cart from any/every page (for instance, from the "Contact" page).

    The tricky part I'm up against is figuring out how to get the "Continue Shopping button" in the shopping cart to go back to the page the user just left from (for instance, the Contact page). Is it possible with a single return value? Or do I have to code every page with it's own href url in the return value?

    I tried this javascript idea, but it did not work.

    <A HREF="http://ww6.aitsafe.com/cf/review.cfm?userid=00000000&return=javascript:history.go(-1)"><br />View Cart </A>

    Any thoughts?



    Jul 22 2011 00:52:36

    #2

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    Debbie Q

    Mal's Support: www.mals-e.com/support.php
    GT's Forms and examples: www.malsforms.com
    Helpful java scripts: www.gemasana.com/mals
    Shipping help documents: www.stoner.org.uk/mals

    My Create-A-Book Publishing - mycreateabook.com
    Personalized Books, Music CDs and Gifts for all ages and occasions.

    Please help me out and share my site on your networks.




    Jul 22 2011 18:24:06

    #3

    Cousin Jack

    Join date : 2011-07-21      Posts : 20

    Thanks! That did the trick.