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

PhP Warning after upgrade to PhP v8

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.

Hello – I am suddenly getting a PhP warning message:

Warning: Trying to access array offset on value of type null in wp-content/plugins/woocommerce-products-filter/installer/includes/class-installer-theme.php on line 565

after upgrading to PhP v8. It seems to appears on every admin (backend) page that I visit.

I also sometimes get an identical error message as well, but referring to

/public_html/wp-content/plugins/woocommerce-products-filter/installer/includes/class-installer-theme.php on line 827

I am running version 2.2.3 of the WooCommerce Products Filter plugin. WordPress version is 6.8.1, WooCommerce version is 9.8.5.

Please advise. Thanks.

Hello

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png

Update the plugin to latest version - https://products-filter.com/how-to-make-auto-update-for-wordpress-plugins-and-themes-bought-on-envato

Hello - I have updated to the latest version and the PhP warning messages have gone. However, I am now seeing another issue. I have enabled the Sticky Header option for my theme (Kadence) but the filter is still appearing in the space at the top of the page that should be occupied exclusively by the header when I scroll downwards on the page. Please see https://dunbarmedical.com/product-category/first-aid/ for an example of this.

 

In addition, is there a way to hide the price range slider when logged out (perhaps using CSS)?

Thanks.

 

Hello

To get  license  key - https://codecanyon.net/downloads -> https://c2n.me/49ZXJv0.png

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png

Hello - I have pasted the contents of the License certificate & purchase code file into the space you have indicated. Thanks.

Please renew your support

Add this CSS

.woof_sid.woof_sid_auto_shortcode .woof_redraw_zone {

z-index: 10;

}

clear all cache and press Ctrl+F5  and do a test

In addition, is there a way to hide the price range slider when logged out (perhaps using CSS)?  - Unfortunately no. In this case you need code customization, for example add a class to body if the user is logged in and after that you can hide any element using CSS

Thanks. Support has been renewed.

There is still a portion of the filter that appears in the header area when I scroll down - it's the Clear All button that appears after a selection has been made (as well as the selections themselves). See https://dunbarmedical.com/brands/bioskin/ as an example. Is there a way to use CSS to also make that section invisible in the header area?

 

In addition, regarding the price range slider - can it be suppressed (when logged out) using PhP or some means other than CSS?

 

Thanks.

Hello

Please add this CSS

body .woof_products_top_panel {

z-index: 9;

}

You can try to add this code in functions.php

add_filter('woof_custom_filter_items_order', function($items_order, $id){
if(is_user_logged_in()) {
return $items_order;
}
foreach($items_order as $index => $key) {
if('by_price' == $key) {
unset($items_order[$index]);
}
}
return $items_order;
}, 10, 2);

Thanks. Except for the PhP code above, these fixes are all working as intended. I'm not sure why the PhP is not suppressing the price range slider when logged out.

In addition, I have been testing all of the these fixes on the staging site (staging.dunbarmedical.com)  and none of them seems to work there. Is there any reason for that?

Hello

So you didn't insert this code correctly.

Hello - I'm not sure why but the CSS code is not working on the staging site. This is the code I added there (as far as I can see, it is identical to what was added on the production site, where it is working fine):

.woof_sid.woof_sid_auto_shortcode .woof_redraw_zone {
z-index: 10;
}
body .woof_products_top_panel {
z-index: 9;
}

Can I ask you to take a look at this? I am trying to keep my staging and production sites as identical as possible. You can see the staging site at https://staging.dunbarmedical.com/?woo-share=UsfF8PHjThPsd9uQH92tr87pm2ARNAkA

In addition, I do have one more question - what are the steps to remove the magnifying glass and filter from the top of the product grid and place them along the left side of the page instead? Thanks.

Hello - I think everything is working now, so we can close this ticket.

Hello

Great! Welcome;)