VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: alinamn on October 27, 2020, 10:18:01 AM

Title: Quantity button
Post by: alinamn on October 27, 2020, 10:18:01 AM
Hi,
The quantity button in the cart is not working, so it's not possible to add to that field. http://marketinghorloger.ch/index.php/e-shop
Please advise. Thanks.
Title: Re: Quantity button
Post by: jenkinhill on October 27, 2020, 10:53:35 AM
It does actually work for me but the display of the quantity box and  +/- sprite is bad - also bad display on the category & product details page. You should either use a beter template of fix the CSS.
Title: Re: Quantity button
Post by: GJC Web Design on October 27, 2020, 12:35:34 PM
add

span.quantity-controls input.quantity-controls {
    padding: 0;
}

span.addtocart-button input.addtocart-button {
    line-height: unset;
}
Title: Re: Quantity button
Post by: alinamn on October 27, 2020, 16:17:40 PM
GJC Web Design,
Where do I add this? is it in the CSS of the template?
Title: Re: Quantity button
Post by: GJC Web Design on October 27, 2020, 19:44:10 PM
css works anywhere .. normally it would be put in a custom.css or similar
depends entirely on your template
Title: Re: Quantity button
Post by: alinamn on October 27, 2020, 20:52:44 PM
I just added the code to the custom css and it fixed the spacing problems in the shop, but the shopping cart problem is still there. I can not add any numbers in the quantity box.
Title: Re: Quantity button
Post by: GJC Web Design on October 27, 2020, 23:20:36 PM
.cart-summary .quantity-input {
    padding: 0 !important;
}
Title: Re: Quantity button
Post by: alinamn on October 28, 2020, 11:02:15 AM
GJC Web design. Thank you so much. You solved my problem!
Title: Re: Quantity button
Post by: GJC Web Design on October 28, 2020, 11:32:43 AM
 :)