Skip to main content

Merchkit Formula Functions Reference

This reference documents all available functions for the Formula field type in Merchkit. Use these via the “Insert Function” button when configuring a Formula attribute. Formula expressions use {{attribute_name}} to reference other attribute values, and can combine references with functions and operators (e.g., {{msrp}}+15, ROUND({{price}} * 1.1, 2)).

Text Functions

Logical Functions

Numeric Functions


Common Patterns

Markup calculation: {{msrp}} + 15 or ROUND({{cost}} * 1.4, 2) Conditional pricing: IF({{sale_price}} > 0, {{sale_price}}, {{price}}) SKU generation: CONCATENATE(LEFT({{brand}}, 3), "-", {{product_id}}) Null-safe display: COALESCE({{sale_price}}, {{price}}, "Contact for price") Category mapping: SWITCH({{category}}, "Sofas", "Living Room", "Tables", "Dining", "Other") Validation check: IF(AND(NOT(ISBLANK({{width}})), NOT(ISBLANK({{height}})), NOT(ISBLANK({{depth}}))), "Complete", "Missing dimensions")
This reference is part of the Merchkit Knowledge Base. See article 3.6a (Field Type Guide) for when to use Formulas vs. AI-generated attributes.