Home Download Buy Blog Forum Support

Sublime Shopify Plugin

Sublime Shopify Plugin

Postby segfault on Wed Feb 08, 2012 7:00 pm

Hello to the Sublime Text 2 community. I have to say that this text editor is very exciting and great to work with. I have developed a plugin that will pull and push the text based (css, javascript, liquid) theme assets from Shopify for local editing.

SublimeShopifySmaller.jpg
Browsing Shopify theme assets
SublimeShopifySmaller.jpg (30.45 KiB) Viewed 10333 times


The plugin is available at https://bitbucket.org/dwarburton/sublimeshopify and can be cloned by mercurial if you have it installed. I ran into some problems with the different capabilities of the embedded python on Windows vs Linux (where the Linux version doesn't support SSL or expat XML) but that is sorted out and the plugin works on the platforms I've tested it on:

Windows 7 x64
Linux Mint 12 x64

If someone with a Shopify store and Macintosh computer would like to use this, please test it and let me know how it works.
Attachments
SublimeShopify.jpg
Larger image of browsing Shopify theme assets
SublimeShopify.jpg (220.34 KiB) Viewed 10375 times
segfault
 
Posts: 7
Joined: Thu Feb 02, 2012 2:37 pm

Re: Sublime Shopify Plugin

Postby francoiscote on Wed Feb 08, 2012 9:38 pm

this day is now a great day.

I will install/follow this with interest. Thanks a lot!
francoiscote
 
Posts: 1
Joined: Wed Feb 08, 2012 9:37 pm

Re: Sublime Shopify Plugin

Postby Hilyin on Sat Sep 08, 2012 12:43 am

Awesome! Is there a way to open the entire project of a shop? Rather than individual files 1 by 1.

BTW: I am on Mac OS X 10.8.1 (Mountain Lion) and it seems to work so far.

Thank you!
Hilyin
 
Posts: 12
Joined: Thu Sep 29, 2011 6:18 pm

Re: Sublime Shopify Plugin

Postby chrisremo on Fri Oct 05, 2012 11:41 pm

I'm able to download and open files from Shopify just fine using the plugin, but whenever I save a file, I get the message "Upload to [store name] has failed." I'm not sure where to look to figure out what's going on. Any ideas?

Thanks for the plugin!
chrisremo
 
Posts: 2
Joined: Fri Oct 05, 2012 11:38 pm

Re: Sublime Shopify Plugin

Postby danrubin on Fri Oct 19, 2012 10:26 pm

That error message is present in the Textmate plugin, too — seems to be an issue with Shopify's API...
danrubin
 
Posts: 1
Joined: Fri Oct 19, 2012 10:25 pm

Re: Sublime Shopify Plugin

Postby kottmaskinen on Fri Nov 09, 2012 4:15 pm

Is it supposed to auto update the shopify files? Because nothing happens on the server when I save a file from Sublime (I'm on a Mac). It can find the active themes from the site though, so apparently there's some connection to it.
kottmaskinen
 
Posts: 1
Joined: Fri Nov 09, 2012 4:13 pm

Re: Sublime Shopify Plugin

Postby MrThunder on Mon Aug 26, 2013 9:24 pm

Hi I'm using Sublime Shopify on windows 8 and I cannot get it to work.

The installation guide is a bit sketchy. I downloaded the package and dropped it into the packages folder, i then opened opened package control and put in my api key etc. to the ShopifyStores.json.

In the instructions it says there a command to download the store to your local machine but I cannot see it in package control. I also cannot see any of my files that are on shopify.

Any advice?

Thanks
MrThunder
 
Posts: 12
Joined: Thu Jun 27, 2013 8:44 pm

Re: Sublime Shopify Plugin

Postby motorfang on Tue Dec 31, 2013 2:49 am

Can someone please post an example of the ShopifyStores.json file? I cannot find any info on the expected format.
I'm using Sublime Text 3 on Linux.
Here's what I've tried:

{"myshop": {
"API_KEY": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"PASSWORD": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"SHOP_NAME": "myshopname"
}}

Thanks!
David
motorfang
 
Posts: 1
Joined: Tue Dec 31, 2013 2:39 am

Re: Sublime Shopify Plugin

Postby jebuslizama on Tue Dec 31, 2013 9:37 pm

Hey guys, if you go to your Shopify theme directory, you will notice a folder called Cache, with a subfolder within it.

If you load that directory into sublime, you can then see a directory view of the theme files you have previously uploaded.

Using these files will allow you a more structured way to save/edit your shopify theme files!
jebuslizama
 
Posts: 1
Joined: Tue Dec 31, 2013 9:35 pm


Return to Plugin Announcements

Who is online

Users browsing this forum: Majestic-12 [Bot] and 7 guests