Special Conditions for Products

Introduction

It’s possible to define special conditions for products. If you want to only get products that’s in a price range, you should define special conditions.

Special conditions only works with variables, so it’s not possible to define for any field like WooCommerce’s _price custom field or post_title. Please make sure that you have separated variable only for special condition.

After creating your variable on data fields, please also make sure that mathematical functions are enabled for performing special conditions. You could enable that function on “Transform” functions. To enable, please click “Transform” button, go to “Math Functions” section enable “The content is numerical, enable math functions.”

You could define special conditions on project settings. There is a section called “Conditions”.

Please make sure that special conditions only EXCLUDES the product. All conditions designed to exclude content.

Expressions

There are three different conditions that can be performed by plugin.

Greater

Plugin will check if the variable is greater than a number. Please use “>” symbol to perform this function.

Lower

Plugin will check if the variable is lower than a number. Please use “<” symbol to perform this function.

Equal

Plugin will check if the variable is equal to a number or a value. Please use “=” symbol to perform this function.

Expression’s Left-side

It’s possible perform some mathematical functions on expression’s left side. You could define multiply, divide, addition and extraction functions.

Here is the list of mathematical functions (with examples) :

  • Multiply : @price_value * 0.5
  • Divide : @price_value / 3
  • Addition : @price_value + 12
  • Extraction : price_value – 4

A Full Example for Special Condition

This example checks if product’s price value’s half is greater than the regular price value.

@price_value * 0.5 > @regular_price_variable

If you define this expression on special conditions, plugin will exclude products that provides this condition.

Was This Article Helpful?

0
Related Articles
0 Comments

There are no comments yet

Leave a comment

Your email address will not be published.