Skip shopping cart in Woocommerce (3 posts)

  1. mlloes
    Posted 2 years 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?




  2. jodhavishalsingh
    Posted 2 years 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
    Posted 2 years 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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic