Назад к скиллам
от ProxiBlue★ 17 звёзд на GitHub
loki-checkout
БесплатноБез исполняемых скриптовНе проверенBuild Loki Checkout skins, template overrides, Alpine.js components,
от ProxiBlue★ 17 звёзд на GitHubОб этом скилле
Loki Checkout Development Skill
Always Do First
Before generating any Loki-related code, read the actual source:
- vendor/loki/magento2-checkout/view/frontend/templates/ — overrideable PHMLs
- vendor/loki/magento2-checkout/view/frontend/layout/ — layout XML handles
- vendor/loki/magento2-checkout/view/frontend/web/ — Alpine stores/components
- vendor/loki/magento2-checkout/etc/ — DI, config, skin reg
- vendor/loki/magento2-checkout/README.md — if present
Use these as the canonical override targets, never guess at structure.
Skin Module Pattern
A Loki skin is a standard Magento 2 module. Reference existing skins:
- vendor/loki/magento2-skin-*/ (or wherever skins live in your vendor) File structure mirrors standard Magento module layout.
Alpine Conventions
Loki loads Alpine.js via Loki_Base. All components must be:
- CSP-compatible (no inline mutations, no x-model)
- Registered with Alpine.data() inside alpine:init
- Using $hyvaCsp->registerInlineScript() after every