Over 200 add-ons available under a single subscription for $40 per month!

Combining products into variations

Module combines products according to the rules selected in the brand settings in the variation
Please enter a valid addres(es) of the shop where you are going to use the add-on.
By subscription 5 000 
Latest module version Updated:
Have questions about the module? Write to us: HelpDesk

Combining products into variations

This add-on is part of our Subscription plan.

Subscribe once — enjoy all add-ons without limits.

Combining products into variations automatically turns separate products whose SKUs follow a common pattern into standard CS-Cart variation groups. You can assign different SKU processing rules to variants of the selected brand feature and run grouping manually or on a schedule.

What it is for

When different versions of the same model are stored as separate catalog items, building variation groups one by one takes time. The add-on calculates a common key from the SKUs, finds matching products, and combines them into variations. This reduces manual work and makes regular catalog processing easier.

Key features

  • Select an active extended feature to use as the brand feature.
  • Assign a separate grouping rule to each variant of the selected feature.
  • Use one of four SKU processing modes: do not combine; exclude the last two characters; exclude the part after the last hyphen; or replace the fourth segment with XXX in the 0000.00.0.XXX.000.0 format.
  • Start grouping with a button in the add-on settings or run it automatically through cron.
  • Create a new variation group or add matching products to an existing group.
  • Process only matches containing at least two products and display a result notification.
  • Use the standard Product Variations add-on as the grouping mechanism.

How it works

  1. Select an active extended brand feature in the add-on settings. To run grouping through cron, also set a security key.
  2. Assign a grouping format to the required variants of the selected feature. Variants set to “Do not combine” are excluded from processing.
  3. Start grouping with the button in the add-on settings or with the generated cron command.
  4. The add-on analyzes product SKUs, calculates a common key according to the selected rule, and combines matches of at least two products into a variation group. If a suitable group already exists, the products are added to it.
  5. After processing, CS-Cart displays the result and the number of products combined.

Have questions about the add-on?

Write to us.


Product:
  • Store Builder
  • Store Builder Ultimate
  • Multi-Vendor
  • Multi-Vendor Plus
  • Multi-Vendor Ultimate
Recipient:
  • Owners
  • Vendors
Development
:
  • Backend
Localization:
  • English
  • Русский
Compatible versions:
  • 4.20
  • 4.19.X
  • 4.18.X

Instructions for Combining products into variations

The add-on groups separate products into standard CS-Cart variation groups by the common part of their SKU. The SKU processing rule is assigned separately to each variant of the selected brand feature. Grouping can be started manually from the add-on settings or automatically through cron.

What the add-on does

When the process starts, the add-on finds products that use a variant of the selected brand feature with a grouping format assigned. It calculates a grouping key for each SKU according to that format. If at least two products have the same key, the add-on creates a variation group through the standard Product Variations functionality.

If one of the matching products already belongs to a variation group, the add-on adds the other matching products to that group. Products with an empty SKU, without an assigned format, or with the “Do not combine” format are skipped.

Where to find the add-on

  • Add-ons → Downloaded add-ons → Combining Products into Variations → Settings — select the brand feature, set the security key, start grouping manually, and copy the cron command.
  • Products → Features → selected brand feature → Variants — set Product combination format for each feature variant.
  • Products → Products — open processed products and check the standard variation groups.

Before the first run

The add-on relies on the standard Product Variations functionality. Prepare the items as separate products, fill in their SKUs, and assign a brand feature variant to every product that should be processed. Make sure the selected products can be combined with the standard Product Variations tools: the add-on delegates group creation and extension to them and does not override their restrictions.

Important: a run immediately creates or extends variation groups and does not display a preview of the changes. Test the rules on sample products and prepare a database backup before the first bulk run.

Configure the add-on

1. Select the brand feature

  1. Open the add-on settings.
  2. In Brand feature, select the active extended feature whose variants are assigned to products as brands.
  3. Save the settings.

The list contains active extended features only and displays their internal names. The Product combination format field is shown only for variants of the feature selected in the add-on settings. If the selected feature is later disabled or deleted, a run ends with a message that the brand feature is unavailable.

The Start product grouping button appears in the settings after a feature is selected. The generated command in the Cron link block is displayed after the security key is filled in.

2. Assign a format to each brand variant

  1. Go to Products → Features.
  2. Open the feature selected in the add-on settings.
  3. For each required brand variant, select a value in Product combination format.
  4. Save the feature.

The format defines which part of the SKU is treated as variable. After that part is excluded, the remainder becomes the grouping key.

Format How the key is calculated Example
Do not combine Products with this feature variant are excluded from processing. Use this for brands whose products must not be grouped automatically.
Last two characters The last two characters are removed from the SKU. The remaining part is used as the key; if it is empty, the product is skipped. MODEL-01 and MODEL-02 receive the common key MODEL-.
Characters after the last hyphen The part before the last hyphen becomes the key. A SKU without a hyphen or without characters before it does not produce a key under this rule. MODEL-RED and MODEL-BLUE receive the common key MODEL.
0000.00.0.XXX.000.0 The SKU is split at dots. The format applies when the fourth and sixth parts exist and are not empty; the fourth part is replaced with XXX, and all other parts must match. 1234.56.7.RED.890.1 and 1234.56.7.BLU.890.1 receive the key 1234.56.7.XXX.890.1.

Formats are assigned to brand variants, but the resulting group is determined by the calculated SKU key. Products from different brands may be placed in one group if they produce the same key. Use SKU patterns that prevent such overlaps.

If you select another feature in the add-on settings, processing uses only variants of that feature. Assign formats to variants of the new feature before the next run; formats saved for the previously selected feature are not used in that run.

3. Set the security key

  1. Fill in Security key in the add-on settings. Replace the default value with your own long random string.
  2. Save the settings.
  3. Copy the generated command from the Cron link block.

The cron command sends a hash of the key in the --hash parameter, not the key itself. Do not publish the generated command because it authorizes a grouping run. If the command is exposed or the key is changed, save a new key and copy the newly generated command.

Run grouping manually

  1. Make sure the brand feature is selected and formats are assigned to the required variants.
  2. In the add-on settings, click Start product grouping.
  3. Wait for a CS-Cart notification. After a successful run, it reports the number of products combined.

One run processes all catalog products that have a non-empty SKU and a variant of the selected feature with a format assigned. The add-on does not provide a separate filter by category, product status, vendor, or storefront. In Multi-Vendor and Ultimate, account for this catalog-wide scope before running the process. A group is created only when at least two products produce the same key.

Schedule automatic grouping with cron

  1. Copy the entire command from the Cron link block in the add-on settings.
  2. Add it to the cron scheduler on the store server.
  3. If necessary, change only the schedule at the beginning of the line. Keep the PHP command, path, --dispatch=ms_combining_options.combine parameter, and generated --hash unchanged.

The generated command runs every day at 04:00 server time and starts with 0 4 * * *. It already contains the PHP CLI version, the path to the store root, and the customer-facing script name. Use the command generated for the current store.

How to check the result

  1. Select one brand feature variant and assign the Last two characters format to it.
  2. Prepare two test products with that feature variant and the SKUs MODEL-01 and MODEL-02.
  3. Start grouping manually.
  4. Check the successful processing notification.
  5. Open either test item under Products → Products and make sure both products are in the same standard variation group.
  6. Add a control product with a different key or the Do not combine format and verify that it is not added to this group.

Important notes for repeated runs

  • The add-on creates new groups and adds products to existing groups, but it does not split or delete groups that already exist.
  • Changing the format assigned to a brand variant does not undo a previous run. Correct an unwanted group with the standard Product Variations tools.
  • At least two products must have exactly the same calculated key.
  • An empty SKU, a missing hyphen for the corresponding rule, or an invalid dot-separated structure causes the product to be skipped.
  • Check that keys are unique across brands: the brand value itself is not added separately to the grouping key.

Common messages and checks

  • Brand feature is not set. Select a feature in the add-on settings and save the changes.
  • The brand feature is not found or is not enabled. Make sure the selected feature exists and is active, or select another active extended feature.
  • No products with an eligible combination format were found. Assign formats to variants of the selected feature and make sure those variants are assigned to products.
  • Not enough products were found. Check the SKUs: after the rule is applied, at least two products must have exactly the same key.
  • Products were not combined. Check the SKU structure, existing groups, and whether these products can be combined with the standard Product Variations tools.
  • The cron command no longer starts processing. If the security key changed, copy the new command. Also check that the specified PHP CLI version is available and that the cron user can run the store's customer-facing script.

Changelog

v1.2.1

20.07.2026

Changed:

  • Updated the add-on description and instructions; added localized materials and the logo.

v1.2.0

27.10.2025

Bug fixes:

  • Fixed incorrect product variation combining and grouping.
  • Fixed combining by the “Characters after the last hyphen” rule.

Changed:

  • Standardized the add-on.

v1.0.1

16.10.2025

Bug fixes:

  • Fixed product variation combining and grouping.

v1.0.0

04.02.2025

New features and improvements:

  • Initial release.
Reviews

Here you can share your opinion and evaluate our work.

Your feedback helps us become better and offer you even better service.

Similar add-ons