#Barcode JS: Shopify Order Printer App
This is a javascript solution to have Shopify's Order Printer app display product variant barcodes in the following formats:
Below is a screenshot of a basic template using this barcode solution:
| Pry.config.history.should_save = true | |
| Pry.config.history.file = File.join(__dir__, '.pry_history') |
| # lib/jsonapi/adapters/transactionless_mongoid_adapter.rb | |
| module Jsonapi | |
| module Adapters | |
| # Mongoid transactionless adapter | |
| # See https://github.com/jsonapi-suite/jsonapi_compliable/blob/master/lib/jsonapi_compliable/adapters/abstract.rb | |
| # | |
| # @author [Cyril] | |
| # | |
| class TransactionlessMongoidAdapter < JsonapiCompliable::Adapters::Abstract | |
| def sideloading_module |
| <p style="float: right; text-align: right; margin: 0;"> | |
| {{ "now" | date: "%m/%d/%y" }}<br /> | |
| Invoice for {{ order_name }} | |
| </p> | |
| <div style="float: left; margin: 0 0 1.5em 0;" > | |
| <strong style="font-size: 2em;">{{ shop_name }}</strong><br /><br /> | |
| {{ shop.address }}<br/> | |
| {{ shop.city }} {{ shop.province_code }} {{ shop.zip | upcase }}<br/> | |
| {{ shop.country }} |
#Barcode JS: Shopify Order Printer App
This is a javascript solution to have Shopify's Order Printer app display product variant barcodes in the following formats:
Below is a screenshot of a basic template using this barcode solution:
| <cfscript> | |
| myUrl = "https://news.google.com/news?gl=us&hl=en&as_epq=chinese+medicine&as_occt=title&as_qdr=a&authuser=0&q=allintitle:++%22chinese+medicine%22&um=1&output=rss"; // web service url | |
| objUrl = createobject("java","java.net.URL").init(myUrl); | |
| conn = objUrl.openConnection(); | |
| //configure the request | |
| conn.setDoOutput(true); | |
| conn.setUseCaches(false); | |
| conn.setRequestMethod("GET"); | |
| # Add these two gems | |
| gem 'ice_cube', '0.9.3' | |
| gem 'squeel', '1.0.16' |
| server { | |
| index index.php; | |
| set $basepath "/var/www"; | |
| set $domain $host; | |
| # check one name domain for simple application | |
| if ($domain ~ "^(.[^.]*)\.dev$") { | |
| set $domain $1; | |
| set $rootpath "${domain}"; |
| class ApplicationController < ActionController::Base | |
| protect_from_forgery | |
| protected | |
| def current_user | |
| @current_user ||= User.find_by_id(session[:user_id]) | |
| end | |
| def signed_in? |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>OnDemand</key> | |
| <false/> | |
| <key>KeepAlive</key> | |
| <true/> | |
| <!doctype html> | |
| <!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
| <html> | |
| <head> | |
| <title>iOS 8 web app</title> | |
| <!-- CONFIGURATION --> |