WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » [Plugin: WooCommerce] Buy Now or Auto-Redirect from "Add to Cart"

[Plugin: WooCommerce] Buy Now or Auto-Redirect from "Add to Cart"

Viewing 2 replies - 1 through 2 (of 2 total)
  • I did find the option “redirect to Cart page” after adding to cart. But for the Cart widget, how do I set it to only display when there are items in the cart?

    Thanks!

    yopraag

    @yopraag

    Not sure about the cart widget but you can listen for the javascript event: added_to_cart or you could hook on to the filter
    add_to_cart_redirect.

    So if you wanted to do something after you added something to the cart you can do:

    jQuery(document).on('added_to_cart', function(){
        //... do something
    });
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WooCommerce] Buy Now or Auto-Redirect from "Add to Cart"’ is closed to new replies.
Skip to toolbar