Extensión oficial de Woocommerce "Advanced Product Labels"

This topic has 4 replies, 3 voices, and was last updated 5 years, 4 months ago ago by Olga Barlow

  • Avatar: entrehilados
    entrehilados
    Participant
    December 3, 2018 at 10:09

    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

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 3, 2018 at 10:35

    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

    Avatar: entrehilados
    entrehilados
    Participant
    December 3, 2018 at 13:00

    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!

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 5, 2018 at 12:31

    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;
    }

    http://prntscr.com/lqzm2q

    Or disable search by SKU in Theme Options.

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.