Skip to content
Ayra Docs

Theme app blocks & embeds

Ayra’s storefront is delivered as one theme app extension: an app embed that loads the shared core bundle, and a set of app blocks that merchants place from the theme editor in any section that accepts app blocks (product, collection, cart, page, header and footer sections on Online Store 2.0 themes). Blocks render server-side Liquid for the first paint and hydrate from the core bundle only when they need customer state. Nothing is written to theme files; uninstalling removes every block.

Name in theme editorAyra (App embeds)
What it doesLoads the core bundle (≤ 15 KB gzipped) with defer, identifies the logged-in customer, exposes wallet state to blocks, emits DOM events, registers the web pixel
SettingsPosition of the floating wallet launcher (off, bottom-left, bottom-right); accent colour override (defaults to the theme’s)
Required forAny block that shows customer state; the account hub works without it

Status: live blocks ship with the modules in private beta; planned blocks arrive with their module.

BlockModuleStatusRendersSettingsCan be placed in
Points on this productLoyaltyLive“Earn N points” for the current variant, tier multiplier appliedLabel text, show for guests (yes/no), iconProduct section
Wallet summaryLoyaltyLiveBalance, tier badge and link to the hub; a sign-in prompt for guestsCompact/full layout, show tier, show store creditHeader, cart, footer, page
How to earnLoyaltyLiveThe earn rules as a list, from the ayra_earn_rule metaobjectsWhich rules to show, headingPage, product
Tier ladderLoyaltyLiveTiers with thresholds and perks, the customer’s progress when signed inShow perks, headingPage, account page
Referral cardReferralsLiveThe customer’s link and code with share buttons; a sign-in prompt for guestsHeading, share channels, reward copyPage, cart, order status (via account extension)
Lifecycle bannerSegmentationLiveA message per lifecycle stage (welcome back, thank you, etc.)One text per stage, show for guestsHeader, page
Review listReviewsPlannedReviews with media, filters and paginationPer page, sort, show media, show verified onlyProduct section
Star ratingReviewsPlannedAverage and count from ayra.review_summaryShow count, sizeProduct, collection card
Review formReviewsPlannedSubmit a review with photosRequire purchase, media uploadProduct, page
Q&AReviewsPlannedQuestions and answers with an ask formPer page, show unansweredProduct section
Wishlist buttonWishlistPlannedAdd/remove for the current variant with the countIcon style, show countProduct, collection card
Wishlist pageWishlistPlannedThe customer’s list with price-drop markersColumns, show price dropsPage
Back in stock buttonBack in StockPlannedRegister for a restock alert on sold-out variantsChannels offered, copyProduct section
Pre-order buttonPre-OrderPlannedReplaces add to cart for pre-order variants with ship dateCopy, show limitProduct section
Subscribe widgetSubscriptionsPlannedSelling plan picker with the save offersPlan display, default planProduct section
  • Product page: Points on this product under the price, Star rating next to the title, Review list below the description. One block of each type per page.
  • Collection cards: Star rating and Wishlist button are the only blocks designed for card density; both are planned.
  • Header: Wallet summary in compact layout. It replaces the floating launcher if you prefer no floating element; turn the launcher off in the embed settings.
  • Cart: Wallet summary (full) so the balance is visible before checkout, and the Referral card on empty carts.
  • Account: The account hub is a customer account extension and does not use theme blocks; see Customer account extensions.

Blocks inherit the theme’s fonts and colours through CSS custom properties and expose a short list of their own (--ayra-accent, --ayra-radius, --ayra-surface). Override them in the theme’s CSS on the block’s wrapper class (.ayra-block), not by editing the block. Every block has a data-ayra-block="<name>" attribute for targeting.

Something missing or wrong on this page? Ask us and we will fix the docs.