• Resolved happycolt

    (@happycolt)


    How can I stop the redirect to the single product page when there is an error, and make the error show only on my page?

    Currently I have all of my services listed on my home page and have the WC “shop” page and product pages hidden. When I click on an item that can only be added to the cart if another item is in the cart, it takes me to the single product page for that item and shows me the error there. Is it possible kill the redirect and have the error show on my main page? Maybe tie it into my ajax notification somehow?

Viewing 1 replies (of 1 total)
  • Plugin Author SomewhereWarm

    (@somewherewarm)

    Hey there,

    The plugin doesn’t do any redirection on its own so it’s likely that this behavior is determined by your theme. Note that add-to-cart buttons on single-product pages are not “ajax-enabled” in WooCommerce core.

    Sounds like you might need to look at custom development options to make this possible? If you decide to take this path, Codeable is certainly a good starting point.

    Cheers,

Viewing 1 replies (of 1 total)
  • The topic ‘How to show error on home page instead of single product page?’ is closed to new replies.