Design and Marketing Snippets

Design and Marketing Snippets

To add new functionality to your Shopit template, you can make use of our Snippets feature.

Snippets are like 'shortcodes' - you create/paste longer form code and Shopit outputs a shorter code for you to place anywhere on site.

How to Create a Snippet

  1. Within your Sales Channel menu, click Snippets
  2. Give your Snippet a recognisable name
  3. Shopit will turn this into the snippet short code automatically, or you can overwrite it
  4. Create your code (see below examples)
  5. Save
When using the Template Editor you will see several snippets already created and being used. You can ciick the green bar to edit these, or go via the Snippets menu option

The Code Format


Your snippet code will be in the format of:

{{ snippet('yournamehere') }}

Please note the spaces, the single apostrophe marks and the double curly brackets.

Placing your Snippet Code

You have a number of options to utilise your snippets. You can place them in:

  1. a single place (or a number of single places) e.g. Contact Form
  2. a recurring place like all products e.g. Shipping Information
  3. a recurring place like the footer - so every single page on the site e.g. Customer Reviews of your company

Examples


Free Shipping snippet on every product page

Footer snippet appears on every page

Combined with our Create Forms feature, this email form uses a snippet to feature on a single contact page