• Resolved martijntje

    (@martijntje)


    Hello there,

    Is it possible to go to previous page when a user clicked ‘Add to cart’ on a product? I want them redirected to the category page they visit last to add more products from that category.

    Martin

Viewing 1 replies (of 1 total)
  • Saif

    (@babylon1999)

    Hello @martijntje,

    I guess you can work with the woocommerce_add_to_cart_redirect hook.

    Alternatively, if you’re redirecting to a static URL, you can use this plugin.

    Since this is a fairly complex development topic I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘After ‘Add to cart’ go back one page’ is closed to new replies.