If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
I´ve made some modification to only show prices for logged users, but the “add to cart” rollover button still working and adding itens to cart.
I found out that if i remove the “echo $link” from config.php it disappear, but it´s a very cool feature, can i show it only for logged users??
echo “<div class=’thumbnail_container’>”;
echo “<div class=’thumbnail_container_inner’>”;
echo get_the_post_thumbnail( get_the_ID(), ‘shop_catalog’ );
if(!empty($rating)) echo “<span class=’rating_container’>”.$rating.”</span>”;
hoho!!! Found it!!!! If some one needs:
just change echo $link;
if( is_user_logged_in() ) echo $link;
The topic ‘Product Rollover Add to Cart only for logged users’ is closed to new replies.