Skip to content
shopdepot.dev

Reference

Objects

Every object a theme can read - the store, offers, carts, categories, menus, content and the section being rendered.

View as Markdown

Generated from the platform code - always matches what the theme engine allows.

A theme never touches the database. It reads objects the platform hands over: read-only views that load data only when a template asks for it, so an unused field costs nothing. Fields are read with a dot - product.featuredMedia - and names are camelCase. Prices are integers in minor units (grosze, cents): format them with money.

Object Description Available on
shop The store the page belongs to. every page (global)
cart The cart. every page (global), cart page
cart_line One line of the cart - an offer variant with a quantity. cart page
product An offer - what a customer buys in this store. offer page, home page, category page, feature value page, search, settings that point at it
variant One buyable combination of the offer's options. offer page
media A picture or video from an offer gallery. offer page
file A file from the store's media library - what an image_picker, file_picker or video setting returns. settings that point at it
category A store category. category page, home page, settings that point at it
menu A store menu - what a link_list setting returns. settings that point at it
link One link of a menu, with its submenu and an optional mega-menu panel. settings that point at it
page A content page of the store (About us, Shipping and so on). content page, search
blog The store blog. blog, blog post
blog_category A blog category. blog
article A blog post. blog post, blog, home page, search
reviews Reviews of an offer, from every channel the products are sold in. offer page
review One published review. offer page, settings that point at it
term One value of a dictionary feature - an author, a publisher, an ingredient - with its page in the store (templates/term.json). feature value page, feature index
feature The index page of a dictionary feature (templates/terms.json) - all authors, all brands and so on. feature index, feature value page
widget A named, configured instance of a section type - what a widget setting returns. settings that point at it
section The section being rendered. every section file
block The block being rendered. every block file