sudo apt install zsh
After installing it, type zsh
zsh will ask you to choose some configuration.
| <form action="/cart/add" method="post" enctype="multipart/form-data" id="AddToCartForm"> | |
| {% if collection.products_count > 0 %} | |
| {% for product in collection.products %} | |
| {% if product.available %} | |
| <div class="row"> | |
| <div class="col-xs-12 col-sm-4"> | |
| <img src="{{ product.image | default: product.featured_image | img_url: 'large' }}" alt="{{ variant.title | escape }}" /> | |
| </div> | |
| <div class="col-xs-12 col-sm-8" style="padding: 15% 40px 0"> | |
| <div class="col-xs-12 col-sm-12"> |
| {% comment %} Hide Secret Shipping Rates From Checkout {% endcomment %} | |
| <script type="text/javascript"> | |
| if (Shopify.Checkout.step == 'shipping_method') { | |
| $(window).load(function () { | |
| $(".radio__label__primary").each(function () { | |
| var shipMeth = $(this).data("shipping-method-label-title"); | |
| if (shipMeth) { | |
| if (shipMeth.includes("Name Of Secret Shipping Rate Here") || shipMeth.includes("Another Secret Ship Option Rate Here")) { | |
| $(this).closest(".content-box__row").remove(); | |
| $(".section__content").each(function () { |
| // Future versions of Hyper may add additional config options, | |
| // which will not automatically be merged into this file. | |
| // See https://hyper.is#cfg for all currently supported options. | |
| module.exports = { | |
| config: { | |
| // choose either `'stable'` for receiving highly polished, | |
| // or `'canary'` for less polished but more frequent updates | |
| updateChannel: 'stable', | |
| // Future versions of Hyper may add additional config options, | |
| // which will not automatically be merged into this file. | |
| // See https://hyper.is#cfg for all currently supported options. | |
| module.exports = { | |
| config: { | |
| // choose either `'stable'` for receiving highly polished, | |
| // or `'canary'` for less polished but more frequent updates | |
| updateChannel: 'stable', |
| ## This is your TEST dev theme [in Test env]. You should make all your changes here and view on test store while working. | |
| development: | |
| <<: *shared | |
| store: STORE_NAME_HERE.myshopify.com ## Test Store name. | |
| password: ADD_PASSWORD_HERE ## Private App password from Shopify. | |
| theme_id: 'ADD_THEME_ID_HERE' ## ID number of your Dev theme on live store. | |
| ## TEST Staging theme [in Test env] | |
| staging-test: | |
| <<: *shared |
| # Buy X products of the same vendor, get 1 free. | |
| class VendorSelector | |
| def initialize(vendor, tag) | |
| @vendor = vendor | |
| @tag = tag | |
| end | |
| # Returns whether a or not a line item matches the selector. |
| # 1) Create your private key | |
| $ cd ~/.ssh | |
| $ openssl genrsa -des3 -passout pass:x -out lvh.me.pass.key 2048 | |
| # 2) Generate RSA key | |
| $ openssl rsa -passin pass:x -in lvh.me.pass.key -out lvh.me.key | |
| # 3) Get rid of private key | |
| $ rm lvh.me.pass.key |
Bootstrap 3.0 gives you access to the awesome icon set icon set by these dudes but it's not obvious for a Rails newbie like myself to get it all working together nicely
RAILS_ROOT/vendor/assets/stylesheet/bootstrap-glyphicons.css/dist/fonts from the Bootstrap 3.0 download to a new folder in your Rails app RAILS_ROOT/vendor/assets/fontsconfig.assets.paths << Rails.root.join("vendor","assets", "fonts") to application.rb after the line that has class Application < Rails::Application.bootstrap-glyphicons.css modify the the `url