Section templates in Glood.AI are the building blocks for displaying product recommendations in your Shopify store. They function similarly to Shopify themes, allowing you to create custom layouts and designs for your product recommendations.
Section templates are modular components that determine how your product recommendations are displayed. They are:
Similar to Shopify Themes: They follow the same principles as Shopify themes, using Liquid templating for dynamic content rendering.
JavaScript-Powered: Templates are loaded dynamically using JavaScript through the Glood.AI app embed, which handles recommendation fetching and rendering.
Headless Compatible: While templates are primarily for traditional Shopify stores, headless stores and Hydrogen apps can use our headless APIs instead.
Multi-Component Structure: Each template consists of:
Liquid templates for markup
JavaScript for interactivity
CSS for styling
Settings schema for customization
Translation strings for internationalization
Flexible Rendering: Templates can be rendered either on the frontend or backend, depending on your needs and configuration.
Extensible: We provide built-in Tags, Filters, and JavaScript Hooks for easy customization and third-party app integration.