Site logo

[Resolved] woocommerce quantity button.

Home Forums Support [Resolved] woocommerce quantity button.

Home Forums Support woocommerce quantity button.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2541088
    Jusung

    Hello!

    When you try to add the product on link to cart,
    you can see the plus and minus button to adjust the quanity.

    I want to put it horizontally, not vertically.
    Can I make it by CSS.>??

    #2541123
    David
    Staff
    Customer Support

    Hi there,

    do you mean like this?

    2023-02-21_12-53-23

    #2541895
    Jusung

    Yes exactly. I want to put it horizontally.

    #2541958
    Fernando
    Customer Support

    Hi Jusung,

    Try adding this through Appearance > Customize > Additional CSS:

    .single-product.woocommerce div.product form.cart {
        flex-wrap: nowrap;
    }
    .single-product.woocommerce div.product form.cart .quantity {
        padding-right: 5px;
    }
    #2542069
    Jusung

    I added the code, but it doens’t change anything..

    #2542086
    Fernando
    Customer Support

    This is what I’m seeing on your site now: https://share.getcloudapp.com/DOulXBR2

    It seems to be working.

    #2542376
    Jusung

    Yeah. there it is what I want.

    But when you click, add cart and view cart, on the cart page, it doesn’t look like that.
    It is aligned vertically on cart page.. I want to put it horizontally.

    #2542531
    David
    Staff
    Customer Support

    In your CSS you have this:

    .quantity {
        padding-right: 100%;
    }

    That is causing an issue with quantity buttons aligning on the product and cart page.

    Can you remove that.

    Then add this CSS to ensure its a flexbox:

    .quantity.buttons-added {
        display: flex;
    }
    #2545850
    Jusung

    thank you! It works!

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.