You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Download a Shopify store's assets used in your theme
It's hard to migrate section themes that rely heavily on images.
This bit of code helps you download all the CDN assets of your theme.
Create a cdn_assets folder
Create the download_assets.js file at the root of your project
Edit the download_assets.js file to match the path to your settings_data.json (line 3)
Edit the download_assets.js file to set the "CDN code" of your store.
Each file that you upload from /admin/settings/files gets uploaded with the following format:
https://cdn.shopify.com/s/files/1/YOUR_CDN_CODE/files/YOURFILE. The format of the code is /\d{4}\/\d{4}/ (four digits, a forward slash, and four digits)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If the script doesn't work, uncomment lines 5 and 32-33 below, and login to shopify. After one whole successful script run, you can comment back these lines.
Synchronize Shopify customers with Sendy subscribers
Sendy woudln't be the Mailchimp killer without a proper Shopify integration. There we go, thanks to the Shopify gem and some ActiveRecord awesomeness.
NB: The script always keep in sync Shopify's accepts_marketing field with Sendy's unsubscribed field. I added custom fields like country and order count as an example of what we can do with it.
Installation
First make sure that you have the right ruby install (with rbenv for instance), with the right gems installed
(like activerecord, shopify_api, etc) and the right mysql packages for the activerecord adapter;
Get a YAML dictionary of ISO 4217 and ISO 3166-1 mapping / Country-currency binding - Made for the `exchange` gem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters