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
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
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
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
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
Hi,
Please try this:
.avia_cart_buttons {
display: none;
}
#top.logged-in .avia_cart_buttons {
display: block;
}
Regards,
Ismael
Yes that worked… thank you…
MLL
Glad we could help :)
I forgot the block would be needed since it wasn’t already added on to them!
Regards,
Devin