Skip to product information
1 of 1
Published:2024.09.02

[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.

[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.

Applications

  • Edit page

How to implement

  • Javascript
  • HTML/CSS
View full details

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.


After making a purchase (all items are ¥0), you will be able to view the sample code.

If you have already made a purchase, please login here.

Sample Codes

Test Theme :Dawn/Rise 15.2.0

Add code to apply the discount and add the item to the cart.

Related Post