This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is auto-generated from the current state of the database. Instead of editing this file, | |
# please use the migrations feature of Active Record to incrementally modify your database, and | |
# then regenerate this schema definition. | |
# | |
# Note that this schema.rb definition is the authoritative source for your database schema. If you need | |
# to create the application database on another system, you should be using db:schema:load, not running | |
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations | |
# you'll amass, the slower it'll run and the greater likelihood for issues). | |
# | |
# It's strongly recommended to check this file into your version control system. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LoginController < ApplicationController | |
def index | |
# Ask user for their #{shop}.myshopify.com address | |
end | |
def authenticate | |
redirect_to ShopifyAPI::Session.new(params[:shop].chomp('/')).create_permission_url | |
end | |
# Shopify redirects the logged-in user back to this action along with |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LoginController < ApplicationController | |
def index | |
# Ask user for their #{shop}.myshopify.com address | |
end | |
def authenticate | |
redirect_to ShopifyAPI::Session.new(params[:shop].chomp('/')).create_permission_url | |
end | |
# Shopify redirects the logged-in user back to this action along with |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LoginController < ApplicationController | |
def index | |
# Ask user for their #{shop}.myshopify.com address | |
end | |
def authenticate | |
redirect_to ShopifyAPI::Session.new(params[:shop].chomp('/')).create_permission_url | |
end | |
# Shopify redirects the logged-in user back to this action along with |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="product-left">{% for image in product.images %}{% if forloop.first %} | |
<div id="product-image"> | |
<a href="{{ image | product_img_url: 'large' }}" rel="lightbox[images]" title="{{ product.title | escape }}"><img src="{{ image | product_img_url: 'medium' }}" alt="{{ product.title | escape }}" /></a> | |
</div>{% else %} | |
<div class="product-images"> | |
<a href="{{ image | product_img_url: 'large' }}" rel="lightbox[images]" title="{{ product.title | escape }}"><img src="{{ image | product_img_url: 'small' }}" alt="{{ product.title | escape }}" /></a> | |
</div>{% endif %}{% endfor %} | |
</div> | |
<div id="product-right"> | |
<h1>{{ product.title }}</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1> | |
{{ product.title }} | |
{% for variant in product.variants %} | |
{% if variant.available %} | |
{% else %} | |
<span class="soldout"><em>{{ variant.title }}</em> is currently Sold Out! :(</span> | |
{% endif %} | |
{% endfor %} | |
</h1> | |
<!--product-block--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="product-left"> | |
<h2>{{ product.title }} by {{ product.vendor }} <span>{{ product.price | money }}</span></h2> | |
{{ product.description }} | |
<div id="product-select"> | |
<form action="/cart/add" method="post" name="cartadd"> | |
{% if product.available %} | |
<div id="product-variants"> | |
{% if product.variants.size == 1 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<fieldset> | |
<legend>Site Title</legend> | |
<table> | |
<tr> | |
<th><label for="title_width">Title Size</label></th> | |
<td> | |
<select name="title_width" id="title_width"> | |
<option value="normal" selected="selected">Normal (147 x 167 px)</option> | |
<option value="wide">Wide (294 x 167 px)</option> | |
</select> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if product.tags.size > 0 %} | |
<!-- START RELATED --> | |
<div id="related"> | |
<h6>{% if settings.related.size > 0 %}{{ settings.related | escape }}{% else %}Take a look at these great accessories:{% endif %}</h6> | |
<!-- START SLIDER --> | |
<div id="slider" class="clear"> | |
<!-- START PREV --> | |
<div id="prev"> | |
<p><a href="/collections/all" class="inactive">Previous</a></p> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HomeController < ApplicationController | |
around_filter :shopify_session, :except => 'welcome' | |
def welcome | |
current_host = "#{request.host}#{':' + request.port.to_s if request.port != 80}" | |
@callback_url = "http://#{current_host}/login/finalize" | |
end | |
def index |
OlderNewer