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,655
    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).
    See and test drive Zen Cart's free templates at zencarttemplates.info

    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
    213
    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?
    This message brought to you by Jac.
    Happily developing sites with ZenCart since 2003.
    Thank all Zen contributors out there - Buy the manual!

  7. #7
    Join Date
    Jun 2005
    Location
    Austin, Texas, US
    Posts
    213
    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!
    This message brought to you by Jac.
    Happily developing sites with ZenCart since 2003.
    Thank all Zen contributors out there - Buy the manual!

  8. #8
    Join Date
    Jun 2003
    Posts
    33,825
    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,825
    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
    213
    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.
    This message brought to you by Jac.
    Happily developing sites with ZenCart since 2003.
    Thank all Zen contributors out there - Buy the manual!

 

 
Page 1 of 5 123 ... LastLast

Similar Threads

  1. Issue with back button not returning
    By rwoody in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Aug 2008, 12:33 AM
  2. Back button that does not take you back
    By Woodymon in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 12 Aug 2007, 04:12 AM
  3. A little help with a back button needed
    By red8ii8 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Jun 2007, 07:24 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
  •