Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 37
  1. #11
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Can you change the "back to shopping" behaviour?

    Quote Originally Posted by Minnie Mouse View Post
    i dont have time right now to do this, but a switch to turn this on or off in admin would be great wouldnt it. you could choose the default behavior of the continue shopping button in the mystore config. go to item or go to category or always go home. something like that and then base the logic around the swich... hmm
    There is a switch ... Admin->Configuration->My Store->Display Cart After Adding Product ... goto shopping cart or not.
    .

    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.

  2. #12
    Join Date
    Jun 2005
    Posts
    120
    Plugin Contributions
    0

    Default Re: Can you change the "back to shopping" behaviour?

    no that's the reverse of what is needed. we want a switch that governs the behavior of the continue shopping button, not one that governs the add to cart button.

  3. #13
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Can you change the "back to shopping" behaviour?

    Quote Originally Posted by Minnie Mouse View Post
    no that's the reverse of what is needed. we want a switch that governs the behavior of the continue shopping button, not one that governs the add to cart button.
    oops ... i read that too quickly.
    .

    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.

  4. #14
    Join Date
    Jun 2005
    Posts
    120
    Plugin Contributions
    0

    Default Re: Can you change the "back to shopping" behaviour?

    yes, but it is a good thought for building it. it is probably similar to what is needed and could be adapted to this.

    L

  5. #15
    Join Date
    Aug 2008
    Posts
    129
    Plugin Contributions
    0

    Default Re: Can you change the "back to shopping" behaviour?

    Quote Originally Posted by adelante View Post
    Here's the quick and dirty solution that I've come up with. It involves setting up a template override for the following files:

    includes/templates/template_default/templates/tpl_index_product_list.php and
    includes/templates/template_default/templates/tpl_shopping_cart_default.php

    in the tpl_index_product_list.php insert the following lines of code at line 15 (just above "<div class="centerColumn" id="indexProductList">"

    <!-- start record category being visited adelante /-->
    <!-- reset the session variable /-->
    <?php unset($_SESSION["last_category_visited"]);
    <!--set the variable last category visited wit the current product category number /-->
    session_start();
    $_SESSION["last_category_visited"] = $current_category_id;
    ?>
    <!-- end record category being visited adelante /-->

    in the tpl_shopping_cart_default.php insert the following lines of code at line 130 which is just above "<!--bof shopping cart buttons-->"

    <!-- Generate back to shopping path 04052007 Adelante /-->
    <?php
    $back_shopping_path = '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'index.php?mainpage=index&cPath=' . $_SESSION["last_category_visited"] .'">' ;

    ?>
    <!--end back to shopping path /-->


    You will also need to change the line

    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>

    to

    <div class="buttonRow back"><?php echo $back_shopping_path . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>
    This seems like the only viable solution-- to prevent the cart from simply throwing users back to my home page (which I myself find pretty annoying). Generally, our users purchase several items, often in the same category. Throwing the user away from the listing could cost us sales, or perhaps even cause us to lose customers.

  6. #16
    Join Date
    Aug 2008
    Posts
    129
    Plugin Contributions
    0

    Default Re: Can you change the "back to shopping" behaviour?

    It worked flawlessly. Now if I can just get it to work with Chemo's Ultimate URLs... & send the user to an optimized URL...

    I've been fighting with Chemos Ultimate URL mod because he uses -c- in categories and -p- in products, along with the category & product numbers where applicable--

    I really want perfectly clean URLs like wordpress uses--

    If only I understood their php redirect system, I could alter Chemos URL mod on my own...

  7. #17
    Join Date
    Aug 2008
    Posts
    129
    Plugin Contributions
    0

    Default Re: Can you change the "back to shopping" behaviour?

    Here's a link to the forum support for Chemo's mod...

    http://www.zen-cart.com/forum/showth...35034&page=143

  8. #18
    Join Date
    Aug 2008
    Posts
    129
    Plugin Contributions
    0

    Default Re: Can you change the "back to shopping" behaviour?

    I've ended up uninstalling chemo's mod, it's too buggy & no one seems to be supporting it right now.

  9. #19
    Join Date
    Aug 2008
    Posts
    129
    Plugin Contributions
    0

    Default Re: Can you change the "back to shopping" behaviour?

    I'm adding an item from this link:
    /index.php?main_page=index&cPath=65_68_70_77

    then, when I choose back to shopping, it's sending me to:
    /index.php?main_page=index&cPath=77

    this is with the modification from Adelante.. is there any other possible way to do this, so that it correctly includes all the categories? "/index.php?main_page=index&cPath=77" sends me to a strange looking page.... (it doesn't show the subcatogories open on the left sidebar).

  10. #20
    Join Date
    Aug 2008
    Posts
    129
    Plugin Contributions
    0

    Default Re: Can you change the "back to shopping" behaviour?

    Ok, I'm posting again because I love talking to myself..

    no seriously though--

    I noticed on my product pages the "listing" button (in between my prev/ next buttons on my cart) does exactly what I wish my "return to shopping" button will do.

    Is there some way I can safely use something similar on the backend of my "return to shopping button"?

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Can't change the "price" and "Item Name" Link
    By thricelll in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 27 Feb 2011, 08:16 AM
  2. 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
  3. How can I hide the "back to shopping" button?
    By heheno1 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 May 2009, 10:56 PM
  4. 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
  5. How can I change how the "Back" button works/displays?
    By askjv in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Nov 2007, 10:52 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