Transcript
Page 1: Shopify Theme Development for Web Designers and Developers

Creating Custom Shopify Themes

presented at general assembly

shopify & growth spark

Page 2: Shopify Theme Development for Web Designers and Developers

ross beyelerGrowth Spark Founder

Shopify Design Ambassador

Page 3: Shopify Theme Development for Web Designers and Developers

the teamGrowth Spark

Page 4: Shopify Theme Development for Web Designers and Developers

Some of Our Shopify Work

Page 5: Shopify Theme Development for Web Designers and Developers
Page 6: Shopify Theme Development for Web Designers and Developers
Page 7: Shopify Theme Development for Web Designers and Developers
Page 8: Shopify Theme Development for Web Designers and Developers
Page 9: Shopify Theme Development for Web Designers and Developers
Page 10: Shopify Theme Development for Web Designers and Developers

Tonight’s Agenda

Page 11: Shopify Theme Development for Web Designers and Developers

agendaWorking with Shopify

Workshop SetupShopify Basics

BREAK

Customizing ShopifyChallenge 1Challenge 2Challenge 3Challenge 4

Q&A

Page 12: Shopify Theme Development for Web Designers and Developers

share away!share with your friends

@shopify@growthspark

#shopifyu

Page 13: Shopify Theme Development for Web Designers and Developers

What is Shopify?

Page 14: Shopify Theme Development for Web Designers and Developers

what is shopify?Easy to use, theme based

hosted e-commerce platform

Founded in 2006

~350+ Employees

100,000+ stores

$4B+ Customer Sales

Page 15: Shopify Theme Development for Web Designers and Developers
Page 16: Shopify Theme Development for Web Designers and Developers

Working with Shopify

Page 17: Shopify Theme Development for Web Designers and Developers

Shopify is 100% free!For Designers and Developers

working with shopify

Page 18: Shopify Theme Development for Web Designers and Developers
Page 19: Shopify Theme Development for Web Designers and Developers
Page 20: Shopify Theme Development for Web Designers and Developers
Page 21: Shopify Theme Development for Web Designers and Developers
Page 22: Shopify Theme Development for Web Designers and Developers

working with shopify

50% of theme designers made $20k+{many made $100k+}

Page 23: Shopify Theme Development for Web Designers and Developers

WorkshopSetup

Page 24: Shopify Theme Development for Web Designers and Developers

Join the Partner Programbit.ly/sfwd-bos

workshop setup

Page 25: Shopify Theme Development for Web Designers and Developers
Page 26: Shopify Theme Development for Web Designers and Developers

Setup your Shopify Dummy Store

workshop setup

Page 27: Shopify Theme Development for Web Designers and Developers
Page 28: Shopify Theme Development for Web Designers and Developers

Download the Workshop Contentbit.ly/sfwd-stuff

workshop setup

Page 29: Shopify Theme Development for Web Designers and Developers

Shopify Basics

Page 30: Shopify Theme Development for Web Designers and Developers

shopify basics

Managing Content

Page 31: Shopify Theme Development for Web Designers and Developers

shopify basics

Products

Collections

Pages

Posts

Navigation

Page 32: Shopify Theme Development for Web Designers and Developers

shopify basics

Managing Sales

Page 33: Shopify Theme Development for Web Designers and Developers

shopify basics

Customers

Orders

Discounts

Gift Cards

Reports

Page 34: Shopify Theme Development for Web Designers and Developers

shopify basics

Managing Settings

Page 35: Shopify Theme Development for Web Designers and Developers

shopify basics

Themes

Apps

Settings

Page 36: Shopify Theme Development for Web Designers and Developers

Break Time!

presented at general assembly

shopify & growth spark

Page 37: Shopify Theme Development for Web Designers and Developers

Customizing Shopify

Page 38: Shopify Theme Development for Web Designers and Developers

customizing shopify

Theme Structure

Page 39: Shopify Theme Development for Web Designers and Developers

customizing shopify

HTMLCSSJS

Liquid

Theme structure

Page 40: Shopify Theme Development for Web Designers and Developers

customizing shopifyTheme structure

assets

site.css.liquidsite.js.liquid

config

layout

theme.liquid

snippets footer.liquidheader.liquid

templates

404.liquidarticle.liquidblog.liquidcart.liquid

collection.liquidindex.liquid

list-collections.liquidpage.liquid

product.liquidsearch.liquid

Page 41: Shopify Theme Development for Web Designers and Developers

customizing shopifyTheme structure

/thisisntarealurl

/blogs/<blog-name>/<article-id-handle>

/blogs/<blog-name>

/cart

/collections

/collections/<collection-handle>

/collections/<collection-handle>/<tag>

/

/pages/<page-handle>

/products

/products/<product-handle>

/search?q=<search-term>

404.liquid

article.liquid

blog.liquid

cart.liquid

list-collections.liquid

collection.liquid

collection.liquid

index.liquid

page.liquid

list-collections.liquid

product.liquid

search.liquid

Page 42: Shopify Theme Development for Web Designers and Developers

customizing shopify

Liquid

Page 43: Shopify Theme Development for Web Designers and Developers

customizing shopify

Output

{{ product.title }}

{{ product.description }}

{{ product.handle }}

Page 44: Shopify Theme Development for Web Designers and Developers

customizing shopify

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 45: Shopify Theme Development for Web Designers and Developers

customizing shopify

Logic

{% if product.available %}Show Add to cart button here

{% else %}Display message!

{% endif %}

Page 46: Shopify Theme Development for Web Designers and Developers

customizing shopify

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 47: Shopify Theme Development for Web Designers and Developers
Page 48: Shopify Theme Development for Web Designers and Developers

Shopify Challenges

Page 49: Shopify Theme Development for Web Designers and Developers

Add Quantity Box to Product Detail Page

challenge #1

Page 50: Shopify Theme Development for Web Designers and Developers

challenge #1Adding Quantity Box to Product Detail Page

Go to http://bit.ly/add-quantity-box

In the snippets folder, locate product.liquid.

Copy/Paste snippet code from the workshop file

Page 51: Shopify Theme Development for Web Designers and Developers

challenge #1Snippet Code

<label for=”quantity”>Qty: </label>

<input min=”1” type=”number” id=”quantity”

name=”quantity” value=”1” />

<style>#quantity { padding:5px; width:35px; border:

1px solid #555; }</style>

Page 52: Shopify Theme Development for Web Designers and Developers

Add a Short Description to the Collections Page

challenge #2

Page 53: Shopify Theme Development for Web Designers and Developers

challenge #2Add Short Description to Collections Page

Resources: http://bit.ly/shopify-documents

In the snippets folder, locate product-loop.liquid.

Add the product description tag located in the workshop folder.

<div class=”description”>

{{ product.description }}

Page 54: Shopify Theme Development for Web Designers and Developers

challenge #2Add Short Description to Collections Page

Resources: http://bit.ly/shopify-documents

Now using a filter, shorten/truncate to X number of characters.

<div class=”description”>

{{ product.description | truncatewords: 50 }}

</div>

Page 55: Shopify Theme Development for Web Designers and Developers

Add Text on Hover

challenge #3

Page 56: Shopify Theme Development for Web Designers and Developers

challenge #3Add Text on Hover

Go to http://bit.ly/shopify-resource

Locate the css and copy from the gist located in

the workshop folder

In the snippets folder, locate the

product-loop.liquid page

Page 57: Shopify Theme Development for Web Designers and Developers

5

4

challenge #3Adding Quantity Box to Product Detail Page

Enclose your image tag within a div with the

class of reveal. <div class=”reveal”>IMAGE TAG</div>

What do you want to reveal on hover? Example:

product title, product price

Page 58: Shopify Theme Development for Web Designers and Developers

challenge #3Snippet Code

<div class=”hidden”>

<div class=”caption”>

<div class=”centered”>

<p>{{ product.title }}</p>

<p>{{ product.price | money }}</p>

</div><!-- end of .centered -->

</div><!-- end of .caption -->

</div><!-- end of .hidden -->

Page 59: Shopify Theme Development for Web Designers and Developers

Add a Stock Level Indicator

challenge #4

Page 60: Shopify Theme Development for Web Designers and Developers

challenge #4Add a Stock Level Indicator

To see the changes, go back to the products page and track inventory.

Create a statement to show an alert when there is only one product left in the inventory

{% for variant in product.variants %}

{% if variant.inventory_quantity == 1 %}

only {{variant.inventory_quantity}} left!

{% endif %}

{% endfor %}

Page 61: Shopify Theme Development for Web Designers and Developers

presentationDownload our Resources Guide

http://growthspark.com/shopify/

Page 62: Shopify Theme Development for Web Designers and Developers

Thank [email protected] / @growthspark

any questions?

the end!


Top Related