Skip to content

Features

Mark Moffat edited this page Oct 7, 2020 · 2 revisions

Sample/Test data

Sometimes you might want some default sample/test data. To create this, run npm run testdata.
Warning: Remember to only run this initially or anytime you want to reset the data as this function deletes ALL existing data.


API

There is currently a limited API for certain functions of the app. Using the API can be done by firstly generating an API key via the Admin login. Admin > My Account > API Key (Generate) button. Once an API Key is generated it will need to be supplied in a header called apiKey to authenticate requests.


Hooks / Integrations

On the completion of a order if a orderHook URL is configured, expressCart will POST the data to the configured URL. This is handy or IFTTT or Zapier Webhooks where you may want to use the integration methods to retrieve the order details in other systems.

Example use might be to send all orders to a Google Docs spreadsheet or an accounting package or a packing slip software etc.


Menu

Although expressCart is a search based shopping cart, you can also group your products into categories using tags. You can then setup menu Items to "filter" based on keywords (tags) to make it easier for your customers.

Setting up menu items is done via /admin/settings/menu.

To add a new menu item to filter products, you will set the menu text using the Menu field and setting the keyword to filter is using the link field.

To add a new menu item to link to a static page, you will set the menu text using the Menu field and set the static page URL using the link field. Eg: An About page would be set. Menu = 'About Us', Link = 'about`

You can re-order menu items by clicking and dragging the arrows icon and placing the menu item in desired position.


Static pages

You may want to create a static page to show contact details, about us, shipping information etc.

New static pages are setup via /admin/settings/pages.


Discount codes

You may want to create discount codes to be given to customers for promotions etc.

New discount codes are setup via /admin/settings/discounts.


Google data

By default the product data is updated into a Google feed format here: /googleproducts.xml.

You can setup Google to read this data here

  1. Products > Feeds > (+)
  2. Set the Country and language
  3. Set A name and Scheduled fetch
  4. Set the url to https://mydomain.com/googleproducts.xml
  5. Complete

Themes

Themes are a set of handlebars views and a stylesheet file. See Cloth theme as example.

Themes are loaded from /views/themes/.