Site logo

Archived topic

Quantity Woocommerce

13 replies · Started by Alin on February 9, 2021

Viewing posts 1–14 of 14

Hello, i need some help whitt the quantity code.

So, woocommerce doesn't have the option to display quantity button under each product on the shop page. So i search the internet and i found a code. I want to display the quantity buttons under the price, but every css i have tried dind't do the job.
The worse part is that when i tried to modify the css, it breaks the settings of the "add to cart button" on the single product page.
Is there any other way to add the quantity buttons on the shop page ?
PLEASE HELP
This is my shop page: https://somelierultau.ro/magazin/

Hi there,

your shop and product pages are constructed with Elementor - as there templates are overriding the default Woo templates you would be best to ask their support on how to do that.

I understand.
But how about this page: https://somelierultau.ro/test/
I can't seem to align them in column whit every element on the same row and hight.
Is not build whit elementor, just the footer.

Can you disable your cache plugin so i can see whats happening

I have disable it.

You could try adding this, might help:

.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
}

Aligns everyrhing else bunt not the quantity button.

You have this CSS added somewhere that's causing the issue:

.woocommerce div.product.elementor .quantity .qty {
    margin-top: -50px;
}

Nope....i've removed that code and nothing changes.

It affects the mai store build whit Elementor. But if you remove that code, then on the single product page, the quantity button breaks.
I want to display it in column, above the add to cart button just like on this page: https://somelierultau.ro/test/
but is slightly on the left and i can't seem to make it right. I will not use elementor on the shop page if I can get this setting right.

Can you please make sure LiteSpeed is always disabled when we are trying to help?

Now i have literally deactivated the LiteSpeed plug-in.

So the problem on this page:
https://somelierultau.ro/test/

Is that the quantity field is not centered?

If so try this CSS:

.quantity.buttons-added {
    justify-content: center;
}
This archived topic is closed to new replies.