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.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025