Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2008
    Posts
    150
    Plugin Contributions
    0

    Default Adding item to cart from main_page=products_all redirects to index

    (157c, bootstrap template, + numerous mods/plugins)
    My shop is currently set to remain on a category, subcategory, or product page after an item is placed in the cart (instead of displaying the cart). It functions as expected throughout the site, except when adding from my "all items" link, /index.php?main_page=products_all. In that case, it redirects to the main index page and displays a messageStack to the customer that the item was added.

    How can I stop this redirect, and instead display the success messageStack on the "all items" page from which the customer placed the item in the cart?

  2. #2
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Adding item to cart from main_page=products_all redirects to index

    Need a little more info...

    What is the process to add/select the product from the products_all page?

    Is there a buy_now button? Is there an add box with a selector at the top and bottom of the page?

    Etc...

    Of course a hint to the store also helps...

    Basically there is a logic that is performed based off the information on the browser link processed through includes/init_includes/init_cart_handler.php and then includes/main_cart_actions.php which calls in files from includes/extra_cart_actions before the shopping_cart class processes the request and attempts to return the customer to the selected destination.

    If you temporarily change templates to one of the default templates does the issue persist?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Apr 2008
    Posts
    150
    Plugin Contributions
    0

    Default Re: Adding item to cart from main_page=products_all redirects to index

    Quote Originally Posted by mc12345678 View Post
    Need a little more info...

    What is the process to add/select the product from the products_all page?

    Is there a buy_now button? Is there an add box with a selector at the top and bottom of the page?

    Etc...

    Of course a hint to the store also helps...

    Basically there is a logic that is performed based off the information on the browser link processed through includes/init_includes/init_cart_handler.php and then includes/main_cart_actions.php which calls in files from includes/extra_cart_actions before the shopping_cart class processes the request and attempts to return the customer to the selected destination.

    If you temporarily change templates to one of the default templates does the issue persist?
    The site currently uses the qty box with selectors at the top and bottom. The problem does not appear when switched to an alternative template. And it also does not happen with the current bootstrap template when using a 'buy now' button, or qty/add combination.

    The problem seemed limited to the "all items" (but not category or subcategories) results list when adding to the cart using the top and bottom selectors. However, since posting, I also noticed it happens when using top/bottom selectors to add to the cart from a search result.

 

 

Similar Threads

  1. v153 Add Selected to Cart redirects to index when on search results page
    By ATCC in forum All Other Contributions/Addons
    Replies: 10
    Last Post: 24 Oct 2014, 08:47 PM
  2. index.php?main_page=products_all
    By mlvitor in forum Addon Language Packs
    Replies: 1
    Last Post: 8 Mar 2011, 03:46 PM
  3. Adding item to cart from a button outside of the store.
    By dwolfe in forum General Questions
    Replies: 1
    Last Post: 27 Jan 2011, 02:38 PM
  4. main_page=products_all - how to make this the default view?
    By lanexa in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Mar 2009, 11:17 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