Page 1 of 5 123 ... LastLast
Results 1 to 10 of 43
  1. #1
    Join Date
    Sep 2007
    Posts
    58
    Plugin Contributions
    0

    Default "Back to Shopping" always goes back to homepage

    Hi,

    If a user is in the shopping cart and selects "go back to shopping", they are returned to the site's homepage. Is it possible to have them returned to whatever page they were looking at when they added the product to their cart?

    I've had feedback from a number of non-technical friends who've said that they find this counter-intuitive.

    Thanks in advance for any thoughts you might have,

    Possum.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: "Back to Shopping" always goes back to homepage

    The behaviour that you want, is what Zen Cart normally does. If it's not doing this for you then there may be a problem with how your site is structured or with php sessions. But it's difficult to say more without seeing your site (and even then it may not be clear).
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Sep 2007
    Posts
    58
    Plugin Contributions
    0

    Default Re: "Back to Shopping" always goes back to homepage

    Hi Kuroi,

    Thanks for your answer to (both) my questions!

    Here's a link to my website: http://www.possumbooks.com.au

    and here's the code that is behind the "back to shopping" icon in the checkout page:

    Code:
    <!--bof shopping cart buttons-->
    <div class="buttonRow forward"><a href="http://www.possumbooks.com.au/index.php?main_page=checkout_shipping"><img src="includes/templates/possumbooks/buttons/english/button_checkout.gif" alt="Checkout" title=" Checkout " width="84" height="21" /></a></div>
    <div class="buttonRow back"><a href="http://www.possumbooks.com.au/index.php?main_page=index"><img src="includes/templates/possumbooks/buttons/english/button_continue_shopping.gif" alt="Continue Shopping" title=" Continue Shopping " width="132" height="21" /></a></div>
    
    <!--eof shopping cart buttons-->
    Any further thoughts would be great!

    Cheers,

    Possum.

  4. #4
    Join Date
    Sep 2007
    Posts
    58
    Plugin Contributions
    0

    Default Re: "Back to Shopping" always goes back to homepage

    Hi again,

    A bit more experimenting and I have a better idea of what's going on now. When I go to the shopping cart from the product_info page the 'back to shopping' button correctly returns me to the product_info page

    When I go to the shopping cart from any of the various product_listing pages, the 'back to shopping' button returns me to the home page. Correctly or incorrectly I don't know, but my personal preference would be to return to the same product_listing.

    Possum.

  5. #5
    Join Date
    Sep 2007
    Posts
    58
    Plugin Contributions
    0

    Default Re: "Back to Shopping" always goes back to homepage

    I've found an answer to this problem.

    I updated line 982 of /includes/functions/functions_general.php which read

    Code:
     if (sizeof($_SESSION['navigation']->path)-2 > 0) {
    to

    Code:
     if (sizeof($_SESSION['navigation']->path)-1 > 0) {
    Now I'm returning to the product list from the checkout when I go directly there from the product list page (without going to product info). I haven't found anything that this breaks yet. I'll update this post if I do.

    Cheers,

    Possum

  6. #6
    Join Date
    Jun 2005
    Location
    Austin, Texas, US
    Posts
    216
    Plugin Contributions
    0

    Default Re: "Back to Shopping" always goes back to homepage

    I am having this same problem on a recent 1.3.9 site. When you add a product to the cart, visit the cart and click on the Continue Shopping button (back to shop), it takes you to the website index page. We would rather have the default "back" behavior.

    We have not modified the default template for the shopping cart page. I checked the template default just in case, and the zencart_back behavior is there.

    Does anyone have a suggestion as to why the continue shopping link appears to be directing to the primary domain (thus sending to the homepage)?

    Here is the link to the store: http://www.brazoscollection.com/index/index_php

    Will the above suggested code work with a newer 1.3.9 site?

  7. #7
    Join Date
    Jun 2005
    Location
    Austin, Texas, US
    Posts
    216
    Plugin Contributions
    0

    Default Re: "Back to Shopping" always goes back to homepage

    A little more information - even weirder - this seems to be intermittent. Most of the time it directs you to the main domain homepage, occassionally after adding several products to the cart it does go back a page. Then if you shop a little more and add something else, the continue link takes you to the homepage again. Not a consistent pattern!

  8. #8
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: "Back to Shopping" always goes back to homepage

    Are you adding the products from the product detail page or from the listing?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  9. #9
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: "Back to Shopping" always goes back to homepage

    Silly question ... why is the shop inside the index directory?

    http://www.brazoscollection.com/index/index_php
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  10. #10
    Join Date
    Jun 2005
    Location
    Austin, Texas, US
    Posts
    216
    Plugin Contributions
    0

    Default Re: "Back to Shopping" always goes back to homepage

    Quote Originally Posted by Kim View Post
    Are you adding the products from the product detail page or from the listing?
    Thank you for the reply, Kim. Actually we have tried both, and the same behavior seems to occur.

 

 
Page 1 of 5 123 ... LastLast

Similar Threads

  1. Sometimes "Continue Shopping" goes back to checkout
    By fjbern1943 in forum Managing Customers and Orders
    Replies: 1
    Last Post: 14 Aug 2016, 08:02 PM
  2. v151 How to link "Back to Product List" button back to last page history
    By sports guy in forum General Questions
    Replies: 3
    Last Post: 28 Feb 2015, 11:11 AM
  3. how to make "back" button really go back?
    By lina0962 in forum General Questions
    Replies: 23
    Last Post: 18 Nov 2010, 09:56 PM
  4. "Back to Shopping" goes to checkout
    By micmed in forum General Questions
    Replies: 2
    Last Post: 26 Nov 2008, 05:27 PM
  5. How can I pre-set the "Back to Shopping"?
    By dhcernese in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 7 Aug 2008, 06:12 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