How to create Sync Rules

Link a bundle to the products inside it so their stock stays in step. Covers Base and Child SKUs, multipliers, how EMMA works out bundle stock, and fixing quantity errors after you add a rule.

If you sell products both individually and in bundles, a sync rule keeps their stock in step. You tell EMMA what each bundle contains, and EMMA updates the bundle and its contents whenever either one sells.

Have many bundles to set up? You can also create rules in bulk from a CSV file.

How a sync rule works

A sync rule has two parts:

  • The Base SKU is the bundle you sell.
  • The Child SKUs are the products inside the bundle. Each one has a multiplier, which is how many units of that product go into one bundle.

This guide uses a gift set as its example. One Tea for Two Gift Set (GIFTSET-TEA) contains a box of jasmine tea, two white mugs and two gold teaspoons. The shop also sells each of those items on its own.

Diagram of the GIFTSET-TEA rule: the Base SKU GIFTSET-TEA is made of 1 TEA-JASMINE, 2 MUG-WHITE and 2 SPOON-GOLD

How EMMA works out bundle stock

A bundle’s stock is the number of complete bundles you can put together from the components you have. For each Child SKU, EMMA divides its stock by its multiplier and rounds down. The smallest result is the bundle’s stock.

Child SKU In stock Per set Sets it makes
TEA-JASMINE 144 1 144
MUG-WHITE 101 2 50
SPOON-GOLD 35 2 17

The teaspoons run out first. 35 teaspoons make 17 sets, with one teaspoon left over, so GIFTSET-TEA’s stock is 17.

What happens when something sells

Once the rule is in place, stock moves in both directions:

  • When a bundle sells, EMMA deducts its components using the multipliers. Selling one gift set removes one box of tea, two mugs and two teaspoons.
  • When a component sells on its own, EMMA recalculates the stock of every bundle that contains it.

Diagram of two orders. Selling 1 GIFTSET-TEA deducts each component, lowers the gift set from 17 to 16 and lowers the white mug twin pack from 50 to 49. Selling 4 SPOON-GOLD on their own lowers the teaspoons from 35 to 31, and EMMA recalculates the gift set from 17 to 15

A bundle’s stock only falls when its scarcest component runs low. In the example, selling 10 white mugs on their own leaves the gift set at 17. The 91 mugs left still make 45 sets, so the teaspoons are still the limit. When an order is cancelled, EMMA returns the stock the same way.

Step 1: Open the Sync Rules page

Click Sync Rules in the left-hand menu, then click Add New Rule at the top right.

The Sync Rules page with the Add New Rule button at the top right and a list of existing rules

Step 2: Enter the Base SKU

In the first field, enter the SKU of the bundle. In the example, that is GIFTSET-TEA.

The SKU must already be in EMMA, spelled exactly as it is on your sales channels. This applies to every SKU in the rule.

Step 3: Add the Child SKUs and multipliers

Enter the first product in the bundle as a Child SKU, and enter how many of it go into one bundle in the box beside it. Click Add Component for each further product. To remove a line, click its bin icon.

The rule for the example is:

GIFTSET-TEA = (1 × TEA-JASMINE) + (2 × MUG-WHITE) + (2 × SPOON-GOLD)

The Add New Rule window filled in with GIFTSET-TEA and its three Child SKUs

Click Add New Rule to save it.

Checks before you save

EMMA checks the rule as you type. A field with a problem turns red with the reason underneath, and Add New Rule stays disabled until every problem is fixed.

  • Not a known SKU: the SKU is not in EMMA. Check its spelling against your sales channel.
  • Already a Base SKU: this SKU already has a rule of its own, and each SKU can be the Base SKU of only one rule. To change what a bundle contains, delete its old rule and add a new one.
  • Duplicate SKU: the same SKU appears twice in the rule. Use one line and raise its multiplier instead.
  • Must be 1 to 999: a multiplier must be a whole number from 1 to 999.

The Add New Rule window with GIFTSET-COFFEE marked Already a Base SKU and the mistyped Child SKU COASTERCORK marked Not a known SKU

Shared components and bundles inside bundles

A product can be a Child SKU in as many rules as you need. In the example shop, the white mug is in the Tea for Two Gift Set and also in a twin pack of white mugs (MUG-WHITE-2PK), so MUG-WHITE is a Child SKU in both rules. Selling a mug on its own recalculates both bundles.

A bundle can also be a Child SKU of a larger bundle. For example, an office gift hamper (GIFTSET-OFFICE) could contain ten tea gift sets.

EMMA only rejects a rule that loops back on itself. If GIFTSET-OFFICE contains GIFTSET-TEA, you cannot add a rule where GIFTSET-TEA contains GIFTSET-OFFICE. EMMA refuses to save it and shows a “circular dependency” message.

Diagram of three setups. Allowed: GIFTSET-TEA and MUG-WHITE-2PK share MUG-WHITE. Allowed: GIFTSET-OFFICE contains 10 GIFTSET-TEA. Rejected: GIFTSET-TEA and GIFTSET-OFFICE contain each other

Step 4: Fix any quantity errors

Adding a rule does not change any stock by itself. After you save it, EMMA returns you to the Inventory Overview page and compares the bundle’s current stock with what the rule says it should be. If the numbers do not match, a sync rule error chip appears above your product list.

The 1 sync rule error chip on the Inventory Overview page

In the example, GIFTSET-TEA was listed with 50 in stock, but the components only make 17 sets. Click the chip to open Sync Rule Quantity Errors, which lists the bundle and each of its components with their current quantities.

Enter the right quantity for each SKU in the Correct Qty column. For the bundle, that is the number from the calculation above (17 in the example). A box left empty keeps that SKU’s current quantity. Then click Update Quantities.

The Sync Rule Quantity Errors window with 17 entered as the correct quantity for GIFTSET-TEA

Fix these errors before you add your next rule. Once the numbers match, the rule is active. EMMA applies it to every new order and to every stock change you make in EMMA.

Changing or deleting a rule

Rules cannot be edited. To change one, click Delete next to it on the Sync Rules page, then add the corrected rule with Add New Rule.

If a SKU in a rule no longer exists in EMMA, for example because you renamed it or removed the listing from your sales channels, EMMA stops applying that rule. It shows a chip such as 1 rule uses deleted SKUs on the Inventory Overview page. Click it to open Orphaned Sync Rules, which lists each rule with its missing SKUs, and delete the ones you no longer need. If you renamed a SKU, edit the rule on the Sync Rules page instead.

The 1 rule uses deleted SKUs chip on the Inventory Overview page

With EMMA, your inventory is in perfect harmony, empowering your business to thrive.

Say goodbye to overselling, underselling and operational headaches with real-time and accurate multi-channel stock level updates.