Site logo

[Resolved] add to cart button missing from variable product on mobile

Home Forums Support [Resolved] add to cart button missing from variable product on mobile

Home Forums Support add to cart button missing from variable product on mobile

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1995159
    sparkle

    hi there, i noticed on this site, my variable product does not have the ‘add to cart’ button on it, how can i get it back?

    #1995182
    Ying
    Staff
    Customer Support

    Hi there,

    Can you find this CSS you added to your child theme? https://www.screencast.com/t/nMcVxYR0q

    .add-to-cart-panel form.cart, .woocommerce div.product form.cart {
        flex-wrap: inherit!important;
    }

    Try remove it, or add an media query to it, the issue should be fixed, eg:

    @media (max-width: 768px) {
    .add-to-cart-panel form.cart, .woocommerce div.product form.cart {
        flex-wrap: inherit!important;
    }
    }
    #1995815
    sparkle

    thank you.

    #1995826
    sparkle

    i think i had added that so the woo booster flexible price items appeared properly (the default is with the $ after the entry field but before the add to cart button), but now they’re all in the right order but 100% wide…

    #1996119
    David
    Staff
    Customer Support

    Hi there,

    the width 100% is coming from this CSS:

    body.woocommerce div.summary.entry-summary form.cart input#wcj_open_price.text, div#product-2442 div.summary.entry-summary form.cart button.single_add_to_cart_button.button.alt {
        width: 100% !important;
        order: 2;
        margin:2px
    }
    #1996122
    sparkle

    thanks. i’ll adjust… 🙂 you guys are great. <3

    #1996123
    David
    Staff
    Customer Support

    Glad we could be of help 🙂

    #1996344
    sparkle

    actually on smallest screens, it’s still not showing the add to cart button…. why?

    https://imgur.com/a/HKKgPq7

    #1996349
    sparkle

    oh nevermind, i found the culprit. 🙂

    #1996485
    David
    Staff
    Customer Support

    Glad to hear that!

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