• Resolved tdaholdings2022

    (@tdaholdings2022)


    We are using an attribute called Features in which multiple values may be selected for a given product. We have used AAPF successfully for over a year on attributes that only used one value. I am trying to figure out how to make it work when an attribute has more than one value.

    In the example cited, the attribute uses two values – Kit Contents, and Grounding Style. We could use two separate attributes, but I felt it would be more streamlined to combine these values in one attribute called Features.

    The attribute values display correctly in the widget, but when an item is selected nothing happens. The other attribute filters work fine.

    The page I need help with: [log in to see the link]

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

    (@dholovnia)

    Hi,

    https://www.boundlessoutfitters.com/product-category/marine-alternators/balmar-6-series-marine-alternators/?filters=features%5B306-307%5D

    Page with filters has error Warning: in_array() expects parameter 2 to be array, null given in /home/customer/www/boundlessoutfitters.com/public_html/wp-content/themes/storefront-child/functions.php on line 6. I suppose you have some custom code that can influence the filters.

    Regards,
    Dmytro

    Thread Starter tdaholdings2022

    (@tdaholdings2022)

    The custom code in functions.php was added to prevent two product categories from displaying on the storefront. One of the hidden categories is “uncategorized”. However, the code I copied and pasted must have been written by someone familiar with “The Queen’s” English as opposed to American, because the spelling in the added code was “uncategorised”. I corrected the spelling to match the category name, and everything works now.

    Thank you very much!
    Regards,
    Tim

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Attribute Filter Not Working’ is closed to new replies.