Update theme versions while keeping customisations as a Shopify developer
One of the biggest problems as a Shopify developer is updating customised themes to the current version.
Say what? Just click the update button, and you have the new theme ๐
This may be true for themes that are untouched by third-party customisations. But when developers already worked on that theme, all theme customisations will be gone after a theme update.
What is the best way of safely updating an already customised theme?
For now, the only reliable option is to transfer all the old customisations by hand into the updated theme. But you can make your life a little bit easier by using these tools and methods.
๐๐จ๐จ๐ฅ๐ฌ
๐โ๐๐๐๐๐ฆ ๐ถ๐ฟ๐ผ
Let's you easily pull themes on your local machine and therefore be able to compare code changes
๐บ๐๐กโ๐ข๐ ๐๐๐ก๐๐๐๐๐ก๐๐๐
To actually see and compare changes, you need a Git repository for your current theme. I'm recommending GitHub because it offers a native Shopify integration.
๐๐๐ญ๐ก๐จ๐
1. Download the newest version of your theme.
2. Open your current live theme on your local machine with the CLI.
3. Create Github connection (if not already connected).
4. Use ๐ด๐ฉ๐ฐ๐ฑ๐ช๐ง๐บ ๐ต๐ฉ๐ฆ๐ฎ๐ฆ ๐ฑ๐ถ๐ญ๐ญ and select the freshly added newest version.
5. Go through the changes and adjust the old customizations to fit the new theme version
6. After testing everything, create a backup of live and use ๐ด๐ฉ๐ฐ๐ฑ๐ช๐ง๐บ ๐ต๐ฉ๐ฆ๐ฎ๐ฆ ๐ฑ๐ถ๐ด๐ฉ to push to live.
With this method, you now have the updated theme version, including all your old customisations.
Extra tip: While developing a theme, keep all your theme customisations as separate from the rest of the code as possible. This will make everything much easier ๐
Is this a quick and easy fix? Not really.
Is this the only reliable option for now? Unfortunately, yes!






