WooCommerce Custom Link To Add Products To Cart

Add a WooCommerce product to cart with a link


You’ll need the product ID (or variation ID) ready. Replace “123” in the example with said ID and the appropriate quantity to be added.

How To Implement This Solution?

Simply hyperlink the text, button, image or whatever you like with the solution below.

About this Solution

Do you want to be able to add links in your content to allow customers to add products to cart without them having to navigate to the product page? Maybe you have pricing plans and want to link each to a product and allow adding to cart without the product page being seen. This guide shows you an extremely quick and easy method to do just this.

					This product is fantastic. You can buy it <a href="here https://www.example.com/?add-to-cart=123&quantity=1">here</a> or drop us a message for more info.

Snippet Benefits

  • Being able to link products from non-product pages is a great way to drive users through the the sales funnel, particularly with affiliate/external products.
  • Showcase products from blog posts and pages without actually showing the product page.
WooCommerce Conversion Rate Optimisation (CRO) eBook
100 WooCommerce Conversion Rate Optimisation Tips

Leave a Reply

If you are going to write code in the comments, please wrap it between code tags.

Your email address will not be published. Required fields are marked *

Other Recent Guides

Subscribe To Emails

Get exclusive WooCommerce tips that I only share with email subscribers

Join hundreds of other subscribers