FacetWP Conditional Logic

1.4.1
Sale!

$19.80$59.40

Share on facebook
Share on twitter
Share on pinterest
Share on vk
Share on email
Clear
SKU WT25166 Category Tag

This add-on lets you toggle facets (and other elements) based on certain conditions

First, we add a Ruleset. Each Ruleset contains Conditions (IF) and Actions (THEN).

Conditions

Conditions determine what to test for.

Let’s say you want to do something on yoursite.com/demo/cars/ if the “Make” facet has bmw selected. You’d add the following conditions:

If a ruleset has no conditions, then its actions will always be applied.

Actions

Actions determine what to do. Each action has 2 inputs:

  • Toggle – Show or Hide
  • Object – A facet, all facets, the template, or a custom selector
  • Else – What to do when the rulseset doesn’t match (Do the opposite, or Do nothing)
  • Using custom selectors

    • Click the “Add action” button
    • In the second dropdown, choose the Selector option
    • A new input box will appear, in which you can enter jQuery selectors (one per line).

    To toggle a facet’s parent container (.widget) you’d use:

    Targeting empty facets

    In the “Custom selector” box (see above), enter $EMPTY.

    If you need to target the facet’s parent element instead, you’d use:

    Changelog

    1.4.1

    • Fixed switched to the facetwp_assets hook to prevent script timing issues

    1.4

    • New added ability to enable / disable specific rulesets
    • New added FWPCL.run() JS method to manually trigger logic
    • Improved removed front-end jQuery dependency
    • Improved better admin styling (inputs expand based on available space)
    • Improved PHP housekeeping

    1.3.1

    • Fixed switched from init to facetwp_init hook to prevent timing-related PHP error on FacetWP 3.8+

    1.3.0

    • New added facetwp/ruleset/apply JS hook to support custom actions
    • New added $ACTIVE selector (similar to $EMPTY, but targets in-use facets)
    • New added i18n support (props G3ronim0)
    • Improved removed the modal
    • Improved removed the unnecessary “ON” condition (now uses facetwp-loaded)
    • Improved styling tweaks

Reviews

There are no reviews yet.

Be the first to review “FacetWP Conditional Logic”
Shopping Cart
X

New item(s) have been added to your cart.

Quantity: 1
Total $19.80

Frequently bought with FacetWP Conditional Logic


Bazar Shop $7.00$21.00
Clear
View more
Clear
View more
Elegant Themes Flexible $17.80$53.40
Clear
View more
BeTheme $6.00$18.00
Clear
View more
Clear
View more
Clear
View more
MyThemeShop Emerald $6.00$18.00
Clear
View more
AIT BusinessFinder+ $5.00$15.00
Clear
View more
Scroll to Top

don't miss it!

$1 off