Hiding the discount code box?

JeffDM
Excursionist
29 0 7

Is there a way to disable or hide the discount code text and box? I've looked around the admin page and nothing seems to come up, even in the html portions.

I don't use discount codes very often, and I find the presense of that box on checkout just gets people to ask for a discount code more than anything else. If I had a way to easily turn it on and off as needed, that would be handy for the few times it does help.

0 Likes
Jason
Shopify Expert
10292 145 1946

You'd be able to hide the discount sections with css if you really don't need them. The css needed will differ between responsive and old checkout. Which you are using?

I jump on these forums to help and share some insights. Not looking to be hired, and not looking for work.

Don't hand out staff invites or give admin password to forum members unless absolutely needed. In most cases the help you need can be handled without that.


★ http://freakdesign.com.au ★
0 Likes
Seema3
New Member
2 0 0

In my openion you should use some validation and give featers to display.

 

0 Likes
JeffDM
Excursionist
29 0 7

I would guess I'm using the old checkout, save for a couple theme changes, I haven't changed the checkout over the years I've been here.

0 Likes
Jason
Shopify Expert
10292 145 1946

For the old checkout add this to your checkout.css.liquid file. You'll need to make the file if you don't have one already.

#discounts {
  display: none;
  visibility: hidden;
}

 

I jump on these forums to help and share some insights. Not looking to be hired, and not looking for work.

Don't hand out staff invites or give admin password to forum members unless absolutely needed. In most cases the help you need can be handled without that.


★ http://freakdesign.com.au ★
JeffDM
Excursionist
29 0 7

Thank you Jason, I will try it out soon.

0 Likes
Half_Helix
Shopify Expert
2 0 0

Sorry, a mistake.

0 Likes
Yu727
Excursionist
38 0 7

Hi @Jason 

Does a responsive checkout mean the checkout of Shopify Plus?

And what is the best way to hide the discount code field in Checkout?

And can we hide the discount code field on checkout and move it to the cart?

Thank you.

0 Likes