1URL: Add One Simple Product to Cart
2href=”https://yourdomain.com/?add-to-cart=25″
3
4URL: Add One Simple Product to Cart with Quantity = 3
5href=”https://yourdomain.com/?add-to-cart=25&quantity=3″
6
7URL: Add One Simple Product to Cart & Redirect to Cart Afterwards
8href=”https://yourdomain.com/cart/?add-to-cart=25″
9
10URL: Add One Simple Product to Cart & Redirect to Checkout Afterwards
11href=”https://yourdomain.com/checkout/?add-to-cart=25″
12
13URL: Add One Simple Product to Cart & Redirect to Any Page Afterwards
14href=”https://yourdomain.com/your_custom_page/?add-to-cart=25″
15
16URL: Add One Variable Product to Cart
17href=”https://yourdomain.com/?add-to-cart=88″
18
19URL: Add One Variable Product to Cart (with Quantity = 3)
20href=”https://yourdomain.com/?add-to-cart=88&quantity=3″
21
22URL: Add One Variable Product to Cart & Redirect to Cart
23href=”https://yourdomain.com/cart/?add-to-cart=88″
24
25URL: Add One Variable Product to Cart & Redirect to Checkout
26href=”https://yourdomain.com/checkout/?add-to-cart=88″
27
28URL: Add One Variable Product to Cart & Redirect to Any Page
29href=”https://yourdomain.com/any-page-url/?add-to-cart=88″
30
31URL: Add a Grouped Product to Cart
32You will need the Grouped Product ID, which can be found in the usual way, and also the sub-product IDs. Then, use something like:
33
34href=”https://yourdomain.com/?add-to-cart=3111&quantity[1803]=5&quantity[1903]=2″