Formula Builder

The Pro Bulk Price Editor features a built-in Formula Builder that lets you perform complex, custom pricing adjustments using mathematical operations, product properties, and functions.

Example Formula: (cost_per_item * 1.5) + (item_weight * 0.5)

Supported Variables

Variable Name

Description

Example Use

current_price

The current selling price of the product variant.

current_price * 1.1

(10% increase)

compare_at_price

or

current_selling_price

The compare-at (original, pre-discount) price, or current selling price when an active discount exists.

compare_at_price * 0.8

(20% off original price)

cost_per_item

The cost price of the item variant set in Wix.

cost_per_item * 1.3

(30% markup on cost)

item_weight

The weight of the product variant.

current_price + (item_weight * 0.1)

(weight-based markup)

Notes:

  • If a variable value is missing or not set in Wix (such as cost price), it defaults to 0 at execution time.
  • Calculated prices are clamped to a minimum of 0 (prices cannot be negative).

Supported Functions

Function Name

Description

Examples

MOD(number, divisor)

Returns the remainder after dividing a number by a divisor.

MOD(13, 10)

returns

3

.

current_price + (9 - MOD(current_price, 10))(Sets the price to end in .99)

RANDOM(min, max)

Generates a random integer value between min and max (inclusive).

RANDOM(5, 15)

Returns a random value between 5 and 15.

current_price * (1 + (RANDOM(10, 20) * 0.01))(Applies a random markup between 10% and 20% to each product)

Tip: Need support for a specific mathematical function or product property? Reach out to our support team, and we will be happy to evaluate adding it for you!