Blog Sections Open

Working with Shopkeeper Checkbox Parameters

Checkbox-style product options are a little trickier than select fields because the data model is less explicit. The old discussion behind this post focused on making shk_widget work correctly when one Shopkeeper paramet

Checkbox-style product options are a little trickier than select fields because the data model is less explicit. The old discussion behind this post focused on making shk_widget work correctly when one Shopkeeper parameter was represented by a checkbox.

Why It Gets Confusing

  • checkboxes can be absent from the request entirely when unchecked
  • widget output may assume scalar values
  • template markup often hides the real data shape

Best Practice

Treat checkbox product parameters as a data contract problem, not just a template problem. Decide first how the value should be stored and read back, then make the widget and frontend markup reflect that contract.

Once the storage format is stable, rendering the option in Shopkeeper becomes much easier to reason about.

Newer post

Using a Counter Snippet Inside a Ditto Filter

How a custom counter snippet can be combined with Ditto filters when listing logic depends on aggregated child values.

Older post

Understanding includeDocs and IDs in Wayfinder Menus

A practical explanation of how includeDocs affects Wayfinder output when menus are built from a hand-picked set of resource IDs.