This guide walks you through migrating an existing theme to the Vitrin system using our pre-prepared LLM prompt.
Prerequisites#
Before starting the migration:Ensure you have the full source code of your theme.
Back up the original theme files.
Have a working LLM interface (e.g., OpenAI API, internal LLM tooling).
Access to Vitrin theme documentation for reference.
Template engine syntax used in both old and Vitrin systems
Any API changes in Vitrin
Migration Steps#
The migration process will automate most of the conversion work, but manual validation and testing remain essential.
Note that your mileage may vary with the following instructions due to the behaviors of different LLMs and context size limitations.
Step 1 – Prepare Your Theme Code#
Gather all relevant files: templates, assets, configuration files.
Find your agentic coding tool of choice (we recommend using Claude Code given that most of our testin was done on it).
Step 2 – Load the Migration Prompt#
We have provided a pre-written LLM prompt to guide the transformation of your theme code.Convert the following twig theme to Jinja based on the instructions here https://0qyg3ujwfd.apidog.io/twig-to-jinja-1376139m0
Find all occurrences of the settings described here and update them to the new paths:
https://0qyg3ujwfd.apidog.io/store-settings-mapping-1355489m0
Make sure that the settings are store.settings.*
Using the Vitrin Theme Migration Prompt:Convert the theme to match Vitrin's template structure.
Adjust settings schema to match Vitrin configuration format.
Ensure file naming conventions follow Vitrin standards.
Includes the new required tags that will add the appropriate headers and scripts.
We recommend that you read the migration documents and re-prompt the agent if it missed any of the of the instructions due to context window.
Step 3 – Apply Manual Fixes#
Even after running the LLM migration, you will likely need to:Adjust logic where the LLM’s output may not fully reflect intended functionality.
Correct dynamic content rendering.
Verify responsive design and mobile compatibility.
Replace or adjust any deprecated code.
Step 4 – Test Thoroughly#
Check layout, typography, colors, and images.
Compare with the original theme design.
Verify navigation menus, search, product listings, and checkout flow.
Test all interactive components (sliders, forms, modals, etc.).