• Resolved pandedollyo

    (@pandedollyo)


    Hello,
    I have a private product (special offer) where I want to put your timer, but I can’t choose the private product from the dropdown list.
    Can you help me with that?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nabil Lemsieh

    (@nlemsieh)

    Hi @pandedollyo

    We’ll be adding the possibility to put timers in private products in the next release.
    As workaround, you can add this code snippet under Appearance menu > Theme Editor > functions.php:

    add_action( 'pre_get_posts', function( $query ){
    	if( isset( $_GET['action'] )  &&
    	  $_GET['action'] === 'wcSearchProducts' &&
    		$query->get( 'post_type' ) === 'product' ){
    		$query->set( 'post_status', 'any' );
    	}
    });

    Best,
    Nabil

    Thread Starter pandedollyo

    (@pandedollyo)

    That worked! Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding Timer To Private Product’ is closed to new replies.