How to theme watch on a duplicate theme with the same store URL

Tourist
10 0 1

Hey there,

 

Thank you for taking a look at my message here.

 

I have a project where I'm making layout changes to product pages with a live Shopify site and I am curious as to how to theme watch on a duplicate theme as my Terminal is flagging an unknown flag error followed by the URL. I am guessing this is based on the URL being the same as the live theme. My goal is to make changes to the duplicate theme locally while using theme watch so I can avoid importing the theme files each time I make a change to the code, and most importantly, be able to have the live theme's products, photography, etc. populate as I preview and edit the code. 

 

I am referencing the worlkflow noted in the second step recommended by Shopify here: https://community.shopify.com/c/Shopify-Design/Smoothest-way-to-change-theme-on-a-live-store/td-p/28...

 

Any ideas here?

0 Likes
Astronaut
765 79 152

Are you using Theme Kit? Your duplicate theme should have a unique theme id that you setup that's in the url when you're in the Edit Code Section of the admin:

 

https://your-store.myshopify.com/admin/themes/32791986263  <-- Theme ID number

 

If you aren't using themekit yet, this is a really nice guide to setting it up:

 

https://www.shopify.com/partners/blog/95401862-3-simple-steps-for-setting-up-a-local-shopify-theme-d...

If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
1 Like
Tourist
10 0 1

I am using ThemeKit and I do have the unique ID inserted in the theme watch command.

 

I followed these steps –

 

1. Create a duplicate of their current theme 

2. Go to Actions / Download Theme File 

3. Use the private app 'bggy' to establish connection and have read & write capabilities via password 

4. Run theme watch *making sure to use the duplicate theme id and not the existing theme id. The store name remains the same within the ‘Customize’ preview

5. However, I was unable to connect here due to the following prompt in the Terminal. Perhaps this has to do with the store URLS being the same?

 

unknown flag: --mineral1.myshopify.com

0 Likes
Astronaut
765 79 152

There shouldn't be an issue with the store urls being the same because the id is unique. If I were you I would just follow along with that link I posted.  Since you already have themekit installed I would start here: https://www.shopify.com/partners/blog/95401862-3-simple-steps-for-setting-up-a-local-shopify-theme-d...

 

I wouldn't rely on a private app to establish your connection when you can do that really simply yourself, for all I know that could be causing an issue cause I don't know how that app works.  I know I found it pretty easy to follow along with this and I had no prior experience with themekit, you can make the duplicate of your theme, get the theme id when you go into the theme editor, and you can download it directly to your machine through the terminal. 

 

Do note that in this tutorial they use [brackets] around stuff as placeholders that you do not need brackets around, that was the only think I found confusing. 

If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
1 Like
Highlighted
Tourist
10 0 1

Hey 

 

 

 

For anyone who encounters the same issue, make sure you are previewing the theme you are looking to push changes to, and also make sure your theme id is not the same as any of the other themes in your store. 

0 Likes