Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #3408697
Set catalog visibility status
Closed

Comments

  • Tamara started the conversation

    I can't see how to set the catalog visibility status from "shop and search results" to "search only." But I have the premium version of the plugin, and these are standard WooCommerce product statuses, so I assume I'm just not understanding how to do this. What combination of actions and conditions do I need in order to remove a product from the shop page, but allow it to be found in a search?

  •  767
    Janilyn replied

    Hi Tamara,

    Thank you for contacting WPClever Support Forum. 

    We’ve received your request and assigned one of our developers to help you with that. 

    He’ll be looking into your question and responding with specific instructions as soon as possible. 

    Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  1,226
    Dustin replied

    Hi Tamara,

    I'm so sorry for the late reply!

    Please set a product hidden by Timer normally then add the below custom code (How to add custom code?)

    add_filter( 'woopt_ignore', function ( $ignore, $product, $context ) {
        if ( ( $context === 'visible' ) && is_search() ) {
            $ignore = true;
        }
        return $ignore;
    }, 999, 3 );

    This product still is shown on the search page.

    Best regards,
    Dustin