This is an example of how to apply a discount code (coupon) and add a product to the cart at the same time when making a purchase via a landing page on Shopify. Normally, even if you use a URL that automatically applies the discount code, you still need to add a product to the cart, so this is an example of how to deal with this.
An example of a setting that allows you to add a product to your cart at the same time as applying the discount when using a discount code on a landing page or other site to discount a specific product.

[Setting Method 1] Create a "Product Discount" discount by specifying the target product.

[Setup Method 2] Add code to the "Add to Cart" button on the landing page you created to apply a discount and add the product to the cart.

![[Dawn] An example of how to set up Shopify so that when you use a discount code on a landing page to discount a specific product, the discount is applied and the product is added to the cart at the same time.](http://store-dojo.com/cdn/shop/files/2024-09-02.png?v=1761971883&width=1445)