WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[Plugin: WooCommerce] Buy Now or Auto-Redirect from "Add to Cart" (3 posts)

  1. iftomkins
    Member
    Posted 2 years ago #

    Does anyone know how I would either add a "buy now" button, auto-redirect after the "add to cart" button is clicked, or maybe even make the visibility of an element dependent on whether the cart button has been clicked or not? Then I can redirect manually.

    Thanks!

    Alan

    http://wordpress.org/extend/plugins/woocommerce/

  2. iftomkins
    Member
    Posted 2 years ago #

    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!

  3. yopraag
    Member
    Posted 1 year ago #

    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
    });

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic