Shopify store data widget by Larry Wheeler
Widget for Dashing that shows data from your Shopify shop.
| jQuery(function($){ | |
| /* app proxy in jQuery*/ | |
| var base_urlc = window.location.hostname; //grab shop url | |
| var window_width = $(window).width(); //save width | |
| if ($('#custom_app').length > 0 ){ | |
| $('#custom_app').css({'width':'100%'}); // set container width | |
| var width_canvas = $('#custom_app').width(); //get container width | |
| var product_id = $('#custom_app').data('product'); //get product id |
| Shopify store data widget | |
| by Larry Wheeler | |
| # Description | |
| Widget for [Dashing](http://dashing.io/) that shows data from your Shopify shop. | |
| # Usage | |
| 1. To use this widget, copy `shopify.html`, `shopify.coffee`, and `shopify.scss` into a `/widgets/shopify` directory, and copy the `shopify.rb` file into your `/jobs` folder. | |
| 2. Create a private app in your store and copy the secret and login. https://docs.shopify.com/api/guides/api-credentials | |
| 3. Add gem 'shopify_api', :require => 'shopify_api' to your Gemfile 'gem install shopify_api' |
Shopify store data widget by Larry Wheeler
Widget for Dashing that shows data from your Shopify shop.