Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Posts
    46
    Plugin Contributions
    0

    Default Changing the Back to Shopping Button

    Does anyone know how can i change the "Back to Shopping" Button in my Shopping Cart page so i can direct it to go somewhere else not in
    ../index.php?main_page=products_all&disp_order=1

  2. #2
    Join Date
    Feb 2008
    Location
    L.A.
    Posts
    1
    Plugin Contributions
    0

    Default Re: Changing the Back to Shopping Button

    Having stepped through the code with the debugger it really doesn't look like there's a way to configure Zen to behave that way.

    So, in /zen-cart/index.php ('zen-cart' = your zen-cart install folder), right after:

    /**
    * Load common library stuff
    */
    put this code fragment:

    if(isset($_GET['main_page']) && 'product_info' == $_GET['main_page'] && !isset($_GET['action']) )
    {
    $sPath = "http://".$_SERVER['HTTP_HOST'].'/WHERE_I_REALLY_WANT_TO_GO.html';
    header("Location: $sPath");
    exit();
    }

    and change '/WHERE_I_REALLY_WANT_TO_GO.html' to where you really want to go.

    The idea is to redirect it when 'main_page' is set to 'product_info' but there's no 'action'. That is the state when I click my 'back to shopping' button, e.g.:

    http: //localhost/zen-cart/index.php?main_page=product_info&cPath=3_14&products_id=15

    where you'll see 'main_page=product_info' but there's no 'action='. You may need to tweak to taste.
    Last edited by wwzeitler; 1 Feb 2008 at 08:18 PM. Reason: Want to display whole example URL

  3. #3
    Join Date
    Jan 2008
    Posts
    46
    Plugin Contributions
    0

    Default Re: Changing the Back to Shopping Button

    i did try this but i had no luck, and now it goes to
    ../index.php?main_page=index

    Anyone any idea?

  4. #4
    Join Date
    Jul 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Changing the Back to Shopping Button


 

 

Similar Threads

  1. How can I "flip" layout of Back to Shopping button with the Shipping Estimator button
    By MarleneF in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 7 May 2010, 09:38 PM
  2. Changing the Continue Shopping Button use.
    By bungenstein in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 11 Feb 2009, 05:43 PM
  3. Please help how to change the link of Back to Shopping button
    By romanhk in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 May 2008, 04:23 AM
  4. deleting the back to shopping button
    By KHOOT in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Sep 2006, 06:50 PM
  5. Changing the back button
    By camay123 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 May 2006, 10:30 AM

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