Zid Docs
AppsThemes
Payments
AppsThemes
Payments
Help Center
Slack
  1. Templates
  • Getting Started
    • Introduction
    • Theme Development
    • Vitrin Changelog
    • Creating and Managing Theme Presets
    • Legacy Theme Migration
      • Store Settings Mapping
      • Moving to Vitrin Using LLMs
      • Twig to Jinja
      • Breaking Changes
  • Key Concepts
    • Architecture
    • Templates
      • Overview
      • Overridable Templates
      • Legacy Templates
      • Template Replacements
      • Templates Library
        • home.jinja
        • product.jinja
        • cart.jinja
        • category.jinja
        • products.jinja
        • categories.jinja
        • page.jinja
        • blogs.jinja
        • blog.jinja
        • faqs.jinja
        • reviews.jinja
        • questions.jinja
        • shipping_payment.jinja
        • 404_not_found.jinja
    • Settings
      • Schema files
      • Input Settings
      • Media Settings
      • Form Controls Settings
      • Products Settings
      • Additional Settings
      • Conditional Visibility
      • Migrating twig settings schema
    • Localization
      • localization (jinja v. twig)
    • Theme Editor
      • Overview
  • Building with Vitrin
    • Jinja Basics
    • Vitrin's Jinja Extensions
  • Vitrin CLI
    • Introduction
    • CLI Commands
  • Tips & Tricks
    • Performance
  • JS Integration
    • Supporting both Vitrin and Legacy themes
    • Responses & Errors
    • Cart
    • Products
    • Categories
    • Store
    • Account
    • Blogs
    • Options
    • Events
  • Features
    • SDK Popups – Integration Guidelines
    • Custom Styles Guide
    • Gift Card as a Popup
    • Addresses as a Popup
    • Login as a Popup
    • Checkout as a Popup
    • Apple Pay Quick Checkout
    • Region & Language Popup
    • Dynamic Bundle Products
    • Progressive Discounts
    • Customer Wallet & Cashback
    • Add Preorder Support to Your Theme
  • Mobile Apps
    • Scripts
  • API's
    • Authentication
      • Logout
      • Login Status
      • SMS Login
      • Verify SMS Login
      • WhatsApp Login
      • Verify WhatsApp Login
      • Email Login
      • Verify Email Login
      • Register
      • Register Guest
    • Products
      • List Products
      • Search Products
      • Calculate Product Options Price
      • Notify Product Stock Availability
      • Fetch Bundle Offers
      • Fetch Bundle Offers for a Product
      • List My Product Reviews
      • List Product Reviews
      • Create Product Review
      • Update Product Review
      • Delete Product Review
      • List Product Questions
      • Create Product Question
      • Get Product by Slug
      • Get Selection Groups
    • Categories
      • List Categories
    • Checkout
      • Get Cart
      • Remove Cart
      • Duplicate Cart
      • Add Cart Item
      • Empty Cart
      • Update Cart Item
      • Remove Cart Item
      • Upload Cart Input Field
      • Add Gift Card
      • Remove Gift Card
      • Apply Coupon
      • Remove Coupon From Cart
      • Check Coupon Validity
      • Apply Loyalty Points
      • Remove Loyalty Points
      • Preview Rewarded Points
      • List Redemption Methods for Cart
      • Customer’s Loyalty Wallet
      • Customer’s Current Points Balance
    • Account
      • Get Profile
      • Delete Account
      • Update Customer Profile
      • Get Addresses
      • Create an Address
      • Get an Address by ID
      • Update an Existing Address
      • Delete Address
      • Get Orders
      • Get Shareable Wishlist Link
      • Get Wishlist
      • Add Products to Wishlist
      • Remove Product from Wishlist
      • Get Address Form Schema
      • Check Product Purchase Status
    • Storefront
      • Store Scripts
      • Pages
      • Blogs
    • Countries
      • Get Countries
      • Get Cities By Country
  1. Templates

Overview

Templates#

Templates define how each storefront route is rendered in Zid using Jinja2.
Each template file maps to a specific page type (e.g., product, cart, homepage) and determines the layout, sections, and components shown to customers.

Templates#

Each template in this list links to the Template Library, where you'll find code examples and UI previews.
You can name components as sections as you please, however templates and layout files names and directories need to be standardized to something our system recognize.

Core Templates#

TemplatePurposeRoutePath Operation
home.jinjaHomepage layout with banners, featured collections, or products./home
product.jinjaIndividual product details page./products/{product}product_details
cart.jinjaShopping cart with items and totals./cartcart_page
category.jinjaSingle category page with product listings./categories/{category}category_details

Product Discovery Templates#

TemplatePurposeRoutePath Operation
products.jinjaGeneral product listing (all products)./productslist_products
categories.jinjaOverview of categories with links./categorieslist_categories

Content Templates#

TemplatePurposeRoutePath Operation
blog.jinjaDisplays a single blog post./blogs/{slug}blogs
page.jinjaGeneric CMS/content page./pages/{slug}pages

Support Templates#

TemplatePurposeRoutePath Operation
faqs.jinjaFrequently Asked Questions./faqsfaqs
questions.jinjaProduct-specific Q&A./products/{slug}/questionsproduct_questions
reviews.jinjaCustomer reviews section./products/{slug}/reviewsproduct_reviews
shipping_payment.jinjaShipping & payment info page./shipping-and-paymentshipping_payment

Utility Templates#

TemplatePurposeRoutePath Operation
404_not_found.jinjaError page for missing content.Error handlernot_found

Key Features (All Templates)#

All templates extend the base template layout.jinja:
Common components like header and footer are included automatically.
Support for multilingual content with _( ) translations.
Assets are referenced with the asset_url filter:
Use url_for() filter to generate URLs instead of hardcoding:
{# Generate URL using path operation name #}
<a href="{{ url_for('product_details', slug=product.slug) }}">View Product</a>
<a href="{{ url_for('faqs') }}">Help & FAQs</a>
Modified at 2026-02-17 07:02:10
Previous
Architecture
Next
Overridable Templates
Built with