• How can I exclude a specific product from the best sellers list? Please explain for detail maybe include screen shoot

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter halimivan1335

    (@halimivan1335)

    Hi….

    How can I exclude a specific product/category from the best sellers list? Could you explain for more detail? Maybe with screen shoot

    Thank you!

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,
    this feature is not present in this version of the plugin.

    Thread Starter halimivan1335

    (@halimivan1335)

    I have version premium

    Thread Starter halimivan1335

    (@halimivan1335)

    I already read that. But i don’t understand how to put in at my website. Could you explain more? Or send a screen shoot.

    add_filter( ‘yith_wcbs_remove_best_seller’, ‘yith_wcbs_remove_best_seller’, 10, 3 );

    if( ! function_exists( ‘yith_wcbs_remove_best_seller’ ) ){
    function yith_wcbs_remove_best_seller( $remove, $product, $bs_product ){
    if( $product instanceof WC_Product ){
    $product_ids_to_remove = array( 15, 75, 321 );

    if( in_array( $product->get_id(), $product_ids_to_remove ) ){
    $remove = true;
    }
    }

    return $remove;
    }
    }

    Thx

    Halim Ivan

    Plugin Author YITHEMES

    (@yithemes)

    Hi Ivan,
    for any issue or question concerning the premium version of the plugin, please, write to our support service at yithemes.com/my-account, otherwise it could be misleading for other users here on wordpress.org. Don’t worry, our support developers will certainly help you solve the issue you are experiencing.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Exclude category’ is closed to new replies.