Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10210

    Hi,

    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??

    CONFIG.PHP part

    echo “<div class=’thumbnail_container’>”;

    echo “<div class=’thumbnail_container_inner’>”;

    echo get_the_post_thumbnail( get_the_ID(), ‘shop_catalog’ );

    echo $link;

    echo “ID).”‘>”.__(‘Show Details’,'avia_framework’).”“;

    if(!empty($rating)) echo “<span class=’rating_container’>”.$rating.”</span>”;

    Tks

    #67266

    hoho!!! Found it!!!! If some one needs:

    just change echo $link;

    to

    if( is_user_logged_in() ) echo $link;

    #67267

    Hey!

    Glad that you found the solution :)

    Best regards,

    Peter

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Product Rollover Add to Cart only for logged users’ is closed to new replies.