• Resolved papermelon

    (@papermelon)


    Hi,

    When the product is single quantity and hence there is no qty box, the add to cart has space on the left, due to which it does not align with the title, price and description. How can I solve this?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi @papermelon,

    In order for us to better assist you, could you please provide a screenshot highlighting the exact element you need assistance with? I tried reviewing your website but it seems fine from our end.

    Looking forward to your response.

    Kind regards,?
    Aradhy ??

    Thread Starter papermelon

    (@papermelon)

    Hi, Please find the screenshot to see how the Add to cart is misaligned with the title price and description.

    Hi @papermelon,

    The misalignment is because the quantity buttons are active on the page. You can try adding the following code to Customize > Additional CSS:

    .woocommerce-js div.product form.cart div.quantity
    {
     display: none;
    }

    Hope this helps!

    Kind regards,
    Aradhy ??

    Thread Starter papermelon

    (@papermelon)

    Hi,

    It solves the issue, but removes the qty button for the products with multiple quantities also.

    Is it possible to further customise this to only hide qty for single qty products?

    Thanks!!!

    Hi @papermelon,

    It seems that the quantity buttons are indeed visible on multiple quantity pages. It’s just that you need to configure the variations first. Refer to this screenshot, please.

    Furthermore, the misaligned appearance of the buttons seems to be coming from WooCommerce CSS. Could you please switch to the Storefront theme and then check if they still appear that way?

    Kind regards,
    Aradhy ??

    Thread Starter papermelon

    (@papermelon)

    Hi Aradhy,

    The misaligned qty box is appearing when the above code was added. Upon removing the code, the qty box looks fine. Only, the initial problem of space on the left side of add to cart for single qty products remains.

    Also, I tried switching to Storefront theme, this issue is not there, all buttons are aligned. (pls find the screenshot attached)

    Hi @papermelon,

    Please try updating the CSS code I shared with the following code:

    .woocommerce-js div.product form.cart div.quantity
    {
      margin: 0;
    }

    Kind regards,
    Aradhy ??

    Thread Starter papermelon

    (@papermelon)

    Thanks a lot, that worked!

    Happy to help!

    Feel free to mark this ticket as resolved, but don’t hesitate to reach out if you need any further assistance in the future.

    Best regards,
    Aradhy ??

    Thread Starter papermelon

    (@papermelon)

    Resolved ??

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