Storefront Extension Apps
In this guide we'll go over all of the steps to get started building an app that extends storefront functionality to introduce many of the core app framework concepts and how to use them.
Common Use Cases
Storefront extensions are commonly used for but not limited to:
- Install javascript tracking snippets to storefront and checkout flow
- Add custom functionality to checkout flow
- Add custom functionality to storefront themes
Preparation
If you haven't done so already, create your 29 Next account and complete your Partner Registration.
Make sure you have access to a store you plan to use for development - you will use this in later steps.
If you need a development store for your app, submit a development store request below and we'll hook you up. Request a Development Store
App Layout Overview
Let's take a look at the basic file structure of apps to understand how to get started creating our first app.
your-app
├── assets
│ └── my-app.js
├── snippets
│ └── global-header.html
└── manifest.json
Assets
The asset directory is meant to contain any static assets needed for your app, such as images, css, or javascript that is referenced in your app snippets. See Assets Guide
Snippets
The snippets directory is meant to contain HTML snippets your app uses to extend storefront themes and add custom functionality. App snippets should follow the same coding practices as Theme Templates. See Snippets Guide
Manifest.json
A manifest.json file specifies the configuration and metadata needed to install and configure your app. See Manifest Reference
App Kit
App Kit is a tool you install on your local machine to assist with bundling your app files and pushing them to the platform so they can be installed on a store.
Setup App
Now that you have your app files, it's time to configure your app on your local to link it to your App Client ID
.
App Client ID: // your app client id
accounts.29next.com Email: your user account email
accounts.29next.com Password: your user account password
Build Your App Bundle
Using App Kit, create a build of your app using the command line from your app directory.
nak build
Push App
Now, push your app to your our platform using your username and password credentials for your account at accounts.29next.com
.