Skip to main content
Paysum storefronts are Liquid themes. Paysum renders them on its storefront servers with your store’s products and settings. A theme is a folder of plain files: no build step and no package install.

Folder layout

Only files in these six folders belong to the theme. Text files can be .liquid, .css, .json, .js, .svg or .html.

The manifest

config/theme.json describes the theme:

Templates

Paysum picks a template from the page address: Checkout, the order page and the status page are Paysum pages. Themes do not render them. layout/theme.liquid wraps every template. Print the template’s output with content_for_layout:
A typical templates/index.liquid renders the sections in the merchant’s order:

Tags

Paysum supports the standard Liquid tags (if, unless, case, for, assign, capture, comment, raw) and these: include is not available. Use render.

Global objects

These objects are available in every file.

shop

products

products is the catalog in order. Sold-out products are left out when the merchant turned on Hide sold out. On a category page, products holds that category’s products. featured_products holds the featured products. spotlight_products holds the featured products, or the first product when none are featured, up to six. Use it for carousels.

product

settings

The merchant’s design settings:

content and copy

  • content holds what merchants edit in the visual builder, for example content.products_title, content.features_title, content.faq_title, the content.features list and the content.faqs list.
  • copy holds the text from your manifest’s defaults, with the merchant’s edits applied, for example copy.purchaseLabel.

Other objects

The product page

On /products/<slug>, page also has:

Filters

All standard Liquid filters work, such as escape, default, upcase, size, first, newline_to_br and date. Paysum adds or changes these:

Output is escaped

Output is HTML-escaped by default. To print trusted HTML, such as product.description, add | safe. Never mark buyer or merchant text as safe unless Paysum already gives it to you as HTML.

Let merchants edit text in place

Add data-editable to an element to make its text editable in the visual builder: Add data-section="<id>" to each section’s root element so the builder can select, hide and reorder it.

Next steps