Daily Report
  • Day 1 - 22/8
  • Day 2 - 23/8
  • Day 3 - 24/8
  • Day 4 - 25/8
  • Day 5 - 26/8
  • Day 6 - 28/8
  • Day 7 - 29/8
  • Day 8 - 30/8
  • Day 9 - 4/9
  • Day 10 - 5/9
  • Day 11 - 6/9
  • Day 12 - 7/9
  • Day 13 - 8/9
  • Day 14 - 9/9
  • Day 15 - 11/9
  • Day 16 - 12/9
  • Day 17 - 14/9
  • Day 18 - 15/9
  • Day 19 - 18/9
  • Day 20 - 19/9
  • Day 21 - 20/9
  • Day 22 - 21/9
  • Day 23 - 22/9
  • Day 24 - 23/9
  • Day 25 - 25/9
  • Day 26 - 26/9
  • Day 27 - 27/9
  • Day 28 - 28/9
  • Day 29 - 29/9
  • Day 30 - 2/10
  • Day 31 - 3/10
  • Day 33 - 7/10
  • Day 32 - 4/10
  • Day 34 - 9/10
  • Day 35 - 10/10
  • Day 36 - 11/10
  • Day 37 - 16/10
  • Day 38 - 17/10
  • Day 39 - 18/10
  • Day 40 - 19/10
  • Day 41 - 20/10
  • Day 42 - 21/10
  • Day 43 - 23/10
  • Day 44 - 25/10
  • Day 45 - 26/10
  • Day 46 - 27/10
  • Day 47 - 30/10
  • Day 48 - 31/10
  • Day 49 - 1/11
  • Day 50 - 2/11
  • Day 51 - 3/11
  • Day 52 - 5/11
  • Day 53 - 6/11
  • Day 54 - 7/11
  • Day 55 - 8/11
  • Day 56 - 9/11
  • Day 57 - 10/11
  • Day 58 - 13/11
  • Day 59 - 14/11
  • Day 60 - 15/11
  • Day 61 - 16/11
  • Day 4/12
  • Day 6/12
  • Day 7/12
  • Day 8/12
  • Day 12/12
  • Day 13/12
  • Day 14/12
  • Day 15/12
  • Day 16/12
  • Day 18/12
  • Day 19/12
  • Day 20/12
  • Day 21/12
  • Day 25/12
  • Day 26/12
  • Day 27/12
  • Day 28/12
  • Day 29/12
  • Day 3/1
  • Day 4/1
  • Day 5/1
  • Day 8/1
  • Day 10/1
  • Day 11/1
  • Day 12/1
  • Day 13/1
  • Day 15/1
  • Day 16/1
  • Day 17/1
  • Day 18/1
  • Day 19/1
  • Day 23/1
  • Day 24/1
  • Day 27/1
  • Day 29/1
  • Day 30/1
  • Day 1/2
  • Day 2/2
  • Day 5/2
  • Day 6/2
  • Day 15/2
  • Day 16/2
  • Day 17/2
  • Day 19/2
  • Day 20/1
  • Day 21/2
  • Day 22/2
  • Day 23/2
  • Day 26/2
  • Day 27/2
  • Day 28/2
  • Day 29/2
  • Day 1/3
  • Day 4/3
  • Day 5/3
  • Day 6/3
  • Day 7/3
  • Day 8/3
  • Day 9/3
  • Day 11/3
Powered by GitBook
On this page
  • Architecture
  • Dev tools
  • CLI

Day 27/2

Plan 27/2:

  • Researching Shopify document ( Developer tools, Liquid, ...)

  • customize speed

Progress:

Architecture

  • Layouts: Serve as the framework for each page of the store, wrapping around the content of each page. A typical theme has a single layout that includes sections common across the store, such as the header and footer.

  • Templates: Specific to different types of pages within the store (e.g., product pages, collection pages). Templates define the structure and content that appear within the layout's main content area.

  • Sections: Reusable modules that can be customized and reordered by merchants in the theme editor. Sections can be static (specific to certain pages) or dynamic (added to any page).

  • Blocks: Components that form parts of sections, allowing for further customization of content within sections. Blocks can have different types, such as text, images, or sliders.

  • Snippets: Reusable code parts that can be included in multiple templates and sections. Snippets are used to simplify theme code and avoid repetition.

  • Assets: Include static files like images, stylesheets (CSS), and JavaScript. These are used to add functionality and style to themes.

  • Config: Contains settings data for themes, which can be used to store theme settings and preferences, allowing merchants to customize aspects of their theme through the theme editor.

  • Locales: Contains translation files that enable themes to support multiple languages, making the store accessible to a wider audience.

  • Schema: Defines the settings for customizable elements within sections, allowing merchants to modify content directly in the theme editor without needing to edit the code.

Dev tools

CLI

Shopify CLI is a command-line interface tool help with building Shopify apps and themes.

It accelerates theme development process with:

  • Safely preview, test, and share changes to themes using development themes

  • Hot reload CSS and section changes, or automatically refresh a page on file change, when previewing a theme

  • Push and publish themes from the command line

Development themes

Development themes are temporary, hidden themes that are connected to the Shopify store that you're using for development and local testing.

Enviroment

Environments streamline command configurations, reducing the need for multiple flags by grouping settings under a single name.

They're handy for switching between development stores, accessing multiple stores with passwords, or deploying projects across different environments.

Create a theme

  • Create or login to a Shopify partner account and create a development store with store-name

Steps:

  1. Install CLI for Windows and Linux

    Run npm install -g @shopify/cli @shopify/theme on Terminal

  2. Initialize a new theme using Dawn

    Run shopify theme init [folder name] to clone Dawn Git repository to your local machine as folder [folder name].

  3. Navigate to the folder: cd "[folder name]"

  4. Start a local development server by running

shopify theme dev --store [store-name]

  1. On the first time start the server, you will be asked to login to Shopify partner

  2. Navigate to http://127.0.0.1:9292 to open the theme preview

  3. Upload your theme to a store if you want to share a permanent link to your theme, update the code of an existing theme, or prepare for your theme to be published. Run shopify theme push --unpublished on the first time pushing your theme code, after that, only need shopify theme push to update code

  4. publish your store to make your theme live with shopify theme publish --- > select the theme you want to publish and confirm

Switching between account

If you need to switch between accounts, log out of the current account:

shopify auth logout

The next time you enter a command that requires authentication, you'll be prompted to log in

Use Shopify CLI in a CI/CD pipeline

Steps:

  1. Install Shopify CLI and its dependencies in your CD pipeline

  2. Use environment variables (SHOPIFY_FLAG_STORE, SHOPIFY_CLI_THEME_TOKEN, SHOPIFY_CLI_TTY) for store interaction and to manage interactive prompts.

  3. Set up Ruby, bundler, and Node.js.

  4. Install Shopify CLI globally.

  5. Execute the desired Shopify CLI command.

PreviousDay 26/2NextDay 28/2

Last updated 1 year ago

Initialize a new theme using as a starting point

Work on multiple themes using

Run on your theme

Assure the to install and run Shopify CLI

Install App to create Theme access password which helps you in interacting with programmatically using Shopify CLI

Dawn
environments
Theme Check
installation requirement
Theme access