Shopify Theme Building Workshop

142
Shopify Theme Building Second Wednesday Workshop - June 2015

Transcript of Shopify Theme Building Workshop

Page 1: Shopify Theme Building Workshop

Shopify Theme BuildingSecond Wednesday Workshop - June 2015

Page 2: Shopify Theme Building Workshop

Who am I?

Page 3: Shopify Theme Building Workshop

Keir Whitaker [email protected] keirwhitaker.com

@keirwhitaker

Page 4: Shopify Theme Building Workshop

Before we begin

shopify.com/partners

Page 5: Shopify Theme Building Workshop

shopify.com/grow

Page 6: Shopify Theme Building Workshop

What is Shopify?

Page 7: Shopify Theme Building Workshop

Theme based hosted ecommerce platform

used by 165,000+ stores

Page 8: Shopify Theme Building Workshop

Platform?

Page 9: Shopify Theme Building Workshop

2014 GMV $3,700,000,000

Page 10: Shopify Theme Building Workshop

2014 $4.7 million paid to app developers

$4.2 million paid to theme developers 41,000 connections made between

merchants and Shopify Experts

shopify.com/2014

Page 11: Shopify Theme Building Workshop

Example Stores

Page 12: Shopify Theme Building Workshop

Online

Page 13: Shopify Theme Building Workshop

Five Simple Steps

Page 14: Shopify Theme Building Workshop

Smashing Magazine

Page 15: Shopify Theme Building Workshop

Greats Brand

Page 16: Shopify Theme Building Workshop

Herb Lester

Page 17: Shopify Theme Building Workshop

Pure Fix Cycles

Page 18: Shopify Theme Building Workshop

Best Made Co.

Page 19: Shopify Theme Building Workshop

Holstee

Page 20: Shopify Theme Building Workshop

For Merchants

Page 21: Shopify Theme Building Workshop

Sell Everywhere Shopify mobile app Order management

Customer management Discount engine Reporting tools

Shipping and fulfilment Gift cards

70+ payment gateways 24/7 support

1000+ 3rd party apps

Page 22: Shopify Theme Building Workshop

$29, $79, $179/month + transaction fees

( £19 / £53 / £121 )

Page 23: Shopify Theme Building Workshop

New: Channels

Page 24: Shopify Theme Building Workshop

Online Point of Sale Buy Button

Page 25: Shopify Theme Building Workshop

Point of Sale (POS)

Page 26: Shopify Theme Building Workshop

New: Buyable Pins

Page 27: Shopify Theme Building Workshop

New: Buy Buttons

Page 28: Shopify Theme Building Workshop
Page 29: Shopify Theme Building Workshop

Pages & Blogs

Page 30: Shopify Theme Building Workshop

The Shopify Blog

Page 31: Shopify Theme Building Workshop

Pages

Page 32: Shopify Theme Building Workshop

Approaches to Integration

Page 33: Shopify Theme Building Workshop

Payments & Checkout

Page 34: Shopify Theme Building Workshop

Shopify Payments

Basic: 2.4% + 20p Professional: 2.1% + 20p Unlimited: 1.8% + 20p

Page 35: Shopify Theme Building Workshop

Responsive Checkout

Page 36: Shopify Theme Building Workshop

Bogus Gateway

Page 37: Shopify Theme Building Workshop

Notifications

Page 38: Shopify Theme Building Workshop

Notifications

Page 39: Shopify Theme Building Workshop

Receiptful

Page 40: Shopify Theme Building Workshop

URL Redirects

Page 41: Shopify Theme Building Workshop

Redirect old to new

Page 42: Shopify Theme Building Workshop

For Designers

Page 43: Shopify Theme Building Workshop

Flexible theme based system Sass support

Custom templates Timber framework

Mac theme sync tool / Ruby Gem Deploy from Git Repos (via Beanstalk)

Free workshops and tutorials All assets pushed to CDN

Unlimited dev shops (100% free sandboxes) Partner & Expert programmes & Forums

24/7 Partner Support 20% Revenue Share

Page 44: Shopify Theme Building Workshop

and…

No cost to design & develop for you

Page 45: Shopify Theme Building Workshop

HTML CSS

JavaScript Liquid*

* Much more on this later

Page 46: Shopify Theme Building Workshop

Is Shopify Responsive?

Page 47: Shopify Theme Building Workshop

YES* If you build your themes that way

Page 48: Shopify Theme Building Workshop

Mobile August 2014 - mobile > desktop

33% total sales from a mobile device in 2014

Page 49: Shopify Theme Building Workshop

Questions?

Page 50: Shopify Theme Building Workshop

Key Concepts

Page 51: Shopify Theme Building Workshop

Products

Page 52: Shopify Theme Building Workshop
Page 53: Shopify Theme Building Workshop
Page 54: Shopify Theme Building Workshop

Collections

Page 55: Shopify Theme Building Workshop

purefixcycles.com/collections

Page 56: Shopify Theme Building Workshop

purefixcycles.com/collections/50mm-wheelsets

Page 57: Shopify Theme Building Workshop

purefixcycles.com/collections/50mm-wheelsets

Page 58: Shopify Theme Building Workshop

Filtering Collections

Page 59: Shopify Theme Building Workshop

purefixcycles.com/collections/drivetrain/parts+white

Page 60: Shopify Theme Building Workshop

Images

Page 61: Shopify Theme Building Workshop

2 Types of Images Theme images & Product images

Page 62: Shopify Theme Building Workshop

unmatchedstyle.com/news/mastering-images-in-shopify-themes.php

Page 63: Shopify Theme Building Workshop

Themes

Page 64: Shopify Theme Building Workshop

HTML CSS

JavaScript Liquid

Page 65: Shopify Theme Building Workshop

assets -- site.css.liquid -- site.js.liquidconfig -- settings.htmllayout -- theme.liquidsnippets -- footer.liquid -- header.liquidtemplates -- 404.liquid -- article.liquid -- blog.liquid -- cart.liquid -- collection.liquid -- gift_card.liquid -- index.liquid -- list-collections.liquid -- page.liquid -- password.liquid -- product.liquid -- search.liquid

Page 66: Shopify Theme Building Workshop

“micro templates”

Page 67: Shopify Theme Building Workshop

url -> template

Page 68: Shopify Theme Building Workshop

/thisisntarealurl ! 404.liquid /blogs/<blog-name>/<article-id-handle> ! article.liquid /blogs/<blog-name> ! blog.liquid /cart ! cart.liquid /collections ! list-collections.liquid/collections/<collection-handle> ! collection.liquid/collections/<collection-handle>/<tag> ! collection.liquid / ! index.liquid/pages/<page-handle> ! page.liquid /products ! list-collections.liquid/products/<product-handle> ! product.liquid /search?q=<search-term> ! search.liquid

Page 69: Shopify Theme Building Workshop

Liquid

Page 70: Shopify Theme Building Workshop

Link between a stores data and your

templates

Page 71: Shopify Theme Building Workshop

uses dot syntax

Page 72: Shopify Theme Building Workshop

objects and properties

Page 73: Shopify Theme Building Workshop

shop.name product.handle product.images

Page 74: Shopify Theme Building Workshop

cheat.markdunkley.com

Page 75: Shopify Theme Building Workshop

Liquid Features

Page 76: Shopify Theme Building Workshop

Liquid Output

Page 77: Shopify Theme Building Workshop

Output

{{ product.title }}

{{ product.description }}

{{ product.handle }}

Page 78: Shopify Theme Building Workshop

Liquid Filters

Page 79: Shopify Theme Building Workshop

Filters

{{ product.title | upcase }}

{{ 'logo.png' | asset_url | img_tag: 'Site Logo' }}

{{ 'capitalize me' | capitalize }}

{{ article.published_at | date: "%a, %b %d, %y" }}

{{ 'style.css' | asset_url | stylesheet_tag }}

Page 80: Shopify Theme Building Workshop

{{ asset_url }}

Page 81: Shopify Theme Building Workshop

Liquid Logic

Page 82: Shopify Theme Building Workshop

Logic

{% if product.available %} Show Add to cart button here {% else %} Display message! {% endif %}

Page 83: Shopify Theme Building Workshop

Liquid Loops

Page 84: Shopify Theme Building Workshop

Loops

{% for image in product.images %} <img src="{{ image | product_img_url: 'medium' }}" /> {% endfor %}

Page 85: Shopify Theme Building Workshop

Liquid Layouts

Page 86: Shopify Theme Building Workshop

Layouts

<html> <head> {{ content_for_header }} <title>{{ shop.name }} - {{ page_title }}</title> {{ 'screen.css' | asset_url | stylesheet_tag }} </head> <body> {{ content_for_layout }} </body> </html>

Page 87: Shopify Theme Building Workshop

{{ content_for_header }}

{{ content_for_layout }}

Page 88: Shopify Theme Building Workshop

product.liquid

Page 89: Shopify Theme Building Workshop

theme.liquid

Page 90: Shopify Theme Building Workshop

header.liquid

Page 91: Shopify Theme Building Workshop

Liquid Snippets

Page 92: Shopify Theme Building Workshop

AKA partials & includes

Page 93: Shopify Theme Building Workshop

/snippets/header.liquid

<header> <h1>{{ shop.name }}</h1> </header>

Page 94: Shopify Theme Building Workshop

{% include 'header' %}

Page 95: Shopify Theme Building Workshop

the with parameter*

* this always confuses me

Page 96: Shopify Theme Building Workshop

Layouts, micro templates & snippets

Page 97: Shopify Theme Building Workshop

Layout

micro template

snippet

Page 98: Shopify Theme Building Workshop

Theme Settings

Page 99: Shopify Theme Building Workshop

Theme settings

Page 100: Shopify Theme Building Workshop

config/settings_schema.json

Page 101: Shopify Theme Building Workshop

{{ settings.shop_bg_color }}

Page 102: Shopify Theme Building Workshop

Power Tips

Page 103: Shopify Theme Building Workshop

Alternate templates

Page 104: Shopify Theme Building Workshop

collections.*.liquid page.*.liquid

product.*.liquid

Page 105: Shopify Theme Building Workshop

collections.*.liquid page.*.liquid

product.*.liquid

Template selector

Page 106: Shopify Theme Building Workshop

Alternate views

Page 107: Shopify Theme Building Workshop

/products/cool-kicks?view=*

product.*.liquid

Page 108: Shopify Theme Building Workshop

/products/cool-kicks?view=list

product.list.liquid

Page 109: Shopify Theme Building Workshop

/products/cool-kicks?view=list

product.list.liquidGrid & list view

/collections/computers?view=list

Page 110: Shopify Theme Building Workshop

Workflow

Page 111: Shopify Theme Building Workshop

Dev stores

Page 112: Shopify Theme Building Workshop

Sublime Text 2 + Liquid Syntax

Page 113: Shopify Theme Building Workshop

Upload via admin

Page 114: Shopify Theme Building Workshop

Mac sync tool

Page 115: Shopify Theme Building Workshop

Beanstalk & git

Page 116: Shopify Theme Building Workshop

Break

Page 117: Shopify Theme Building Workshop

Let’s build!

Page 118: Shopify Theme Building Workshop

1. Create a dev store 2. Add products, variants and images 3. Create collections 4. Add products to collections 5. Upload a starter theme 6. Add shop variables to theme.liquid 7. Use Liquid to output collection images 8. Use Liquid to output featured images 9. Use Liquid to output product images of all sizes 10. Create a snippet and include it using Liquid logic 11. Create theme settings JSON file 12. Output theme settings in a micro template

Page 119: Shopify Theme Building Workshop

Partner account

shopify.com/partners

Page 120: Shopify Theme Building Workshop

Login to your dashboard and create

a dev shop

Page 121: Shopify Theme Building Workshop

Task 1 Products & Collections

Page 122: Shopify Theme Building Workshop

Add 3 products

Page 123: Shopify Theme Building Workshop

Add more than one product image to

each product

Page 124: Shopify Theme Building Workshop

Add a variant to each product

Page 125: Shopify Theme Building Workshop

Create two collections, add a collection image

and description and finally add your

products to them

Page 126: Shopify Theme Building Workshop

Task 2 Liquid

Page 127: Shopify Theme Building Workshop

upload shopify-birthday-suit to your dev shop and activate

the theme

Page 128: Shopify Theme Building Workshop

Using the online theme editor add in the name & description of your

store (using the variable shop) to the

footer in theme.liquid

Page 129: Shopify Theme Building Workshop

Using Liquid add code to output the

collection image for each collection in

list-collections.liquid

Page 130: Shopify Theme Building Workshop

Using Liquid add code to output the

featured image in product.liquid

Page 131: Shopify Theme Building Workshop

Now change this to add in the first image in a large format and

the rest as thumbnails

Page 132: Shopify Theme Building Workshop

Task 3 Snippets

Page 133: Shopify Theme Building Workshop

Copy in the contents of product.liquid and change one element

Page 134: Shopify Theme Building Workshop

Add in a liquid logic statement to check for your products

handle and show your new snippet if true

Page 135: Shopify Theme Building Workshop

Break

Page 136: Shopify Theme Building Workshop

The Shopify Economy

Page 137: Shopify Theme Building Workshop

6 Ways to Make £€$ with Shopify

Page 138: Shopify Theme Building Workshop

1. Store setup 2. Customisation 3. Design & Build 4. Theme store 5. App Store 6. Revenue share

Page 139: Shopify Theme Building Workshop

Market your skills

Web Site Rescues

Shopify Plus Landing Page

Page 140: Shopify Theme Building Workshop

shopify.com/grow

Page 141: Shopify Theme Building Workshop

And finally…

First one of you to launch a store within 3 months

will get a year free on the Unlimited plan

Page 142: Shopify Theme Building Workshop

Thank You [email protected] shopify.com/partners @shopifypartners

keirwhitaker.com @keirwhitaker