SummerFans / medusa-plugin-courier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Medusa logo Medusa logo

Medusa Plugin Courier Notification

Medusa notification plugin template provided

The Courier plugin is a simple notification plugin that currently only supports email notifications.

ENV

AUTH_TOKEN={AUTH_TOKEN}

medusa-config.js

{
    resolve: "medusa-plugin-courier",
    options: {
      store_name: "xxx",
      auth_token: "xxxxx",
      store_url: process.env.STOREFRONT_URL || "http://localhost:8000",
      template: {
          "order.placed": "{COURIER_TEMPLATE_ID}"
      }
    }
}

COURIER_TEMPLATE_ID: How to Design a Courier Notification If the {COURIER_TEMPLATE_ID} does not exist, the default template will be used.

Progress

Order Event

Customer Event

Template variables

ORDER.PLACED

name type des
id string unique id
display_id string display code
first_name string -
last_name string -
updated_at string -
created_at string -
currency_code string -
subtotal string -
shipping_total string -
tax_total string -
total string -
items Array -
items.title string -
items.description string -
items.thumbnail string -
items.quantity number -
items.unit_price string -
items.original_total string -
items.total number -

ORDER.CANCELED

name type des
id string unique id

CUSTOMER.CREATED

name descript
asdf aadfsd

CUSTOMER.PASSWORED_RESET

name descript
asdf aadfsd

About


Languages

Language:TypeScript 96.7%Language:JavaScript 3.3%