WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Skip shopping cart in Woocommerce (3 posts)

  1. mlloes
    Member
    Posted 6 months ago #

    Hi there,

    In my shop I'm selling only virtual products and a lot of them are free (just sign in). It's not likely that people will buy or sign in for more than 1 product at the time, so I don't need the shopping cart.

    I would like that when people 'buy' the product, they go immediately to 'checkout' (leave name& address). Little steps to conversion.

    Is it possible to skip the shopping cart? And how do I do that?

    Regards!

    Marloes

    https://wordpress.org/plugins/woocommerce/

  2. jodhavishalsingh
    Member
    Posted 6 months ago #

    Hi mlloes, you can add this to your functions.php

    hope this will help

    add_filter ('add_to_cart_redirect', 'redirect_to_checkout');
    
    function redirect_to_checkout() {
        global $woocommerce;
        $checkout_url = $woocommerce->cart->get_checkout_url();
        return $checkout_url;
    }
  3. mlloes
    Member
    Posted 6 months ago #

    Thanks, but I tried this one, I found it already by another search string (sorry).

    I already found a more simple solution. In Settings > Pages I made the shoppingcart page the pay page! For now, it works for me!

Reply

You must log in to post.

About this Plugin

About this Topic