Put "Quantity Selector" Next to "Add to Cart" Button in Impulse Theme

Topic summary

A user seeks help positioning the quantity selector on the same line as the “Add to Cart” button in Shopify’s Impulse theme. A community member provides a CSS solution that involves:

Solution Steps:

  • Navigate to Online Store → Theme → Edit code
  • Open Asset → theme.scss.liquid
  • Add custom CSS code at the bottom to reposition elements using absolute positioning and width calculations

Key CSS adjustments:

  • Position quantity selector absolutely with negative margin
  • Adjust cart button width to accommodate quantity selector
  • Modify padding for quantity input fields

Multiple users successfully implement variations of this code for different themes (Impulse, Debut, Avenue, Brooklyn, Supply). Some encounter issues:

  • Quantity buttons losing functionality
  • Layout conflicts with inventory notices
  • Theme-specific file structure differences

The helper consistently requests store URLs to provide customized solutions for each theme version. Several users report successful implementation, though some require additional adjustments for responsive design and element alignment. The discussion remains active with ongoing requests for theme-specific adaptations, particularly for newer theme versions where file structures have evolved.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

Hey everyone!

I’m using the Impulse theme and trying to place the quantity selector on the same line as the add to cart button. Could anyone help with this? I’ve tried a few things but unfortunately, couldn’t get this to work myself.

This is how it currently looks:

Thank you!

1 Like

Hello, @spencer123432

Thanks for post.

Please share your site URL,
So I will check and provide a solution here.

1 Like

Hey, there.

This is Dallas from the Shopify Social Care Team.

Although this is isn’t a Shopify theme and I am not able to send this over to my themes team to get this customized for you, I did want to give you a note of information that you might find helpful if you don’t find an answer for this in this forum thread.

Even though our themes team won’t be able to help you, our Shopify Experts should be able to customize this for you. There is a fee associated with them, but they are very talented.

I hope that helps you out! Best of luck ?

Hey @KetanKumar , thanks for your reply! My store is https://loaskin.com/ :slight_smile:

@spencer123432

Thanks, for the URL.

do you have something like this?

1 Like

@KetanKumar This is exactly what I’m looking for!

1 Like

@spencer123432

Thanks for update

it’s can be done change back end some code so i need you to store details can you please send a personal message i will guide.

1 Like

Hi @spencer123432 ,

Do you mean re-positioning the buttons and the quantity selector like this? If that’s the case, I suggest you try this pre-made template. The template is a ready-made product page template, but you can also adjust the color, spacing, or positions of the elements, without coding.

It’s a free template from PageFly. You can view the full version of it here.

@spencer123432

not required now any details I will manage can you please add below code

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.scss.liquid->paste below code at the bottom of the file.
.product__quantity.product__quantity--button {
position: absolute;
    margin-top: -25px;
}
.product-single__meta .payment-buttons .cartbutton {
    display: inline-block;
    width: calc(100% - 110px);
    margin-left: 110px;
}

.product-single__meta .js-qty__num {
    padding: 11px 25px;
}
2 Likes

@KetanKumar Thank you SO much for your help, it looks incredible!!

1 Like

Hi @KetanKumar

I use the same theme and put that code in but this is what i see. Any help on how to correct it would be great! Thank you!

1 Like

Hello, @LeahandRosemary

Welcome to the Shopify community!
Please share your site URL,
So I will check and provide a solution here.
1 Like

@KetanKumar

Thank you!

https://q5r1hrcgpqv62sa9-41120923809.shopifypreview.com

@LeahandRosemary

Thanks for URL.

Add this code

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.scss.liquid->paste below code at the bottom of the file.
.product__inventory {
margin-top: -38px;
}
.add-to-cart.btn--secondary {
    width: calc(100% - 110px);
    margin-left: 110px;
}
1 Like

@KetanKumar

Thank you - I changed it a little to make it the same width as the add to bag button. But as you can see below, when i click plus or minus it does not change the quantity and it has now removed the functionality of my cart drawer popping out on the side when i click add to bag.

Any thoughts on how too correct?

@KetanKumar

Strangely, when i removed “inventory notice” button for the product page it moved the quantity bar. Do you know how to fix this or make it relative so that for the inventory notice button if certain products are low on inventory it does not move the quantity button?

@KetanKumar

Please disregard! I’m all set. Thank you for your help.

1 Like

@LeahandRosemary

Thanka for udpate

sorry i can’t see quantity button right now.

1 Like

Hey, how did you get the quantity selector up with impulse?

Hi KetanKumar

Would that be applicable to my Supply theme?

I am also looking for ways to do the same button positioning.