This article will walk you through how to create a direct checkout link for a WooCommerce product. These type of links will automatically add products to your cart, making it easy to share specific configurations directly with customers. By clicking the link they will skip through the sales process and end up directly at the checkout.
By default, direct checkout links with WooCommerce are incredibly powerful and versatile. You can sell different variations, quantities, collections of products, coupons, and more, directly within the URL structure. This article will serve as a reference to all of the features offered by this tool. You can use these types of links directly on your website, share them with customers, or post them on social media (such as Instagram Story "swipe ups").
There are many uses for direct checkout links in WooCommerce. Here are a few examples:
Sometimes it's clear that a customer is ready to check out, but for some reason or another they require support or assistance. Instead of directing them to go through the standard funnel of your homepage, to the product page, to the cart page, to the checkout page, you can send them directly to checkout with a preconfigured cart by using a direct checkout link. Therefore, you ensure that they won't drop off or not convert, making the process as seamless and quick as possible.
This is especially helpful when offering support. For example, what if the customer support questions about the product and has sent a message showing that they are ready to purchase? Instead of responding with the link to the product page, simply link them directly to the checkout!
Please note, this shouldn't replace the need for a wholesale area within the website if your business depends on this model. However, for the one off bulk orders that businesses sometimes go, this is a great option.
Say somebody wants to purchase 50 units in one go. You can simply send them a link to purchase this immediately. This is a great option if public products are limited to a maximum quantity.
Another interesting concept is sending a bulk checkout link with a 100% discount coupon attached (we will go over how to do that in a later section). In many situations, large orders are best paid via bank transfer. Therefore, you can handle payment via invoice (Stripe Invoice is great, as is 's Invoice feature) giving your purchaser terms like 2/10 Net 30 (which would be impossible to do in core WooCommerce without a plugin), but still manage the order through your Woo dashboard, and automatically sync to a shipping provider if set up.
Social media is a great way to convert visitors into customers and build communities around your products. If you have a large enough Instagram, adding swipe up links within your stories is a great way to convert customers.
For example, you can create a story detailing a specific product, and direct your customers to swipe up to buy it. The link will load your website's checkout page, populate the product, and make it incredibly easy for a user to purchase.
If your e-commerce website focus heavily on content marketing (and it should!), you can link directly to checkout with in contact. For example, say you are writing about a flower vase and why your product is the best. Within the content, you can create and add to cart link the functions similarly to the button on the product page. However, it removes an extra step, which will increase conversions. For example, within Gutenberg I can add a button with a checkout link like so:
It will link directly to the checkout adding whatever product is specified.
WooCommerce.com uses this concept on their 3rd party plugin documentation. Check out the URL of the "buy now" button:
This section will show you how to make direct to check out links. There are many different variations that you will be able to experiment with, and this section will contain detailed instructions for each. This continent is current for the year of 2024 and WooCommerce V6.0+.
To create a direct to check out link for a simple WooCommerce product, all you need is the ID of that specific product. With it, you'll generate the standard add to cart link that comes with WC core.
You can find it by hovering over the product in the product list, or by editing the individual products, and looking and it's URL structure.
The link that will add the product directly to the cart is as follows:
If you want to skip over all pages and bring them directly to the checkout, the link would be:
As you can see, you can link to any page on your website, and add the following parameter, which will add the product to the cart:
Variable products follow the same URL structure, except the ID should match the individual variation, not the overall product. To find the variation ID, follow these steps.
Grouped products are essentially folders of individual standard products. Therefore, to add a standard product to the cart, follow the methods above. With the group product, you can link directly to its landing page, while adding an individual product to the cart. This is the most common use case when it comes to this type of direct link.
However, Group products also have their own ID, and you can also use that depending on the result you are looking to achieve.
Creating a direct check out links for subscription products in WooCommerce created with the official plugin is very simple. Find the product as you normally would, and create use the same link structure as a standard product.
It will follow the default renewal schedule.
By default, your direct checkout link will add a single product to the cart. If a customer decides to reload the page, it will add an additional product to the cart. However, say you want to have a customer add multiple products at once. Then, revise the link accordingly:
As you can see, making an add to cart link with quantity is really simple!
With grouped products, there are multiple products associated under one group. Therefore, the quantity structure within the URL changes when using this type.
For the quantity, you need to specify the individual product ID within the group, and then the number of units added for that specific one. In the example link above, we are adding the grouped product with an ID of 99 to the card. The two single products within the group product are adding 5 units of product 100 and 6 units of product 101.
We've had a few questions asking how to add a coupon to a WooCommerce session via a URL.
For this situation, you can use a plugin or a code snippet. It is not built into the core direct link feature within WooCommerce.
Add the following code snippet to your functions.php file or use a snippet management tool:
This snippet is modified from "Automatically Apply A Coupon Passed Via URL To The Cart In WooCommerce" by WebRoom. Check out that article for a full explanation on how this code works.
To use it, generate the following URL:
This can be used as a standalone parameter, or in conjunction with anything else mentioned in this article. It's great for Social Bio Links and Instagram Story "swipe ups!".
The SkyVerge WooCommerce Coupon URLs offers a few more features and a visual way to generate these links. If you are building a client website, this may be a better option for you, but the snippet above works perfectly if you simply want to add a coupon via a direct link to your WooCommerce website.
Yes, there are a couple plugins out there that will do this for you. However, they are unnecessarily complicated and if you are a shop owner or a developer, it's good to memorize how to manually create these links, which is outlined above.
Here are a few of those popular WordPress plugins:
As an alternative, we have built a utility that allows you to create direct check out links in a visual way. Therefore, you don't need to commit anything to memory, nor do you need to download a complex plug-in. Simply initialize the tool, enter the information, and generate the link.
We hope that this article helped you create a direct add to cart link for WooCommerce. This is an important concept to understand if you are a developer or shop owner as it can drastically increase conversions when used properly. It's a very powerful way of getting a customer to add products to the cart, and you can even set the quantity, and or variations!