• When you turn on the plugin, all the “Husky (formerly known as WOOF) plugin” filters stop working (the regular version)

    The “Woof-by-category” plugin always returns an empty array of filters.

    I looked at the code. I have an assumption that the problem lies in the fact that I use the SLUG as a numeric value. When saving the filter settings, if the SLUG is a string, then everything is fine. If the SLUG is a number, then the settings array contains a sequence number instead of the true SLUG. In the process, “Woof-by-category” starts going through the parent categories to change the filter from “Husky” and compares my SLUG with an incomprehensible number, the history of which is a mystery to me.

    I’m not good at PHP, but I’m willing to spend two more days to get to the truth.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author kaggdesign

    (@kaggdesign)

    Could you explain step by step on how to reproduce the problem?

    Thread Starter alexkononets

    (@alexkononets)

    In short.
    You turn on the “Woof-by-category” plugin and “Husky” stops displaying any filters.

    I’m afraid that such information will not help solve the problem (

    In debugging, you can see that after working out all the functions of the plugin, an empty array is returned to Husky.

    This is a “working” array that is filled in at the beginning of the plugin.

    [18-Apr-2024 14:36:21 UTC] 3
    [18-Apr-2024 14:36:21 UTC] Array
    (
    [group] => 3
    [uid] => category
    [label] => Категория товара
    [section] => first_section
    [type] => select
    [options] => Array
    (
    [] => --Выберите категорию--
    [*] => -Фильтры по умолчанию-
    [/] => -Страница магазина-
    [alt_coffee] => cat1
    [0] => cat2
    [1] => cat3
    [2] => cat4
    [3] => cat5
    [4] => cat6
    [accessories] => cat7
    [5] => cat8
    …..
    [145] => catХХХ

    I am confused by the indexes in the array. Then the function takes the index of the array, for example “7” and compares it with the category slug, which I have and, for example, is equal to “45795”. The condition is not fulfilled.

    I repeat that I may not have fully figured out how the plugin works. My profile is Assembler and Oracle ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘When you turn on the plugin, all “Husky (woof)” filters stop working’ is closed to new replies.