PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Old snippet conflict with theme (need to show products in stock only)

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi, I have the paid version of this plugin. A couple of months ago the author put a snippet to my functions.php file because when filtering my products out of stock products were showing as well.

Now this snippet is causing conflict with my Avada theme and Woocommerce, I could not see the editor anymore and upload pictures. Once I removed the snippet all went back to normal, but now when I filter the products out of stock products are showing again.

Please help.

What I had before in my functions.php file was this

 

add_filter('woof_get_request_data', 'my_woof_get_request_data');

function my_woof_get_request_data($data){
$data['stock']='instock';
return $data;
}

function defer_parsing_of_js ( $url ) {
if ( FALSE === strpos( $url, '.js' ) ) return $url;
if ( strpos( $url, 'jquery.js' ) ) return $url;
return"$url' defer";
}
add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );

Hello

Paste your license key here - https://c2n.me/43SC6rb.png -> https://c2n.me/42HBIt7.png and  wp-admin access - https://c2n.me/42BAoj4.png