How to move quantity selector next to add to cart button in Vision Theme?

How to move quantity selector next to add to cart button in Vision Theme?

bradpc
Excursionist
12 0 6

Hi,

Please can someone help identify the code change to move the quantity selector next to add to cart button in Vision Theme?

 

Thanks so much!

 

Screenshot 2023-08-18 at 9.29.45 am.png

Replies 6 (6)

Made4uo-Ribe
Shopify Partner
10211 2427 3082

Hi @bradpc 

 

Please share your website so we can provide a code appropriate for you

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
bradpc
Excursionist
12 0 6

Thank you - please see this preview link: 

https://5c58am3nsfisdt8y-45252706456.shopifypreview.com

Made4uo-Ribe
Shopify Partner
10211 2427 3082

Hi @bradpc 

 

Please follow the instructions below

 

For Shopify 2.0 Free themes, you can follow the instructions below. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Asset" folder, click on "app.css" file
  • Add the code below at the very bottom of the file
product-form.product-form {
    width: 70%;
    position: absolute;
    top: 20vh;
    left: 7rem;
}


quantity-selector.quantity.buttons_added > * {
    height: 50px;
}

quantity-selector.quantity.buttons_added {
    border-radius: 7px;
}


.product-information {
    position: relative;
}
  • Make to SAVE

 

Result here:

Ribe_Dagandara_0-1692316745612.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

 

 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
bradpc
Excursionist
12 0 6

Thanks for your suggestion. I have tried but please see how it is coming out on mobile, the add to cart button seems to be floating higher. 

Screenshot 2023-08-18 at 11.33.32 am.png

Made4uo-Ribe
Shopify Partner
10211 2427 3082

Hi @bradpc 

 

Sorry about that. Fixed the issue. Please change the code with the following

product-form.product-form {
    width: 70%;
    position: absolute;
    top: -80px;
    left: 7rem;
}


quantity-selector.quantity.buttons_added > * {
    height: 50px;
}

quantity-selector.quantity.buttons_added {
    border-radius: 7px;
}


#ProductInfo-template--16973026656505__main-product > div:nth-child(6) {
    position: relative;
}
If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
julson11
Explorer
50 1 7

Hi @Made4uo-Ribe 

thanks for your code.
 On my website: "https://weinhausottopaus.myshopify.com/products/weingut-hilz-grauburgunder-trocken-2023?_pos=1&_psq=... password is "lakoer", I also try to fit the "add to cart / In den Warenkorb" button next to the quantity. I also would like to make a thin line around the quantity like it is shown in the images here in the thread.

Could you help me with the correct code?
Which information do you need else?

Thanks a lot in advance!

Best

Julian