Skip to main content
Objects and attributes form the foundation of Mustache templating in Quickbutik. Understanding how to access and manipulate object properties is essential for building dynamic, data-driven themes using only supported Quickbutik properties.

What are Objects?

Objects in Mustache are data structures that contain information about your store, products, users, and other entities. Each object has attributes (properties) that hold specific values.

Available Object Types

Quickbutik provides several types of objects you can work with:

Global Objects

Available on all pages throughout your theme:

Page-Specific Objects

Available only on specific page types:

Object Property Access

Dot Notation for Nested Properties

Use dot notation to access nested properties:

Array Index Access

Access specific array items by their index position:

Working with Different Property Types

Understanding the different types of data that object properties can contain:

String Properties

Number Properties

Boolean Properties

Array Properties

Object Properties (Nested Objects)

Common Object Usage Patterns

Store Information Display

Product Data Management

User Account Information

Working with Context and Parent Access

When iterating through arrays or working within sections, you may need to access parent object properties:

Object Property Debugging

When working with objects, you might need to debug what properties are available:

Best Practices

Check Property Existence

Always check if a property exists before using it to avoid template errors

Understand Object Hierarchy

Learn the structure of objects to access nested properties efficiently

Handle Missing Data Gracefully

Provide fallbacks for optional properties that might not always be present

Common Property Access Mistakes

Property Access Errors: These common mistakes can break your templates:
  1. Wrong property names: {{product.name}} instead of {{product.title}}
  2. Missing context: Forgetting ../ when accessing parent properties
  3. Array confusion: Using {{product.images}} instead of iterating with {{#product.images}}
  4. Case sensitivity: {{Product.title}} instead of {{product.title}}

Advanced Object Patterns

Conditional Property Display

Object Property Chaining

Supported Object Properties Reference

Shop Object Properties

Product Object Properties

Next Steps

Conditionals

Learn how to use conditional logic with object properties

Wrappers and Functions

Discover helper functions to manipulate object data

Global Objects

Explore all available global objects in detail

Page Objects

Learn about page-specific objects and their properties