• Resolved shanthraj

    (@shanthraj)


    Hello There,

    Could you please assist us in removing the out-of-stock product from the slider? We have attempted various methods, but none seem to be effective. Your prompt solution to this issue would be greatly appreciated.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPBean

    (@wpbean)

    Hi,

    You are using our WPB Product Slider plugin on your site.

    You can use this forum for this plugin support: https://www.ads-software.com/support/plugin/wpb-woocommerce-product-slider/

    We have an checkbox in WPB Product Slider Pro plugin’s settings for enable or disable the out of stock products for the slider.

    You can add this PHP code in your theme or child theme’s functions.php for doing the same for the free version.

    add_filter( 'wpb_wcs_shortcode_quary_args', function($args){
    $args['tax_query'][] = array(
    array(
    'taxonomy' => 'product_visibility',
    'field' => 'name',
    'terms' => array('outofstock'),
    'operator' => 'NOT IN'
    ),
    ); // WPCS: slow query ok.

    return $args;
    } );

    The WPB WooCommerce Zoom is our different plugin.

    Thank You

    Thread Starter shanthraj

    (@shanthraj)

    Thank you for the reply it’s working fine now

    Plugin Author WPBean

    (@wpbean)

    Good to hear that. Please give the plugin a 5-star rating if you found this plugin helpful.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.