Prerequisites: Basic knowledge of HTML and CSS. Access to your Quickbutik Control Panel.
What we’ll build
By the end of this tutorial, you’ll have created a custom product page that:- ✅ Displays product information dynamically
- ✅ Shows product images in a gallery
- ✅ Handles product variants and stock status
- ✅ Includes an add-to-cart button
Step 1: Access the Theme Editor
First, let’s access your theme files:1
Open Control Panel
Log into your Quickbutik store and navigate to Appearance → Theme
2
Access Code Editor
Click “Under the hood” to open the theme code editor
3
Find Product Template
Look for the
product.html
file in the file list - this controls how individual product pages are displayedStep 2: Understanding the Basic Structure
Let’s start with a simple product page template:product.html
Understanding the template tags
Understanding the template tags
Step 3: Add Product Information
Now let’s add the core product information:What’s happening here?
Price Display
We show both regular and sale prices, with the
has_before_price
conditional showing sale pricing only when relevant.Stock Status
Using
#
and ^
operators to show different content based on whether the product is sold out.Localization
The
{{#lang}}
wrapper automatically translates text based on your store’s language settings.HTML Content
The
&
symbol in {{&product.description}}
renders HTML content without escaping it.Step 4: Product Image Gallery
Let’s create a dynamic image gallery:Image Gallery
The
{{#img}}
wrapper automatically optimizes images. The _800x600
suffix resizes the image to 800x600 pixels.Step 5: Product Variants
If your product has variants (like size or color), let’s display them:Product Variants
Step 6: Add to Cart Button
Finally, let’s add a functional add-to-cart button:Add to Cart
Step 7: Complete Example
Here’s your complete product page template:Step 8: Test Your Template
1
Save your changes
Click Save in the theme editor
2
Preview the page
Use the preview function to see your changes on a test product
3
Test different scenarios
- Products with/without images
- Products with/without variants
- Products that are in stock vs. sold out
4
Publish when ready
When you’re satisfied, publish your changes to make them live
🎉 Congratulations!
You’ve successfully created your first custom Quickbutik theme template! You now understand:- ✅ How to display product data dynamically
- ✅ How to use conditionals for different states
- ✅ How to handle product variants and options
- ✅ How to create functional form elements
Next Steps
Mustache Basics
Learn more about the templating language fundamentals
Global Objects
Explore store-wide data like navigation, cart, and settings
Advanced Usage
Learn about dynamic elements and complex layouts
Best Practices
Discover performance tips and coding standards
Common Issues
Template not updating
Template not updating
Make sure you clicked Save and try clearing your browser cache. Some changes may take a few minutes to appear.
Missing product data
Missing product data
Check that you’re viewing the template on a product page. Some data is only available on specific page types.
Styling issues
Styling issues
Remember that your theme’s CSS file controls the visual appearance. The template only handles the HTML structure and dynamic content.