Personalized checkout and custom promotions with Shopify Scripts
How do I get the applicable price of a coupon in the Script Editor?
You can retrieve a discount coupon from a Cart object in the Script Editor.
However, it is not possible to get the discounted price of the coupon.
For example, can I use a coupon code to get the applicable price of a coupon?
Solved! Go to the solution
This is an accepted solution.
Sorry, It's solved.
Here's the code.
puts Input.cart.discount_code.minimum_order_amount
It is not mentioned in the official documentation, so we would like to ask you to fix it.
This is an accepted solution.
Sorry, It's solved.
Here's the code.
puts Input.cart.discount_code.minimum_order_amount
It is not mentioned in the official documentation, so we would like to ask you to fix it.
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023