Skip to main content
Every Paysum storefront loads the storefront runtime. It is a small script that gives all themes the same behavior: the cart, the product page, search, menus, carousels and customer sign-in. You do not write JavaScript for these. You mark elements with data-os-* attributes and the runtime does the rest. The cart and the customer session are the same as on Paysum’s own pages, so a cart filled on your theme carries over to checkout.

Cart

Add to cart from a product card

data-os-add takes the product as JSON from the cart_json filter. A click adds one item and opens the cart. Products with variants go to data-os-href instead, so the buyer can choose an option.

Open the cart and show the count

Product page

Wrap the buying area of templates/product.liquid in data-os-product-page. The runtime reads the product from the page and keeps the price, quantity and stock in step with the buyer’s choices.
data-os-search names the list’s id. Items whose data-os-search-text contains the query stay visible. data-os-search-empty shows when nothing matches.

Customer sign-in

Sign-in uses the same email code flow as the account page.

Carousels and effects

The runtime also:
  • Replaces broken product images inside data-os-product with generated product art.
  • Prefetches store pages on hover so navigation feels instant.
  • Shows the store popups set up under Marketing → Popups.
  • Loads the integrations from Integrations → App store (Google Analytics, Meta Pixel, Crisp and others).

Events

Next steps