-
AuthorPosts
-
July 6, 2013 at 8:29 pm #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
July 7, 2013 at 4:42 am #128374Hi 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
July 8, 2013 at 1:35 pm #128375I 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
July 10, 2013 at 12:04 am #128376You 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
July 11, 2013 at 1:57 pm #128377Thanks 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
July 12, 2013 at 3:05 am #128378Hi,
Please try this:
.avia_cart_buttons {
display: none;
}
#top.logged-in .avia_cart_buttons {
display: block;
}Regards,
Ismael
July 14, 2013 at 6:44 pm #128379Yes that worked… thank you…
MLL
July 14, 2013 at 7:42 pm #128380Glad we could help :)
I forgot the block would be needed since it wasn’t already added on to them!
Regards,
Devin
-
AuthorPosts
- The topic ‘Woocommerce – Hide add to cart button unless logged in’ is closed to new replies.
