Hi guys,
Would like to relocate “Add to cart” button and QTY inside the product cart in collection, Debut theme.
Thank you
Hi guys,
Would like to relocate “Add to cart” button and QTY inside the product cart in collection, Debut theme.
Thank you
Hello @Alliance !
You can relocate the add to cart button and quantity picker by adding custom code to your theme file.
Hi @Alliance
Please follow these steps:
Go to Online Store > Theme > Edit Code, then go to the assets folder. Please try adding the following code in any JS file until it looks like you want, usually a theme.js file:
if(window.location.href.indexOf("allianceautoproducts.com/collections") > -1) {
const list = document.querySelectorAll(".grid-view-item.product-card");
const addDiv = document.querySelectorAll(".grid__item.grid__item--collection-template.small--one-half.medium-up--one-quarter form");
var index = 0;
list.forEach(l => {
l.style.height = "auto";
l.appendChild(addDiv[index])
index ++;
})
}
I hope that it will work for you.
@media only screen and (min-width: 750px){
.input {
margin: 3px 0;
width: 138px;
}
}