How to automatically add products to cart with a URL in WooCommerce?

How to automatically add products to cart with a URL in WooCommerce?

Creating a seamless shopping experience is the heart and soul of WooCommerce store management. Better the customer experience, the more the chance of revisiting and even re-purchase. Automatically adding products to the cart is one area in which you can create a lasting impact on your customers.

For instance, when you are scrolling through your wall on social media and suddenly see a product that you are interested in, you would want to be redirected to the cart page of the store when you click on the product. But in almost all cases you will land on the product page when clicking the click. You will have to then add the product to the cart and then visit the cart to make the purchase.

Automatically adding WooCommerce products to the cart when clicking on the product link would considerably reduce the purchase time and even influences quicker decision-making. It is a great way to increase your sales and revenue. The URL coupons for WooCommerce plugin enable you to do this. So let’s take a look at how you can do this.

Why is automatic ‘add to cart’ in WooCommerce significant?

Before we move on to the automatic add to cart configurations, let’s first see why it is significant and what role it plays in enhancing customer experience.

The first and major reason for this is that it saves a considerable amount of time. By eliminating the add-to-cart process, you are essentially sliming the purchase workflow and adding convenience. This can accelerate or rather catalyze purchase decisions.

Also, shunting friction in the shopping process can generate a better store experience for your customers. For example, a customer landing on your site from a different location (such as social media) might have followed a particular product trial (as mentioned in the earlier example), their primary interest would be the product and automatically adding it to the cart can help you increase the conversion speed and also the conversion rate.

Who usually needs this automatic add to cart WooCommerce workflow?

Let’s discuss some of the most common use cases of ‘automatic add to cart in WooCommerce’.

  • Retailers
    If you are running any kind of retail store in WooCommerce, you can benefit from this. The best workflow for this is to generate product links for your best-selling products and share them in your promotional posts, affiliate sites, social media sites, etc. If your target audience develops an interest in the product they will click on the link. Instead of taking them to the product page, if you automatically add the product to the cart, it could help generate a more favorable outcome. Any retailers such as supermarkets, apparel stores, sporting goods shops, etc., can leverage this process flow.
  • Membership websites
    If you have a site like Netflix or Audible which runs on memberships, automatically adding the product to the cart could help you land more memberships. This automatic process helps your customers make concise decisions in minimal time.

You can achieve all this with a simple shareable WooCommerce coupon link generator plugin – URL coupons for WooCommerce. Let’s see how to set it up!

How to set it up?

All you need to set up an automatic add to cart in WooCommerce is the URL coupons plugin from WebToffee. The plugin enables you to

  • Create unique and shareable URLs for individual coupons on your website
  • Add specific products to the cart when clicking on the URL
  • Redirect the customers to specific pages on your website when clicking on the coupon URL

To configure a product to be added to the cart when clicking on the URL,

Step 1: Install the plugin

To install and activate the plugin,

  1. Log into your WordPress admin console and go to Plugins > Add New.
  2. Click on Upload Plugin and choose the plugin zip file that you received after purchasing the WooCommerce coupon URL generator plugin.
  3. Click on Install Now to initiate the installation.
  4. Then, tap on Activate plugin.

This will add the plugin to your WooCommerce store. You will now have to generate a coupon URL which when clicked will add a specific product to the cart.

Step 2: Create a coupon

You should now create a coupon, it can be a product-specific coupon or a simple general coupon. In this example, let’s generate a product-specific coupon.

  1. Go to Marketing > Coupons, and click on Add New.
  2. Generate a coupon code and add a description (optional).
  3. In the Coupon data widget General tab, specify a discount type and amount.
Create a discount coupon that should be automatically associated
  1. Now, go to the Usage restriction tab and specify the product to which the coupon should be applied.
set up product restrictions for the URL

Step 3: Set up the URL

  1. Now, go to the URL options in the same Coupon data widget.
  2. Enter the URL slug under Unique URL.
  3. Specify the product that you want to automatically add to your WooCommerce cart under Add products to cart.
  4. Now specify what should happen after adding the product to the cart. You can redirect to a specific page on your site or to a URL. Since we want to land on the Cart page, choose Page and select the cart page.
generate a URL and QR code for the coupon
  1. Click on Publish to publish the coupon.

How will it work?

On completing the above-mentioned steps, the coupon will get created in your store. You can now place the unique URL that you have generated while setting up the coupon in your promotional posts and social media campaigns.

For instance, you can blog post to your store’s blogging site for promoting a particular product. Embed the link that you have generated in key anchor texts (generally, product images are hyperlinked). When a customer reading the blog clicks on the link, they will be redirected to their cart page on your website and the product will be automatically associated.

This way your customers will be fully aware of the functionalities and the needs of a product before they have to make a purchase decision. It could help you secure more purchases.

Product automatically added to cart

Customers will be redirected to this page when clicking on the link.

You can improve the quality of this order by persuading your customers to buy more items from your store. Take a look at this article on showcasing the products related by the same category or sub-category to understand more about this.


A WooCommerce store admin is always looking for ways to improve the store’s revenue. Automatically adding WooCommerce products to the cart is one of the easiest ways to do this. URL coupons for WooCommerce deliver just that. In addition to the discussed product-specific coupon URL, you will also get a QR code from the plugin. This QR code can be used as an alternative to the coupon link (if that feels more convenient).

Moreover, the coupon URL plugin is compatible with WooCommerce coupon plugins such as WebToffee’s WooCommerce smart coupons. This would help you generate more restrictive coupons.

Hope this article was informative. Do let us know what you think in the comments.