- 05 Sep 2022
- 6 Minutes to read
- Print
- DarkLight
- PDF
Triggers
- Updated on 05 Sep 2022
- 6 Minutes to read
- Print
- DarkLight
- PDF
An employee must be assigned to the shop with a Shop Owner Admin role to perform actions referred to in this article.
A Trigger is an action or number of actions that ShopCtrl will perform on a configured event.
Triggers are used to send emails to customers, webhooks to external party applications, for setting up your own system of customized order statuses. With the triggers, you could set up your fulfillment process and define a moment when the stock will be allocated for order.
Triggers could be created on a shopowner level and applied to all shop groups. And could be as well shop-specific, for example, when it is needed to use different email templates for shops.
Events
A trigger could be raised for different events connected with a change in different areas of ShopCtrl. Please see a complete list below.
Shops
- Init new shop.
- New shop saved.
Invoices
- Invoice changed.
- Invoice payments done. You can specify Direction: Debit, Credit; Transfer type; and Payment type.
- Invoice payments not done. You can specify Direction: Debit, Credit; Transfer type; and Payment type.
- Invoice payments partial done. You can specify Direction: Debit, Credit; Transfer type; and Payment type.
- Invoice reminder. Executes trigger when the first reminder is sent. Reminder dates are configured in shop settings Invoice reminders.
- Invoice reminder. Executes trigger when the second reminder is sent.
- Invoice reminder. Executes trigger when the third reminder is sent.
- Non-draft invoice saved.
Orders
- New order added.
- New order initialized.
- Not shippable order fully shipped
- Order changed.
- Order comment changed.
- Order custom status changed. Fire trigger on: all status changes, specific base status, specific status.
- Order customer rating changed.
- Order down payment done.
- Order fulfillment status changed. Fire trigger on: all status changes, specific base status, specific status.
- Order fully delivered.
- Order fully shipped.
- Order has one or more order rows not in stock.
- Order invoices all paid. Direction: Debit, Credit; Transfer type; Payment type.
- Order invoices created. Execute condition: always, only when paid, only when not paid.
- Order invoices partial paid. Direction: Debit, Credit; Transfer type; Payment type.
- Order invoices partly created.
- Order main status changed. Fire trigger on: all status changes, specific base status, specific status
- Order needs refund. You can specify Direction: Debit, Credit; Transfer type; and Payment type.
- Order payment status changed. Fire trigger on: all status changes, specific base status, specific status
- Order payment type changed. Payment type, Transfer type
- Order payments done. You can specify Direction: Debit, Credit; Transfer type; and Payment type.
- Order payments not done. You can specify Direction: Debit, Credit; Transfer type; and Payment type.
- Order payments partial done. You can specify Direction: Debit, Credit; Transfer type; and Payment type.
- Order preferred delivery date changed.
- Order shipment status changed. Fire trigger on: all status changes, specific base status, specific status.
- Order stock status changed. Fire trigger on: all status changes, specific base status, specific status.
Products
- Product available stock changed. Possible to specify a Shop group.
- Product brand changed.
- Product brand deleted.
- Product changed.
- Product deleted.
- Product group changed.
- Product group deleted.
- Product property def changed.
- Product property def deleted .
- Product selection product changed.
- Product selection product deleted.
Purchase orders
- Purchase order created.
- Purchase order custom status changed.
- Purchase order delivery provisioned.
- Purchase order delivery received.
- Purchase order handed over.
- Purchase order main status changed.
- Purchase order payment status changed.
- Purchase order provision status changed.
- Purchase order provisioned.
- Purchase order received.
- Purchase order submit status changed.
Returns
- Return changed. Specify Warehouses.
- Return created. Specify Warehouses.
- Return main status changed. Fire trigger on: all status changes, specific base status, specific status.
Shipments and Parcels
- New parcel added.
- Parcel pickup done.
- Parcel status change. Fire trigger on: all status changes, specific base status, specific status; Carrier account, Carrier module.
- Shipment created. Specify Warehouses, Carrier accounts, Carrier Modules.
- Shipment delivered. Specify Warehouses, Carrier accounts, Carrier Modules.
- Shipment handover. Specify Warehouses, Carrier accounts, Carrier Modules.
- Shipment packed. Specify Warehouses, Carrier accounts, Carrier Modules.
- Shipment picked. Specify Warehouses, Carrier accounts, Carrier Modules.
- Shipment shipped. Specify Warehouses, Carrier accounts, Carrier Modules.
Miscellaneous
- Ticket main status changed. Fire trigger on: all status changes, specific base status, specific status.
- Voip call changed.
Actions
You can trigger a number of corresponding actions for the event. Actions will be executed according to the order in the list.
Set Order status
Sets order status of the corresponding order to a certain value. You can select one or several statuses to change.
For example, suppose the order was created manually (and not imported from one of the shops). In that case, you might want to automatically change the order status to "Manual", for example, to distinguish these orders from the ones imported from the shops.
Set Invoice status
Sets invoice status of the corresponding invoice to a certain value.
Select a status or several statuses to change. The status will be updated to the status selected, disregarding the invoice's current status.
Set Purchase Order Status
In the same way, you could change the purchase order status as a result of a certain event.
Send email
You can select a mail template to use, decide whether a mail needs attachment (like invoice document auto-generated). Check the single execute checkbox to exclude repetition. The email will be sent only once.
For example, you can set up an order confirmation email that will be sent after the order was imported or created manually.
You can use any shop, customer, or order-related merge fields to populate the mail with relevant data. See more on Email templates.
Call Webhook
You can configure webhooks to be sent to your external target applications after a certain event in ShopCtrl.
For more information on the webhooks setup, please see Webhooks.
Create Shipment
It could be used to automatically create shipments when an order is fully allocated.
Once the Order stock status is changed to finished, the shipment will be created automatically.
Settings example:
Event: Order stock status changed
Trigger condition: Fire trigger on specific base status: Finished
Action: Create shipment.
Create Invoice
With this action, you can configure the moment an invoice is generated.
What items will be included in the invoice is configurable: You could also specify what items will be included in the invoice:
- Complete order (Default)
- Shipped items
Depending on your internal processes, you could define the moment an invoice will be automatically created. For example:
Create invoice when new order is added
Event: New order added
Action 1: Create invoice. Create invoice for: Default (Complete Order)
Action 2: Send email. Mail template: Invoice type. Requires attachment. Single execute.Create invoice when order is shipped
Event: Shipment shipped.
Action 1: Create invoice. Create invoice for: Shipped items
Action 2: Send email. Mail template: Invoice type. Requires attachment. Single execute.
Allocate stock
With this action, you could specify when you would like to reserve (allocate) the stock for the order.
You could also specify whether to allocate the previously deallocated order rows.
Depending on your internal processes, you could set this moment to be when:
- Order invoices all paid
- Order invoices partial paid
- Order down payment done
- Order payments done
Deallocate Stock
Sets the moment to deallocate stock. Handles the scenarious with the orders put on hold by any reason.
For example, you could use it together with the "Order main status changed, Base status: Pause" event.
Set Carrier Account
You can configure a trigger to change a carrier account to a specific one for a certain shop.
Set Shipment Shipped
Sets a corresponding shipment status to shipped.
Create Document
You can set this trigger to generate the event-related document using the template chosen. Follow it with sending email action to auto send a document to the addressee.
Create Alert
You can specify the alert type, severity, title, and message that will be displayed after a certain event.
The most common use is to create an alert when handling backorders. You could use the "Order has one or more order rows not in stock" event to configure this. The alert will be created for each new backorder to guarantee that the situation will be addressed immediately.
Create ticket
After any order-related event, you can configure trigger to create a ticket of a certain type and assign it to a certain employee group to handle.