Making the Add to Cart button go straight to the checkout page

On the flip side of having hundreds or thousands of products, you may only have one product, at which point the cart becomes pretty useless. In that case, you can actually have a customer skip right over the cart and land on your checkout page. It's one less step the customer has to make and keeps them focused on checking out rather than cruising the site, which should increase conversions.

Note

We have covered a similar recipe, Skipping the cart and going straight to checkout, in Chapter 7, Modifying the Checkout Process, which uses code instead of a plugin.

Getting ready

You'll need to have a product in your store.

How to do it…

This is a feature a lot of store owners have asked for, so there are several prebuilt solutions out there. We'll be using a plugin from WordPress.org that is quite straightforward and simple with no options, named Skip Cart WooCommerce.

  1. In the WordPress admin, click on the Plugins menu and then on Add New.
  2. Run a search for Skip Cart WooCommerce.
  3. Install and activate the plugin.
  4. Now go to the frontend of your site and add a product to your cart. This action will automatically take you to the checkout page.

Tip

At the time of writing, there is a PHP warning in this plugin. It will most likely be fixed by the time of publication. They aren't serious issues, so you can simply hide the warnings by disabling WP_DEBUG in your config file. For more information, refer to http://codex.wordpress.org/WP_DEBUG.

There's more…

You may notice that the button says Add to Cart, but there technically isn't a cart. If you wanted, you could change the product button to Checkout or something similar. This can be achieved with some code snippets available at WooThemes.com. For more information, refer to http://docs.woothemes.com/document/change-add-to-cart-button-text/.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset