Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #25839

    ENFOLD

    I would like to hide the “Add to Cart” button on product thumbnails… unless the user is logged in but still keep the “Show Details” button…

    How can I do this?

    MLL

    #128374

    Hi FLSouthPaw,

    That isn’t something we can assist with via the support forums. It would need to be done with either an extension to woocommerce or by a freelance developer.

    Regards,

    Devin

    #128375

    I do have a plug in “Catalog Visibility Options” that does this and works perfectly for the logged in/ logged off stuff and it can replace the standard Woo Buttons… but the clincher has to do with the avia cart icons… Since Enfold uses its own Add to cart/Show Details icons… these are not modified by that… I can totally remove them:

    .avia_cart_buttons {

    display: none;

    }

    and this semi-solves the problem but now the add to cart/show details are gone when logged in the only place the add to cart button appears is on the product details page… would like the avia cart buttons to pop back up when logged on somehow below the product listings again…

    Thanks,

    MLL

    #128376

    You should be able to use #top.logged-in in your css selector in that case to show the items only when logged in. IE:

    .avia_cart_buttons {
    display: none;
    }

    #top.logged-in .avia_cart_buttons {
    display: initial;
    }

    Regards,

    Devin

    #128377

    Thanks that sort of worked.. shows the cart buttons only when logged in but they are on top of each other… take a look…

    http://postimg.org/image/ttflu5efd/

    if I remove the above css they load properly…

    Thanks

    MLL

    #128378

    Hi,

    Please try this:

    .avia_cart_buttons {
    display: none;
    }

    #top.logged-in .avia_cart_buttons {
    display: block;
    }

    Regards,

    Ismael

    #128379

    Yes that worked… thank you…

    MLL

    #128380

    Glad we could help :)

    I forgot the block would be needed since it wasn’t already added on to them!

    Regards,

    Devin

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Woocommerce – Hide add to cart button unless logged in’ is closed to new replies.