Sezion’s app for Shopify is an embedded app that creates dynamic videos based on information about any products on the Shopify CMS. Using the Shopify API, the app allows you to select what content you want to incoporate in your custom video.
- First, you need a Sezion account. For more details go to Sezion.com and register.
- Write your
account_id
andaccount_secret
in the correct fields and save them. You can find these credentials in the admin page in Sezion. - Select which products you want videos from.
- Select a video template to use. You'll see examples of videos with each template to give you an idea of what the result will look like.
- Fill out the different dynamic fields of the video with information about your products.
- Create your video(s) and send them to your youtube account.
In order to do this, you need first to connect your Youtube account to Sezion and write down the id
you receive.
The app is developed using Node.js for the server-side and EJS for client-side.
Before running this project, you need to create a Shopify account and create an app. You can follow the Shopify developer’s Getting Started guide. When you're creating the app, you will be asked to give the Application Callback URL. In this project we chose to host the app at the URL https://localhost:3000.
$ node shopify_app.js -c etc/shopify_app_public.conf
The configuration file has the api_key
and the secret
for Shopify. More info: http://www.shopify.com/partners/apps
Note: Shopify uses HTTPS, so to test it in localhost
you need certificates or it won't work properly.
To start creating videos, first you need templates. public/scripts
are where the templates' scripts are stored. There is one file for each template.
The process for creating a new video using the Sezion SDK (in public/js
) is:
- Read the script file. It's a
json
. - Create the template object and call
TemplateNew
. This returns anid
that we need later. - For every product selected to create a video, validate the dynamic fields and create the video object.
- Call
TemplateVideoNew
with theid
mentioned before and the video object. The video is now processed by Sezion and you receive it's id.
Almost all the front-end code can be use to develop an app for another platform, not only Shopify. There are specific lines for Shopify which are commented out.
If you have any questions, feel free to contact us at [email protected]