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.

