Skip to content

Instantly share code, notes, and snippets.

@unlocomqx
Created January 14, 2026 12:44
Show Gist options
  • Select an option

  • Save unlocomqx/7d089d9e43102f72e8a15b2694d66e54 to your computer and use it in GitHub Desktop.

Select an option

Save unlocomqx/7d089d9e43102f72e8a15b2694d66e54 to your computer and use it in GitHub Desktop.
Product Configuration:
active: true
required: false
exclude: false
displayed_price: 0
displayed_price_label:
display_starting_from: true
display_dynamic_price: false
display_customization_cost: false
recalc: false
always_recalc: false
display_weight: false
hide_qty: false
multiply_price: false
allow_save: false
split_summary: false
custom_calculation: false
enable_steps: true
all_steps_required: true
ungrouped_fields_on_top: false
Existing Fields:
801:
id: 801
type: Numeric Input
label: Width
options: []
802:
id: 802
type: Numeric Input
label:
options: []
803:
id: 803
type: Numeric Input
label:
options: []
804:
id: 804
type: Numeric Input
label:
options: []
When updating or deleting a field, use the field ID.
When updating or deleting a field option, use the option ID and field ID.
Supported field types:
[24]: Numeric Input,Slider,Dropdown,Radio buttons,Image list,Checkbox,Switch,Text,Text Area,Date,Image,File,Fixed Value,Price,Dynamic Variable,Feature,Divider,Color picker,Html,Error message,Custom field,Preview field,Country,Font list
The Image list type also supports a color list.
Existing Equations:
[]
When creating or updating or deleting an equation, use one of these names: Price, Weight, Quantity, Cost
Use field formulas to assign a formula to a field.
Existing Field Formulas:
[]
When updating or deleting a field formula, use the field formula ID.
Use conditions to show or hide fields, options, groups, or steps based on a formula.
Existing Conditions:
[]
Create a new condition if existing conditions don't meet your needs.
When updating or deleting a condition, use the condition ID.
Use intervals to vary field values based on conditions (ranges or discrete values).
Existing Intervals:
[]
Formulas are keyed by {id_interval_field}-{id_condition_group}.
Use grids to vary field values based on two other fields (2D lookup table).
Existing Grids:
[]
Grid values are indexed like values[id_row][id_column].
Available Field Groups:
[17]{id,name,label}:
1,poids-surface1,
2,poids-surface2,
3,dimensions,
4,formes,
5,formes-dimensions,
6,options-dv,
7,information,
8,information-l-h,
9,selectionner-la-forme,
10,choisissez-vos-dimensions,
11,choisissez-vos-options,
12,choisissez-vos-dimensions-b,
13,choisissez-vos-options-b,
14,pas-fabrication,
15,info-formes,
16,prix-achat,
17,a,b
Product Field Groups (already added):
[]
Use add_field_group with id_group, delete_field_group with id.
Available Steps:
[1]{id,name,label}:
1,s,l
Product Steps (already added):
[]
Use add_step with id_step, delete_step with id.
You may need to enable custom calculation order if needed and add calculation items in the logical order.
Custom calculation order is DISABLED. Default order: intervals, field_formulas, grids, conditions.
IMPORTANT: Do not use == for logical conditions. You must use = only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment