• Resolved geoffmanonlfo

    (@geoffmanonlfo)


    Hi,

    I have elementor pro, woocommerce and I use Ocean WP.

    I created a customized shop page with the loop system from the add-on elementor custom skin. On this shop page I have all my products and and add to cart button with a quantity selection.
    So far so good.

    I don’t need product pages. SO I want customers to clic on the add to cart button and stay on the SHOP page.
    I don’t know how to do it.
    My difficulty comes from the fact that I use the add to cart button on the shop page and not the product page. So it either brings me to the product page (by default) or if I go to the settings it brings me to the cart page.
    I want neiter of that. I just want to stay on the shop page.

    Can someone help?

    Thanks a lot.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Thu P. a11n

    (@thup90)

    Hi there,

    Have you disabled the Redirect to Cart page option in WooCommerce > Settings > Products > General tab? Screenshot: https://d.pr/i/b8ceq9

    I’m not sure if this option still works for an Elementor page, but it works on WooCommerce archives and the product shortcode.

    Thread Starter geoffmanonlfo

    (@geoffmanonlfo)

    Hi,

    Thanks for your answer.
    Unfortunatly it’s not the solution.

    As I said I have the add to cart on the shop page and by default when i add to cart it brings me to the product page.
    So when I disable to redirect to cart page like you mention, it brings me to the product page.
    The website is to sell fruits and vegetables. I really don’t need any product page to describe strawberries and potatoes 😉
    I just want the add to cart button to do nothing else than add to cart…and stay on the shop page.

    I don’t know if the solution would be to suppress the product pages and keep only the products. Or if the solution would be to add some code in the CSS template ou elsewhere. Or maybe something else I don’t know.

    Thanks in advance for your help.

    • This reply was modified 4 years, 4 months ago by geoffmanonlfo.
    Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    I’d recommend contacting your theme developer then, as you certainly can do this without any custom code. I see you mentioned using Elementor, so it may be their custom page layout template that is doing this if it’s not your theme.

    Here’s an example of doing this using the default Storefront theme:

    Image Link: https://d.pr/i/32nATT

    You’ll notice I can click through adding multiple products to my cart, without ever leaving the base shop page.

    Thread Starter geoffmanonlfo

    (@geoffmanonlfo)

    Hi Phil,

    And thank you for taking time for this 🙂
    I installed Storefront to test.
    I still have the same problem : adding to basket brings me directly to the product page.
    So, as you say, it may be Elementor causing this.

    Storefront doesn’t seem to be compatible with elementor custom skin I used for the loop because I can’t modify my product loop unnder storefront…

    I try to contact elementor pro support, see what they say.

    Plugin Support Thu P. a11n

    (@thup90)

    Hi there,

    Thank you for testing this out with Storefront. If Elementor isn’t the cause of the issue, a conflict test will help you identify the culprit. Here’s the instruction on how to test for a conflict: https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Thread Starter geoffmanonlfo

    (@geoffmanonlfo)

    Hi,

    just to say I found the solution with the plugin WPC Ajax Add to Cart for WooCommerce.
    It’s free.

    Have a nice day!

    Thanks a lot, @geoffmanonlfo, WPC Ajax Add to Cart for WooCommerce completely solved my problem as well 🙂

    Best wishes,

    Xaric

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘add to cart and stay on the shop page’ is closed to new replies.