Add custom message on checkout page below discount box when discount is applied in shopify plus

Add custom message on checkout page below discount box when discount is applied in shopify plus

Priyanka_
Shopify Partner
83 15 22

Hi,

Can we add custom message on checkout page below discount box when discount code is applied in Shopify plus using shopify script.

Is this possible ?

 

 

Was I helpful? 

Buy me a coffee 



If I managed to help you then, don't forget to Like it and Mark it as Solution!

Replies 2 (2)

Ray_Chan
Shopify Partner
6 2 4

Hi @Priyanka_, this is possible using the checkout UI extension, with the target of `

 
I don't have much experience with the Shopify scripts though so I'm not sure if it's possible but looks like the Shopify scripts will be phased out next year according to https://help.shopify.com/en/manual/checkout-settings/script-editor/shopify-scripts 
Priyanka_
Shopify Partner
83 15 22

Hi @Ray_Chan 

Thanks for your response. I’m looking to customize the default Shopify error message that appears when a customer applies a discount code at checkout . Currently, the default message is "Discount code isn't valid for the item in your cart" if the cart doesn’t meet the minimum requirements for the discount code. I want to modify this so that if product X is in the cart and the minimum requirements aren’t met, the error message would be "The code is not applicable for X product." I’ve set up an order-level discount. Are we able to create multiple error message options based on the code entered, or based on if a specific product is in cart? Do you know how I can achieve this using Shopify’s functionality? Any help would be greatly appreciated. 

Was I helpful? 

Buy me a coffee 



If I managed to help you then, don't forget to Like it and Mark it as Solution!