Custom SKU Rules

Custom SKU Rules

Overview

Custom SKU rules let you automatically generate a unique SKU (Stock Keeping Unit) for every product configuration a customer creates. The SKU is built from fragments — short codes assigned to each option value — combined according to a composition template you define. This is useful for inventory tracking, order fulfillment, and ERP integration. You configure SKU rules in Calculator Editor → Optional Features → Custom SKU rules.

Steps

  1. In the Custom SKU rules section, build a SKU composition template using the Insert menus: Insert option adds a {{KEY}} token, Insert dimensions adds {{DIM1}}, {{DIM2}} tokens, and Insert variable adds a {{VAR:name}} token.
  2. Combine tokens with separators to form your SKU pattern (e.g., {{MATERIAL}}-{{SIZE}}-{{COLOR}}).
  3. For choice-type options (dropdowns, swatches, radios, etc.), set a SKU fragment on each choice value. Go to Options & Pricing → Edit option → Basic Settings → SKU fragment. The fragment replaces the {{KEY}} token for that choice.
  4. Optionally enable Show SKU in cart to display the generated SKU in the customer's cart.
  5. The computed SKU based on your current preview selections is shown at the bottom of the section.

Details

Setting Description
SKU composition A template string using {{KEY}}, {{DIMn}}, and {{VAR:name}} tokens.
SKU fragment (per choice) A short code set on each choice value in the option's settings.
Show SKU in cart When enabled, the generated SKU appears in the customer's cart alongside the order details.
Computed SKU (preview) Read-only field showing the SKU based on current preview selections.

Examples

  • Apparel — Composition: TEE-{{SIZE}}-{{COLOR}}. With SKU fragments Size=LG, Color=BLK, the generated SKU is TEE-LG-BLK.
  • Custom window blinds — Composition: BLD-{{MATERIAL}}-{{DIM1}}x{{DIM2}}. With Material fragment=WD and dimensions 36×48, the SKU is BLD-WD-36x48.
    • Related Articles

    • Quantity Discount Rules

      Overview Quantity discount rules let you offer volume-based pricing — the more a customer buys, the bigger the discount. Calculator AI supports two modes: 1D (Simple), where discounts depend only on quantity, and 2D (Advanced), where discounts depend ...
    • Show Custom Options on Packing Slips

      Overview When a customer places an order with Calculator AI options, their selections are saved with the order. By default, Shopify's packing slip template does not include these custom selections. You can update the packing slip template so your ...
    • Value Rules

      Overview Value rules let you automatically set an option's value when certain conditions are met. Instead of the customer filling in a field manually, the calculator can pre-fill it, override it, or lock it to a specific value. This is useful for ...
    • Visibility Rules

      Overview Visibility rules let you dynamically control whether an option is shown, hidden, required, or restricted based on what the customer has selected or entered elsewhere in the calculator. They make your calculator interactive and context-aware ...
    • Custom JavaScript

      Overview Calculator AI allows you to add custom JavaScript to your calculator for advanced use cases that go beyond built-in configuration. You can run code when the calculator first loads (global scripts) or when a specific option's value changes ...