If you need an easy way to allow article or email readers to add a specific product directly to the shopping cart for a friction-free checkout, WooCommerce has built-in functionality to do that.
1) Find out product ID.
- Go to the Products menu
- Find the product you want to use in that URL
- Hover over the product listing
- ProductID will be shown on the left:
2) Open your store's page where you want your visitors to land after clicking on that URL (usually it will be a shopping cart or checkout page)
3) Add to that URL:
?add-to-cart=PRODUCTID
so the resulting URL will be something like this:
https://YOURSTORE/cart/?add-to-cart=PRODUCTID
or
https://YOURSTORE/checkout/?add-to-cart=PRODUCTID
* replace YOURSTORE with the domain name of your store and PRODUCTID with the actual productID
4) If you also want a coupon to be automatically applied when someone clicks on that URL, you can use a free plugin called "WooCommerce Extended Coupon Features FREE".
- Go to the "Plugins" menu
- Click "Add New"
- Enter "WooCommerce Extended Coupon Features" in the search
- Install
- Activate
Now, you can add this to the end of your URL:
&apply_coupon=COUPONCODE
so the resulting URL will be something like this:
https://YOURSTORE/cart/?add-to-cart=PRODUCTID&apply_coupon=COUPONCODE
or
https://YOURSTORE/checkout/?add-to-cart=PRODUCTID&apply_coupon=COUPONCODE
* replace YOURSTORE with the domain name of your store, PRODUCTID with the actual productID, and COUPONCODE with the coupon code you want to be automatically added.
Let us know if you need any help or have any questions about your store.
Comments
0 comments
Please sign in to leave a comment.