WordPress.org

Ready to get started?Download WordPress

Forums

Does anyone know how to redirect the 'Add to Cart' button... (4 posts)

  1. adamboustead
    Member
    Posted 3 months ago #

    pretty explanatory, does anyone know how to redirect the 'Add to Cart' button to login page if user is logged out? I am running woocommerce

  2. WPyogi
    Volunteer Moderator
    Posted 3 months ago #

    I'd suggest posting on the WooCommerce forum:

    http://wordpress.org/support/plugin/woocommerce

  3. Lucas Karpiuk
    Member
    Posted 3 months ago #

    Hi Adam,

    Looking at the source code (http://docs.woothemes.com/wc-apidocs/source-class-WC_Product.html#425-433) it seems you could use the 'woocommerce_add_to_cart_url' filter to return a different URL.

  4. adamboustead
    Member
    Posted 3 months ago #

    Hi Lucas,

    thanks for the info, is there any chance you could walk me through this, over e-mail?

    Thanks

Reply

You must log in to post.

About this Topic