---
title: "Action Log Plugin"
description: "The J2Commerce Action Log plugin records store activity in Joomla's built-in action log."
url: "https://docs.j2commerce.com/v6/apps-and-extensions/plugins/plg_actionlog_j2commerce"
markdown_url: "https://docs.j2commerce.com/v6/apps-and-extensions/plugins/plg_actionlog_j2commerce.md"
last_updated: "2026-10-31T23:39:59+00:00"
version: "J2Commerce 6"
breadcrumbs:
  - title: "Home"
    url: "https://docs.j2commerce.com/"
  - title: "J2Commerce 6"
    url: "https://docs.j2commerce.com/v6"
  - title: "Apps and Extensions"
    url: "https://docs.j2commerce.com/v6/apps-and-extensions"
  - title: "Plugins"
    url: "https://docs.j2commerce.com/v6/apps-and-extensions/plugins"
  - title: "Action Log Plugin"
    url: "https://docs.j2commerce.com/v6/apps-and-extensions/plugins/plg_actionlog_j2commerce"
---

# Action Log Plugin

The J2Commerce Action Log plugin records store activity in Joomla's built-in action log. Every time a shopper adds something to their basket, steps through checkout, or completes an order, a timestamped entry is written to the log. Administrators can review this activity from a single screen and receive email alerts when important events — such as a failed payment — occur.

The plugin works alongside Joomla's own action log system, so you see J2Commerce events together with any other Joomla events you already track.

## Enable the Plugin

![Joomla System Dashboard with the System sidebar entry, the Manage group and the Plugins link highlighted](https://docs.j2commerce.com/images/docs/shared/action-log-plugin.webp)

- Go to **System** **-> Manage -> Plugins**.
- Search for **J2Commerce - Action Log**.
- Click the checkbox next to it and then click **Enable** in the toolbar.

![Plugins list with the Status icon of the J2Commerce - Action Log plugin highlighted as enabled](https://docs.j2commerce.com/images/docs/shared/action-log-enable1.webp)

After enabling, the plugin starts recording store events immediately. No further action is needed unless you want to adjust which events are logged or set up email notifications.

To change settings, click the plugin name to open its configuration screen, make your changes, and click **Save & Close**.

## Configure the Plugin

Go to **System -> Manage ->** **Plugins**, search for **J2Commerce - Action Log**, and click the plugin name.

> **Tip:** **Helpful tip:** If you click on the **Toggle Inline Help** icon, it will explain each section

![J2Commerce - Action Log plugin with the Toggle Inline Help button highlighted and the Email Notification Level help text shown below the field](https://docs.j2commerce.com/images/docs/shared/action-log-toggle.webp)

### Basic Settings tab

![J2Commerce - Action Log plugin, Plugin tab highlighted: Email Notification Level Warning, Log Basket Events Yes, Log Checkout Events Yes, Log Order Events Yes](https://docs.j2commerce.com/images/docs/shared/action-log-config.webp)

### Email Notification Level

**Email Notification Level:** The minimum event priority that triggers an email alert. Events with a lower priority than the selected level are logged silently without sending an email.

The five priority levels, from lowest to highest, are:

| Level | Description | Typical events |
| --- | --- | --- |
| **Browse** | Low-priority browsing activity | Basket add, remove, update, clear |
| **Action** | Moderate shopper or admin actions | Checkout steps, order status changes |
| **Success** | Successful completions | Order confirmed, payment received |
| **Warning** | Failures or attention-needed events | Failed payment, canceled order |
| **Critical** | Highest severity | (Reserved for future use) |

Setting the level to **Warning** (the default) means you only receive email when a payment fails, an order is canceled, or a similarly serious event occurs. Choosing **Browse** would send an email for every basket interaction, which would be noisy for most stores.

### Notification User Groups

**Notification User Groups:** The Joomla user groups whose members receive email alerts. You can select multiple groups.

> **Tip:** Leave this field empty if you do not want email alerts at all. No email is sent unless at least one user group is selected here.

The plugin collects the email addresses of all active (non-blocked) users in the selected groups and sends each of them a plain-text email when a qualifying event occurs.

### Event Categories

Three toggles control which categories of events are recorded in the log:

**Log Basket Events:** Records when shoppers add items to the basket, remove items, update quantities, or clear the entire basket.

- These are logged when **Log Basket Events** is enabled.

| Event | Priority | What is recorded |
| --- | --- | --- |
| Item added to basket | Browse | Product name, product ID, quantity added |
| Item removed from basket | Browse | Product name, product ID |
| Item quantity updated | Browse | Product name, old quantity, new quantity |
| Basket cleared | Browse | (No additional data) |

**Log Checkout Events:** Records each step of the checkout funnel — start, login, billing address, shipping address, payment step, and order review.

- These are logged when **Log Checkout Events** is enabled.

| Event | Priority | What is recorded |
| --- | --- | --- |
| Checkout started | Action | (No additional data) |
| Logged in during checkout | Action | (No additional data) |
| Billing address completed | Action | (No additional data) |
| Shipping address completed | Action | (No additional data) |
| Payment step reached | Action | (Logged once per page load) |
| Order review reached | Success | (No additional data) |

**Log Order Events:** Records when a payment is completed (with its result) and when an administrator changes an order status.

- These are logged when **Log Order Events** is enabled.

| Event | Priority | What is recorded |
| --- | --- | --- |
| Payment completed — confirmed, processed, or shipped | Success | Order ID, status name |
| Payment completed — new status | Warning | Order ID, status name |
| Payment completed — failed or canceled | Warning | Order ID, status name |
| Order status changed by admin | Action (Warning if changed to failed/cancelled) | Order ID, old status, new status |

Disabling a category stops new entries for those events from being written. Existing log entries are not deleted.

## How It Works

Once enabled, the plugin listens for events fired by J2Commerce during normal shop operation. When a matching event occurs, the plugin:

1. Identifies the current user (or records "Guest" for shoppers who are not logged in).
2. Detects the visitor's device type — Desktop, Mobile, or Tablet — from the browser's user-agent string.
3. Writes a human-readable entry to Joomla's action log table.
4. Checks whether the event's priority meets the configured notification threshold and, if so, sends an email to the members of the selected user groups.

Entries appear immediately in **Users ->** **User Action Logs**. Each row shows the date and time, the username (linked to their user record), and a description of what happened.

![User Actions Log list showing check-in and login entries, with the Users menu and User Actions Log sidebar link highlighted](https://docs.j2commerce.com/images/docs/shared/action-log-user.webp)

> **Info:** The priority for the payment event depends on the resulting order status. A payment that results in a "Confirmed" or "Processed" status is logged at Success priority. A payment that results in "Failed" or "Canceled" is logged at Warning priority, which triggers an email if your threshold is set to Warning or lower.

## Tips

- To receive an alert only when payments fail, keep **Email Notification Level** set to **Warning** and add your administrators to **Notification User Groups**.
- If you want a complete picture of where shoppers drop off during checkout, keep all three event categories enabled and review the action log weekly.
- The log is stored in Joomla's standard `#__action_logs` table. You can use Joomla's built-in log management tools to set retention periods and purge old entries at **Users** -> **Action Logs** -> **Options**.

![User Actions Log screen with the Users sidebar entry, User Actions Log link and the Options toolbar button highlighted](https://docs.j2commerce.com/images/docs/shared/action-log-user-options.webp)

- Guest shoppers show as "Guest" in the log. The device type column helps you understand whether mobile visitors are experiencing more issues than desktop visitors.

## Troubleshooting

### No entries appear in the action log

**Cause:** The plugin may be disabled or a conflicting plugin is preventing events from firing.

**Solution:**

1. Go to **System** -> **Manage** -> **Plugins** and confirm the plugin status shows as **Enabled**.
2. Make sure the relevant event category toggle (**Log Basket Events**, **Log Checkout Events**, or **Log Order Events**) is set to **Yes**.
3. Navigate to **Users** -> **User Action Logs** and check that the log is not filtered to a date range that excludes today.
4. Verify that Joomla's own **Action Logs** plugin (`plg_system_actionlogs`) is also enabled in **System** -> **Manage** -> **Plugins**.

### Email notifications are not being sent

**Cause:** The notification threshold may be set too high, no user group is selected, or outgoing mail is not configured in Joomla.

**Solution:**

1. Open the plugin settings and confirm at least one group is selected in **Notification User Groups**.
2. Check that the **Email Notification Level** threshold is at or below the priority of the events you want to trigger emails. For example, if you want to receive alerts for failed payments, the threshold must be **Warning** or lower.
3. Go to **System** -> **Global Configuration** -> **Server** and verify that the mail settings are correct. Use the **Send Test Mail** button to confirm outgoing mail works.
4. Check that at least one active (non-blocked) user account is a member of the selected user group and has a valid email address.

### The log shows "Guest" for shoppers who are logged in

**Cause:** This can happen if the checkout page is configured to bypass Joomla's user session for certain guest checkout flows.

**Solution:** This is expected behavior for shoppers who complete a purchase without creating an account. If you see "Guest" for shoppers you expect to be logged in, check whether the **Log Checkout Events** -> checkout login entry shows up before the order event. If not, the shopper may have used the guest checkout path.
