Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2015
    Location
    United States
    Posts
    147
    Plugin Contributions
    0

    Default Sometimes "Continue Shopping" goes back to checkout

    My setup: ZenCart 1.54
    Responsive Sheffield Blue 2.0
    Events Manager
    Plus so many others the list would be too long.

    I am having a problem with my "Continue Shopping" button. Is it suppose to act like a javascript back button?

    It normally just brings you back to the product listing page you were on before clicking the "Add to Cart" Button. That's fine I guess. I would rather see it go to the category page instead. ( Can this be done )?

    However that is not my main problem. Let's say that you proceed to checkout and then decide to go back to the shopping cart page, what happens is that the "Continue Shopping" button link takes you back to the checkout page rather than to the product listing page, in other words it seems to act like a javascript back button. Is this normal functionality? If so it is very confusing to the customer.

    Also every once in a while the "Continue Shopping" button goes to my events calendar for no reason what so ever. ????????

    I don't see any error logs being produced.

    Can someone offer some suggestion?

    Thanks

    Frank

  2. #2
    Join Date
    Jan 2004
    Posts
    65,335
    Blog Entries
    7
    Plugin Contributions
    229

    Default Re: Sometimes "Continue Shopping" goes back to checkout

    Some of the "back" buttons or "continue shopping" buttons actually trigger a javascript call to go "back" just like the browser's "back" button.
    Sometimes however they are built by specifying the URL of the last page in the store's "navigation history" for that user. This is triggered by the calls to $_SESSION['navigation']->set_snapshot() or add_current_page(). These are used to remember where the customer was last doing something that perhaps required a temporary redirect such as to log in. Consider the case of commencing checkout: click a product, click add-to-cart, click Checkout. It snapshots that they were trying to go to checkout, then takes them to Login so they can have their account data available, and then after login it returns them to the intended checkout page.
    Some of the "back" or "continue" buttons intentionally use this same functionality to take people back to what they last requested the store to do.

    Sometimes when people alter the normal flow of various pages they inadvertently remove some of the default nav behavior and then get some unexpected results. Similar when they add extra snapshots by mangling the checkout flow between pages.

    Perhaps that can give you insight into exploring what's been changed on your own site.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. "Back to Shopping" always goes back to homepage
    By possum in forum General Questions
    Replies: 42
    Last Post: 25 Dec 2010, 01:23 AM
  2. Replies: 16
    Last Post: 21 Apr 2010, 07:38 PM
  3. Replies: 1
    Last Post: 19 Apr 2009, 03:40 AM
  4. "Back to Shopping" goes to checkout
    By micmed in forum General Questions
    Replies: 2
    Last Post: 26 Nov 2008, 05:27 PM
  5. Removing "Continue Shopping" and "Checkout"
    By ahuacatlan in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Aug 2007, 10:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR