Home Forums WoodMart support forum What is the difference between and andor?

What is the difference between and andor?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #454914

    cmeng7680
    Participant

    What is the difference between and andor?

    Attachments:
    You must be logged in to view attached files.
    #455096

    Hi,

    In WoodMart WooCommerce Layered Nav, “query” and “or” are two different options that determine how the filters in the layered navigation are applied.

    “Query” refers to the default behavior of filtering products that match all selected attributes. For example, if a customer selects “color: red” and “size: medium,” the resulting product list will show only products that have both the “red” and “medium” attributes.

    “On” the other hand, “or” allows customers to see products that match any selected attributes. For example, if a customer selects “color: red” and “size: medium” with the “or” option enabled, the resulting product list will show products that have either the “red” or “medium” attribute, as well as those that have both.

    So, the key difference between “query” and “or” is in how the product list is filtered based on the selected attributes. The “query” option requires all selected attributes to match, while the “or” option allows any selected attribute to match.

    Best Regards.

Viewing 2 posts - 1 through 2 (of 2 total)