Configuration
import { template, section } from '@lightspeed/crane-api';
export default template.configuration({
metadata: {
name: 'My Store Template',
description: 'A modern template designed for apparel and footwear stores',
categories: ['apparel_footwear', 'sport_outdoor'],
preview_url: 'https://my-store-template.company.site',
cover_image: {
set: {
ORIGINAL: {
url: 'cover_image.jpg',
width: 1200,
height: 800,
},
},
},
},
header: section.custom({
id: 'my-custom-header',
showcase_id: '001',
}),
footer: section.default({
id: 'footer',
}),
});Factory Functions
Factory
Description
Properties
Property
Required
Description
metadata
metadataProperty
Required
Description
Property
Required
Description
Variant
Required
Description
Property
Required
Description
header
headerProperty
Required
Description
Property
Required
Description
footer
footerProperty
Required
Description
Property
Required
Description
Validation Errors
Metadata Errors
Error
Cause
Resolution
Image Errors
Error
Cause
Resolution
Section Errors
Error
Cause
Resolution
Schema Errors
Error
Cause
Resolution
Last updated
Was this helpful?
