How to Create Custom Add to Cart Links in WooCommerce 10 with no Extra Plugins!

Have you ever wanted to post or send a link that sets up a customer’s cart with a set of predetermined products, or even a discount code? There are tons of potential applications for this functionality – social media posts promoting a deal on a specific product, email responses to customer inquiries providing a set of product recommendations for the customers, buttons in blog posts that load up a product collection into the checkout, and the list goes on.

Good news! As of WooCommerce 10, to be released on Monday (July 14, 2025), all of the above will be possible! Here’s a quick look at how it will work:

  1. Start with your checkout page URL. Often this will be your domain name, followed by /checkout/. For example, https://berrypress.com/checkout/.
  2. Make a list of the product ID’s you want to have added to the cart. These ID’s can be found by hovering over the product names in the Products list in your WooCommerce backend. Multiple ID’s are separated by commas. For example: 632,715. If you want to add more than one of a product to the cart, follow the ID with a colon and the quantity. For example: 632:3,715. This list then gets added to the checkout URL in a products parameter: https://berrypress.com/checkout/?products=632,715. (Note: if you are reading this blog post before we’ve updated our WooCommerce to version 10+, these links may not work yet!)
  3. If you want to add a coupon code to the cart as well, add it as a field called coupon: https://berrypress.com/checkout/?products=632,715&coupon=WOO10.

This is just one of many new features and bug fixes coming in WooCommerce 10. For more, check out the official blog post about this release, or read the changelog!

Leave a Reply

Ready to grow your WordPress business?

Talk to the BerryPress team and see how our plugins and custom solutions can help you simplify workflows, boost performance, and unlock new revenue opportunities.

Contact Us

Subscribe to BerryPress Newsletter

Stay in the loop with plugin news, tips, tutorials, real-use examples, and special deals — straight to your inbox. Just useful stuff. No spam, we promise.

"*" indicates required fields

Privacy*