We want to go from this:
... to that:
## 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 |
// 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', | |
{% 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 () { |
<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"> |
# Use an array to keep track of the discount campaigns desired. | |
CAMPAIGNS = [ | |
# $5 off all items with the "sale" tag | |
ItemCampaign.new( | |
AndSelector.new( | |
TagSelector.new("sale"), | |
ExcludeGiftCardSelector.new, | |
), | |
MoneyDiscount.new(5_00, "5$ off all items on sale",), | |
), |
List current remotes:
git remote -v
Add Heroku product & staging remotes:
Using Heroku-CLI:
heroku git:remote -a staging-app-name -r staging
Git 2.13 introduced conditional configuration includes. For now, the only supported condition is matching the filesystem path of the repository, but that’s exactly what we need in this case.
You can configure your conditional includes by adding them to the bottom of your home directory’s ~/.gitconfig file:
[includeIf "gitdir:~/work/"]
path = ~/.gitconfig-work
[includeIf "gitdir:~/specific-project/"]
path = ~/.gitconfig-specific-project