Skip to Content
ReferenceLiquidObjectsStoreCustomization Group Option

Customization Group Option

A customization group option represents a selectable or fillable option within a product customization group. These options can be used for dropdowns, checkboxes and text fields. Customization group options allow customers to personalize their products by selecting from various choices or entering custom text. Each option can have its own price, image, and other attributes.

Usage Example

{%- comment -%} Render all customization group options for a product, with type-specific markup {%- endcomment -%} {% for group in product.customization_groups %} <h3>{{ group.title }}</h3> {% if group.type == 'select' %} <select name="{{ group.id }}"> {% for option in group.options %} <option value="{{ option.id }}"> {{ option.title }}{% if option.price > 0 %} (+{{ option.price | money }}){% endif %} </option> {% endfor %} </select> {% elsif group.type == 'checkbox' %} <ul> {% for option in group.options %} <li> <label> <input type="checkbox" name="{{ group.id }}[]" value="{{ option.id }}"> {{ option.title }}{% if option.price > 0 %} (+{{ option.price | money }}){% endif %} </label> </li> {% endfor %} </ul> {% else %} <ul> {% for option in group.options %} <li> {{ option.title }}{% if option.price > 0 %} (+{{ option.price | money }}){% endif %} </li> {% endfor %} </ul> {% endif %} {% endfor %}

Properties

id

Returns the id.

title

Returns the title.

original_net_price

Returns the net price without any discounts.

original_price

Returns the price without any discounts.

net_price

Returns the discounted net price.

price

Returns the discounted price.

image

Returns the image.

tax

Returns the tax.

group

Returns the group this option belongs to.

child_group

Returns the child group for this option.

inventory_management

Returns the inventory management.

stock

Returns the stock quantity.

stock

Returns true if this option is in stock.

stock_alarm

Returns true if this option is low on stock.

max_length

Textarea only, returns the maximum length for the text.

min_length

Textarea only, returns the minimum length for the text.

rows

Textarea only, returns the rows for the text.