https://github.com/thisislawatts/shopify-local-notifications
Test Shopify Notifications locally
https://github.com/thisislawatts/shopify-local-notifications
shopify-notifications
Last synced: about 2 months ago
JSON representation
Test Shopify Notifications locally
- Host: GitHub
- URL: https://github.com/thisislawatts/shopify-local-notifications
- Owner: thisislawatts
- License: mit
- Created: 2016-10-22T17:00:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-10T18:05:25.000Z (almost 9 years ago)
- Last Synced: 2025-03-21T11:50:53.983Z (over 1 year ago)
- Topics: shopify-notifications
- Language: Liquid
- Size: 38.1 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Shopify Notifications
===
[](https://codeclimate.com/github/thisislawatts/shopify-local-notifications)
[](https://gemnasium.com/github.com/thisislawatts/shopify-local-notifications)
A tool to help test email templates locally when customising notifications.
Check the [templates variables documentation](https://help.shopify.com/manual/sell-online/notifications/email-variables) for a full list of the available objects.
Usage
---
```bash
ruby email-preview.rb
```
Then [open it up in the Browser](http://localhost:4567/) at [http://localhost:4567/]()
Getting Order Information
---
If you've got a particular order you'd like to work with, you can get easily get this information from a Shopify store in JSON format.
1. Visit the Order section and load up the order you want
2. In the browser's address bar append `.json` to the URL.
3. Copy and paste the content to `data/{template_name}.json`
Development
---
```bash
rerun 'ruby email-preview.rb'
```