Advertisement
Guest User

Woocommerce log in to view products

a guest
Mar 13th, 2014
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Displayed when no products are found matching the current query.
  4.  *
  5.  * Override this template by copying it to yourtheme/woocommerce/loop/no-products-found.php
  6.  *
  7.  * @author      WooThemes
  8.  * @package     WooCommerce/Templates
  9.  * @version     2.0.0
  10.  */
  11.  
  12. if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
  13. ?>
  14. <div class="rollar-message woocommerce-info">
  15.     <?php
  16.     if ( !is_user_logged_in() ) {
  17.         _e( 'Please log in to view products.' );
  18.     } else {
  19.         _e( 'No products found which match your selection.', 'woocommerce' );
  20.     }
  21.     ?>
  22.     <a href="#" class="toggle">Toggle</a>
  23. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement