Create Conditional Logic

Modified on Mon, 29 Apr 2024 at 03:15 AM

Overview

SC Product Options offers a wide variety of options that you can offer to your customers.

On the premium plan of SC Product Options, you will have access to conditional logic. Conditional logic allows you to create rules that show and hide additional options based on your customer's selections.

If your product has multiple options but some of the options are only available once a customer chooses a specific option, then this is a great feature to use.

Video Walkthrough


Setup

Alert

Conditional logic can only be applied to the options themselves. It is not possible to show or hide specific option values.  Individual values can be used for a rule, but not for an action.

IE. You have the following options: Size and Colour. You can only show / hide Size and Colour; you cannot show or hide the individual sizes or colours within each option. (IE. Small, Medium; Red, Blue)

  1. Create an option set with at least two options.
  2. From within the SC Product Options app, select List of Conditions along the top navigation bar.
  3. From the Select Option Set dropdown, choose which option you would like to create conditions for, then select Create New Condition.

    Select option set and create new condition

  4. Complete the Rules.
    1. If (select Option Set);
    2. Step (select is equal to or is not equal to);
    3. Select an Option.

      Fill out the rules

  5. Complete the Actions, then select Save.
    1. Then (select show or hide);
    2. Select an Option.

      Fill out the actions and select save


FAQs

Can I add conditional logic to a product if the product is in more than one option set?

A product should not be used in more than one option set if it's being used for conditional logic, as this can cause issues with trying to set the correct show and hide functionality on the storefront.

Can conditional logic be copied from one option set to another?

Conditional logic cannot be copied and pasted from one option set to another. The conditional logic must be created from scratch for each individual option set.

Can I use show and hide rules on the same option?

We recommend against using both show and hide for the same option type. The app knows to do the opposite if the condition is not met.

Can I use the same option type in multiple conditional logic rules?

While it is possible to add the same option type into multiple conditional logic rules, we recommend against this as it can cause contradicting rules on the storefront.

How long does it take for new rules and changes to existing rules to appear on the storefront?

New rules and changes to existing rules can take usually up to an hour to appear on the storefront due to caching.

In order to resolve this, the cache must be cleared, and this can only occur within the hour it takes for conditions to sync.

If you notice that your rule changes aren't appearing on the storefront within this timeframe, please visit Product Options Not Displaying and follow the steps for clearing the cache.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article