• Is it possible to create a full width(same width with my add to cart button) by customizing your php file.

    I already have a full width add to cart button and i would like to show the quantity button just above the add to cart button with same width. Please check the example that i want to have. https://ibb.co/yQyzRyk

    How can we do that?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter aykutyildizzz

    (@aykutyildizzz)

    I mean, i would like to get a responsive full width container. at your settings i can adjust width in pixels but it’s not responsive, the appearance changes with each device.

    Plugin Author taisho

    (@taisho)

    Hello,

    The only CSS layout I supported so far is the quantity increment buttons, with an input field and Add to cart button in one line. I think it looks pretty good, also on slim mobile devices (product page):

    https://i.imgur.com/KyXJ3xo.png

    Here is what I came up with on shop page, the width of the buttons is set in the plugin settings, the quantity input field width fills the remaining horizontal space of its parent container, is this what You are after?:

    https://i.imgur.com/A6YD8iw.png

    Best regards,

    Ryszard

    • This reply was modified 5 years, 8 months ago by taisho.
    • This reply was modified 5 years, 8 months ago by taisho.
    Thread Starter aykutyildizzz

    (@aykutyildizzz)

    Thanks a lot for your fast and friendly support. Yes that’s what i mean. It’s used like that on best converting shopify stores. Please check the example: https://debutifydemo.myshopify.com/products/chaoswen?variant=21139546603579

    My store is currently seen as : https://ibb.co/Wt6YX3C

    I have a full width add-to-cart button. When i resize it to full width the quantity button automatically goes above the cart button

    Plugin Author taisho

    (@taisho)

    Thanks for the confirmation. I’m working on a medium-sized update and plan to release it in a week. I will add an option in plugin settings to keep the Add to cart button and quantity buttons with a quantity input field in separate lines, where the input field’s width will automatically fill the remaining width of its container. It will be available only if the merged buttons setting is selected. Both the product page and archive pages will be addressed.

    For now, this is what can be used on an archive page in the child’s theme CSS to override the existing layout, but it requires more checking and extending to the product page too:

    This moves Add to cart button to the next line instead of keeping it in the same line through inline-block:

    form.cart button[type=submit]:not(#qib_id):not(#qib_id), .add_to_cart_button:not(#qib_id):not(#qib_id), form.cart .qib-container+div:not(#qib_id):not(#qib_id) {
        display: block;  
    }

    Because display: flex eliminates a break which appeared after display: inline-blockwhich we are replacing, margin-bottom needs to be added:

    .qib-container:not(#qib_id):not(#qib_id) {
        display: flex;
        margin-bottom: 10px;
    }

    Change input element to have 100% of available width instead of a fixed number of pixels from plugin’s settings:

    .qib-container .quantity input.qty:not(#qib_id):not(#qib_id) {   
        width: 100%;  
        max-width: 100%;  
    }

    div container of the input element needs to be similarly resized:

    .qib-container div.quantity:not(#qib_id):not(#qib_id) {
        width: 100%; 
        max-width: 100%;
    }

    Best regards,

    Ryszard

    • This reply was modified 5 years, 8 months ago by taisho.
    Thread Starter aykutyildizzz

    (@aykutyildizzz)

    Thanks a lot for the response. I have tried to change values from your php file but it didn’t work. I am also not good at programming. It’s better to wait for the update :))

    Plugin Author taisho

    (@taisho)

    Hello,

    I’m sorry but the feature will have to wait a bit longer, I expect to have it in 2 weeks. A bit of stuff with higher priority, especially compatibility issues with popular themes, came out and I couldn’t find enough time for it to be in today’s release. Fortunately, my to-do list is now rather short.

    Best regards,

    Ryszard

    • This reply was modified 5 years, 6 months ago by taisho.
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Is it possible to create a full width qty button?’ is closed to new replies.