Remove discount code from Check out and add it in Cart page

I have tried to hide the Discount code in Checkout page and add Discount code in Cart page, but i can’t find any option to remove the discount code from checkout page, can any one please help me to sort it out. The theme iam working is “Sabujcha - Matcha Shopify Theme” .

Hello @Mathirajesh

Please share your store URL and reference site URL.

So that I can check and let you know the exact solution for this.

Thanks…

Thanks for the Reply @oscprofessional , Please check the URL: https://goodstate.com/

Hello @Mathirajesh

For Remove discount code from Check out :

Add this css at the bottom of

Online Store->Theme->Edit code->Assets->theme.scss.liquid

.order-summary .order-summary__section.order-summary__section--discount {
	display: none;
	border-top: none;
}

Hope this will work for you.
Thanks!

Hi @oscprofessional thanks for the reply, I have checked but there is no file named theme.scss.liquid, and one thing is in the checkout page totally 3 css files are loading from the server directly as follows, please check it.

  1. https://cdn.shopify.com/app/services/xxxxxxxxxx/assets/xxxxxxxxxxxxx/checkout_stylesheet/v2-ltr-edge-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxx

  2. https://cdn.shopify.com/xxxxx/assets/xxxxxxxxxx/main-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.css

  3. https://cdn.shopify.com/xxxxxx/assets/admin/style-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.css

Hi,

I have a similar problem - the discount code doesn’t work on the cart page- how can I remove it?/ fix it..

Thanks

try to add in style.css

Useful tip, thanks. But doesn’t work until you add the necessary space between

_section

and

.order:
.order-summary .order-summary__**section** **.order**-summary__section--discount   
1 Like

The code does not work for me on Minimal theme.

Any working solutions?

I am not sure how your solution will work for people having stores below Shopify Plus Plan, because shopify doesn’t let you alter anything on the checkout pages.

@Mathirajesh ,

check the css file which is appearing on checkout page, I thought checkout.scss.liquid

then add the code in it..

I do not have a theme.scss.liquid file on my Dawn theme.

I do not have a style.css liquid file or assets file on my Dawn theme.

Thankss a lot dude!! that worked for me (Dawn 11)

Hi there! Are you able to help me with this for my website? https://modiste.shop/