This topic has 4 replies, 3 voices, and was last updated 5 years, 11 months ago ago by Olga Barlow
Good Morning
I still have problems with this pluging official extension of Woocommerce “Advanced Product Labels”. Now, when I use the search for a product, you can check it on my page http://www.entrehilados.com, I get the following message:
Warning: Illegal string offset ‘conditions’ in /var/www/vhost/entrehilados.com/home/html /wp-content/plugins/woocommerce-advanced-product-labels/class-wapl-global-labels.php on line 74.
In Woocommerce, they tell me that this is a problem, and it is true that when I change the theme it works normally, it does the searches correctly. What I can do?
This problem I already had with the previous version 2.1. of Classico and with the new one 2.3.1. also
Regards,
Elsa
Hello,
Do you have information about hooks from the plugin?
Please provide correct FTP access. We will check what can be done to help you.
Regards
Hello Elsa!
The plugin is the official WooCommerce. I pass the documentation to you: https://docs.woocommerce.com/document/woocommerce-advanced-product-labels/
Tell them that I installed the plugin https://wordpress.org/plugins/simply-show-hooks/ and the hooks they use from WooCommerce come out to put their actions inside the WooCommerce locations:
For example in WooCommerce action hook “woocommerce_before_shop_loop_item_title” with priority 15 puts two functions:
WAPL_Single_Labels-> product_label_template_hook
WAPL_Global_Labels-> global_label_hook
But with each type of label they can include it in a different hook.
You can see all the hooks of the WooCommerce store template at: https://businessbloomer.com/woocommerce-visual-hook-guide-archiveshopcat-page/
Let’s see if they can solve it;).
I hope it helps you! A greeting!
Hello,
Contact plugin author and ask to add the code below to class-wapl-global-labels.php
if ( ! is_array( $label ) || ! isset( $label['conditions'] ) ) {
continue;
}
Or disable search by SKU in Theme Options.
Regards
You must be logged in to reply to this topic.Log in/Sign up