Skip to main content
Version: 2.0.0

Field Types

yStore adds custom field types to Craft CMS. Use them in your field layouts to build product and content editing interfaces in the Control Panel.

Available field types

Price Field

A numeric input formatted as a currency amount.

Use for: Product base price, special price, custom pricing fields.

Settings: Currency symbol display, decimal precision, allow negative values.

Special Price Field

A price input with an optional "valid from / valid to" date range picker. Used for time-limited sale prices.

Use for: Product special price with active date range.

SKU Field

A validated text input that enforces SKU uniqueness across products.

Use for: Product and variant SKU assignment.

Quantity Field

An integer input with configurable min/max and step values.

Use for: Product stock quantity, minimum order quantity.

Tier Prices Field

A repeatable field for defining quantity-based price tiers.

Format: Each tier has a minimum quantity (from_qty) and a price.

Use for: Wholesale pricing, volume discounts.

Example:

From QtyPrice
1€49.00
10€44.00
50€39.00

See Products → Tier Pricing for the full setup guide.

Visibility Field

A dropdown for controlling product visibility in the catalog.

Options: Visible, Hidden, Search Only, Catalog Only.

Use for: Products that should appear in search but not browseable catalog, or vice versa.

Enable Field

A toggle (on/off) field.

Use for: Product enabled/disabled state, feature toggles on product entries.

Weight Field

A decimal input for product weight with configurable unit label.

Use for: Product weight for shipping rate calculation.

Product Field

A relational field that links to a yStore product element.

Use for: Linking Craft entries or other elements to specific products (e.g., a blog post about a product).

Adding field types to a layout

  1. Go to Settings → Fields in the Craft CP.
  2. Create a new field and select the yStore field type from the type dropdown.
  3. Add the field to your product field layout under yStore → Settings → Products → Product Fields.
Field layouts

yStore respects Craft CMS's native field layout system. Product fields appear in the product edit screen in the order defined in the layout.

Field layout elements

In addition to field types, yStore adds dedicated field layout elements for the product edit screen:

Layout ElementDescription
Product TitleEditable product name
Product PriceMain price display and edit
Product SKUSKU field with validation
Product Special PriceSale price with date range
Product QuantityStock quantity
Product WeightShipping weight
VariantsVariant management table

These are added to the product field layout via the layout editor drag-and-drop interface.