Hi, I want to position the Add to Cart button right below price and above short description on product details page. Could someone look into it any tell me what can I do?
https://www.surewaydm.com/products/silver-hoop-earrings-for-women-serpenti-inspired
Thanks in advance
Hello @surewaydm ,
You can follow these steps:
- Go to Online Store->Theme->Edit code
- Open your theme.liquid file, paste the below code before
I hope the above is useful to you.
Kind & Best regards,
GemPages Support Team
1 Like
Hallo @surewaydm
You can add code by following these steps to change
- Go to Online Store → Theme → Edit code > assets > base.css
paste below code at bottom(base.css)
**.product-form__item.product-form__item--quantity.gutter-ele-top.gutter-ele-bottom.flex {**
**flex-wrap: wrap !important;**
**}**
**.qty-box.qty-box--single.flex.flex-align-ver.flex-align-space-between {**
**width: 20%;**
**order: 2;**
**}**
**button.button.button--one-line.add-cart-btn.button--single-cart.button--cart.flex.flex-align-ver.flex-align-hoz.add-cart-btn--state.por.button--single-cart-main.button--single {**
**order: 1;**
**width: 80%;**
**margin-bottom: 23px;**
**}**
If you require any further information, feel free to contact me.
Best regards,
@GemPages
This code worked like a charm. I did not check how the product page will look on different devices but I hope it would look as good.
Thanks for your help
@harivishwakarma I do not have a base.css file
Go to theme.liquid file paste below code above tag
[details=Show More]
**
Show More
.product-form__item.product-form__item–quantity.gutter-ele-top.gutter-ele-bottom.flex {
Show More
flex-wrap: wrap !important;
Show More
}
Show More
.qty-box.qty-box–single.flex.flex-align-ver.flex-align-space-between {
Show More
width: 20%;
Show More
order: 2;
Show More
}
Show More
button.button.button–one-line.add-cart-btn.button–single-cart.button–cart.flex.flex-align-ver.flex-align-hoz.add-cart-btn–state.por.button–single-cart-main.button–single {
Show More
order: 1;
Show More
width: 80%;
Show More
margin-bottom: 23px;
Show More
}
Show More
@GemPages I just noticed that for the variable product pages, the button is not going under the price.
I would also like to have the variation options to be aligned to the left rather than center.
Can you help with that?
Hello @surewaydm ,
In the usual order of product pages, information will be displayed in the order Product Name > Review > Price > Product Version (if available) > Product Quantity > Add to cart button, In the usual order of product pages, information will be displayed in the order Product Name > Review > Price > Product Version (if available) > Product Quantity > Add to cart button
with align left to variant, You can add this code
Kind & Best regards,
GemPages Support Team
1 Like