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

Husky breaks ACF Functionality

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.

Greetings everyone<

I have the same problem described in this post https://pluginus.net/support/topic/husky-breaks-acf-functionality/  

Unfortunately though Pablo didn't mentioned what kind of changes he did and worked.

If I try to comment the function get_all_acf_meta()  in /wp-content/plugins/woocommerce-products-filter/ext/acf_filter/index.php from line 56 to line 112 I get error 500.

Can you please post what is the fix and where needs to be placed / modified cause it's quite urgent?

Thanks a lot.

Hello

Try in  file - \wp-content\plugins\woocommerce-products-filter\ext\acf_filter\index.php - add  code - https://share.pluginus.net/image/i20230621192647.png

$add = false;
if(isset($item['location']) && is_array($item['location'])){
foreach($item['location'] as $location) {
if( $location[0]["param"] == 'post_type' && $location[0]["operator"] == '==' && $location[0]["value"] == 'product'){
$add = true;
}
}
}
if (!$add) {
continue;
}

Hey there Pablo,

Your code is working perfectly.  I replaced the post type to product in this part of the code

if( $location[0]["param"] == 'product' && $location[0]["operator"] == '==' && $location[0]["value"] == 'product')

and worked like a charm.

Thanks a lot.

Will you deploy the fix in the next update of the plugin ?

Hello

Yes, we will fix it in the next version.

Quote from Nick on June 29, 2023, 13:38

Hey there Pablo,

Your code is working perfectly.  I replaced the post type to product in this part of the code

if( $location[0]["param"] == 'product' && $location[0]["operator"] == '==' && $location[0]["value"] == 'product') 

and worked like a charm.

Thanks a lot.

Will you deploy the fix in the next update of the plugin ?

Hello

Update will be this week and the fix is there