Quantity selector and variant on the same line - Pipeline Theme

Solved

Quantity selector and variant on the same line - Pipeline Theme

Kreamch
Excursionist
34 0 6

Hello,

As the title mentions, I would like to have in the same row/line the variant and quantity selector (quantity on the right side). Below you can find a picture for reference of what I intend and here is the link to a product page of my store: https://kream.ch/products/im-from-mugwort-essence-160-ml

 


Let me know if more information is required.
Thank you in advance for your support.

1231233.jpg

Accepted Solutions (2)

Sweans
Shopify Partner
429 89 126

This is an accepted solution.

Hi @Kreamch ,

To align the variant and quantity selectors in the same row, you will need some coding knowledge. Please follow these steps:

1. In your Shopify admin, navigate to "Online Store" under Sales Channels. Click the "Customize" button for the theme you wish to modify. If you want to make changes directly to the live theme, select the first theme. Refer to the screenshot for guidance.

Sweans_0-1721282029362.png

 



2. Click on a product shown on the homepage, which will direct you to the product template. Click on a blank area to add the CSS in the custom CSS section. Please refer to the screenshot.

Sweans_1-1721282077044.png

 

Sweans_2-1721282113329.png

 



3. Add the following code to the custom CSS section and save:

 

.product__block__variants {
display: inline-block;
max-width: 280px;
width: 64%;
}
.product__block__quantity {
display: inline-block;
width: fit-content;
}

 

Please refer to the screenshot for more details. If you need further assistance, feel free to reach out!
I hope this helps! If it does, please like it and mark it as a solution!

Regards,

Sweans

- Was my reply helpful? Please Like and Accept the Solution or let me know by Buying me coffee!
- Want to modify or custom changes on store Hire me.
- Feel free to contact me at info@sweans.com regarding any help.
- To know more about me check out www.sweans.com

View solution in original post

Sweans
Shopify Partner
429 89 126

This is an accepted solution.

Please make the following changes and add the new media queries to the CSS to resolve the issue with the mobile and tablet views:

.product__block__variants

{
/* Please add this code to the existing CSS */
padding-right: 5px;
}
.product__block__quantity {
/* Please add this code to the existing CSS */
padding-bottom: 0 !important;
}
input.quantity__input {
height: 48px !important;
}

@media only screen and (max-width: 960px) {
.product__block__variants {
width: 69%;
}
.product__block__quantity {
width: 29%;
}
}

@media only screen and (max-width: 540px) {
.product__block__variants {
width: 71%;
}
.product__block__quantity {
width: 27%;
}
}

If you need further assistance, feel free to reach out!
I hope this helps! If it does, please like it and mark it as a solution!

Regards,
Sweans

- Was my reply helpful? Please Like and Accept the Solution or let me know by Buying me coffee!
- Want to modify or custom changes on store Hire me.
- Feel free to contact me at info@sweans.com regarding any help.
- To know more about me check out www.sweans.com

View solution in original post

Replies 5 (5)

Entesta
Shopify Partner
80 8 20

Hi @Kreamch 

The change you are looking for will require CSS and Liquid file updates. We can help you out to achieve this in a couple of hours.

Screenshot - 2024-07-18T105053.172.png

 

Please write an email to support@entesta.com to create a request for the same.

Thank you.

We value your feedback! Let us know if this helped by giving it a thumbs up or marking it as a solution or buy us a coffee.
Looking for Shopify experts to help you with your website? We are just one click away. Drop an email or say hi on WhatsApp to initiate a request support@entesta.com | +91 79083 21294
Entesta - Powering Your E-Commerce Journey with Shopify Expertise

Sweans
Shopify Partner
429 89 126

This is an accepted solution.

Hi @Kreamch ,

To align the variant and quantity selectors in the same row, you will need some coding knowledge. Please follow these steps:

1. In your Shopify admin, navigate to "Online Store" under Sales Channels. Click the "Customize" button for the theme you wish to modify. If you want to make changes directly to the live theme, select the first theme. Refer to the screenshot for guidance.

Sweans_0-1721282029362.png

 



2. Click on a product shown on the homepage, which will direct you to the product template. Click on a blank area to add the CSS in the custom CSS section. Please refer to the screenshot.

Sweans_1-1721282077044.png

 

Sweans_2-1721282113329.png

 



3. Add the following code to the custom CSS section and save:

 

.product__block__variants {
display: inline-block;
max-width: 280px;
width: 64%;
}
.product__block__quantity {
display: inline-block;
width: fit-content;
}

 

Please refer to the screenshot for more details. If you need further assistance, feel free to reach out!
I hope this helps! If it does, please like it and mark it as a solution!

Regards,

Sweans

- Was my reply helpful? Please Like and Accept the Solution or let me know by Buying me coffee!
- Want to modify or custom changes on store Hire me.
- Feel free to contact me at info@sweans.com regarding any help.
- To know more about me check out www.sweans.com

Kreamch
Excursionist
34 0 6

Hi @Sweans, thank you very much for the solution you provided. It was well explained and more important, it works.
I played a bit with the max width (292) and width (76%) of the variant block in order to fit the fit the content. You can observe the result in the picture below.

QTYtoVariant.png

 

I would like for the quantity block to have the same height (top and bottom) of the variant block, and if possible to have a little more space between  the 2 blocks (variant and qty). Lastly, i noticed this css works only on web version, would it be possible for it to be operational also on the mobile version?
Thank you very much!

Sweans
Shopify Partner
429 89 126

This is an accepted solution.

Please make the following changes and add the new media queries to the CSS to resolve the issue with the mobile and tablet views:

.product__block__variants

{
/* Please add this code to the existing CSS */
padding-right: 5px;
}
.product__block__quantity {
/* Please add this code to the existing CSS */
padding-bottom: 0 !important;
}
input.quantity__input {
height: 48px !important;
}

@media only screen and (max-width: 960px) {
.product__block__variants {
width: 69%;
}
.product__block__quantity {
width: 29%;
}
}

@media only screen and (max-width: 540px) {
.product__block__variants {
width: 71%;
}
.product__block__quantity {
width: 27%;
}
}

If you need further assistance, feel free to reach out!
I hope this helps! If it does, please like it and mark it as a solution!

Regards,
Sweans

- Was my reply helpful? Please Like and Accept the Solution or let me know by Buying me coffee!
- Want to modify or custom changes on store Hire me.
- Feel free to contact me at info@sweans.com regarding any help.
- To know more about me check out www.sweans.com

Kreamch
Excursionist
34 0 6

Works!
Thank you very much