Welcome Servies To Emole Services Developer Documention
You Can Learn How TO Create Services And ALso Create New Mobile App
my-theme/
theme.json name, global settings (colors, fonts, corners), presets, companions
assets/global.css CSS for the whole theme
sections/<key>/section.html section HTML
sections/<key>/section.css section CSS, prefixed with .ets-<key>
sections/<key>/schema.json section name, fields and block types
sections/product-card/ (reserved) the product card in every listing
templates/header.json header
templates/home.json home page
templates/product.json product
templates/category.json category
templates/topic.json content pages
templates/footer.json footer
templates/cart.json … platform pages (optional)
templates/*.json@:[
{ "section": "@breadcrumb", "position": "full" },
{ "section": "@gallery", "position": "start" },
{ "section": "@addtocart", "position": "end" },
{ "section": "spring", "settings": { "title": "New arrivals" } }
]position: full full width, start first column, end second column.schema.json{
"name": "Product grid",
"schema": [
{ "key": "title", "label": "Title", "type": "text", "default": "New arrivals" },
{ "key": "limit", "label": "Count", "type": "number", "default": "8" },
{ "key": "categoryId", "label": "Category", "type": "category" },
{ "key": "sort", "label": "Sort", "type": "sort", "default": "newest" }
],
"merchantAdd": true
}| Type | Shown to the merchant as |
|---|---|
text · textarea | Short text · long text |
image · url | Image (with your image list) · link |
color · number · font | Color picker · number · font. In theme.json they become CSS variables |
select with options | Dropdown |
boolean | Yes / no |
category | A category from the merchant's store |
sort | newest · price-asc · price-desc · name · position |
label, default and help, and "locked": true to hide it from the merchant.schema.json:{
"name": "Slider",
"schema": [ { "key": "height", "label": "Height", "type": "number", "default": "480" } ],
"maxBlocks": 8,
"blocks": {
"slide": { "name": "Slide", "limit": 0, "schema": [
{ "key": "image", "label": "Image", "type": "image" },
{ "key": "title", "label": "Title", "type": "text", "default": "Slide title" }
] }
}
}section.html: block fields directly, plus {{id}}, {{type}} and is_<type>:{ "section": "spring", "blocks": [
{ "type": "slide", "settings": { "title": "Winter collection" } },
{ "type": "slide", "settings": { "title": "20% off" } } ] }| Property | Meaning |
|---|---|
maxBlocks | Maximum in the section (default 24, maximum 50) |
limit | Maximum of one type (0 for no limit) |