• We are facing following problem regarding Add to Cart operation.
    When someone add one product to cart from search result, after adding it to cart it redirects to Home Page. But when someone add one product from shop page directly then it stays on same page. We want to stop the redirection. After adding the product to cart from search result also, it should stay on same page.
    We have unchecked, both Redirect to the cart page after successful addition, Enable AJAX add to cart buttons on archives. But issue not solved.
    How to solve this issue? Please Help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Hello there,
    I just tested this and I was not able to reproduce the issue.

    This kind of problem is usually caused by either a conflict with your theme or with another plugin.
     
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Thread Starter justbolo

    (@justbolo)

    Hi,
    I believe there must be some option for disabling the redirection. On my woocommerce setting under product option there is no option like display. On some thread I have seen it can be controlled by display
    The issue is , when some one do add to cart directly from shop page it’s stays on shop page.

    But then someone search a product and do add to cart among some product of those search result, that time product is adding to cart and the page is redirecting to home page.

    Can you help us regarding this issue.

    Thread Starter justbolo

    (@justbolo)

    Hi,
    As a part of Next level trouble shooting we have checked following steps:-
    1>Checked By uninstalling plugin but same issue.
    2> The problem is happening only when we are doing add to cart from search result.
    3> If we do add to cart from category page and shop page, this issue is not occurring.
    4> By checking “Add to cart redirect to cart page”, this issue getting solved. But we don’t like the process of going to cart page after each add to cart.
    5> We assume the problem is happening because, after add to cart from search result, it unable to find where to return back, so it returns to home page.
    Please advise how to solve this issue.

    Same thing is happening to me. Did you get this resolved?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add to cart redirects to Home’ is closed to new replies.