> For the complete documentation index, see [llms.txt](https://docs.norrnext.com/easy-return-and-withdrawal-for-virtuemart/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.norrnext.com/easy-return-and-withdrawal-for-virtuemart/shopfront-and-user-guide/order-triggers-and-partial-returns.md). Agents can also search and read this documentation through its [MCP server](https://docs.norrnext.com/easy-return-and-withdrawal-for-virtuemart/~gitbook/mcp).

# VirtueMart Order Triggers & Partial Returns

How contextual Return Order buttons, previous declaration notices, and partial returns work in VirtueMart.

When **In-Content Order Buttons** is enabled in [Trigger & Button](https://docs.norrnext.com/easy-return-and-withdrawal-for-virtuemart/configuration/trigger-and-button.md), the system plugin adds **Return Order** buttons directly inside VirtueMart customer order pages.

## Contextual Buttons in VirtueMart Orders

Customers see **Return Order** triggers in two locations:

* **Order List (`option=com_virtuemart&view=orders`):** Displays a compact **Return Order** button on each row for orders that are eligible for return.
* **Order Details (`option=com_virtuemart&view=orders&layout=details`):** Displays a **Return Order** button in the order information header when the order is eligible for return.

A **Return Order** button appears only when all of these conditions are met:

1. The order status is not listed in **Excluded Statuses**.
2. The order is within the configured **Statutory Withdrawal Period** (plus **Delivery Buffer**), or not excluded as expired for contextual triggers.
3. If **Exclude B2B Orders** is enabled, the order is not classified as B2B.
4. At least one item unit in the order has not yet been included in an active (non-rejected) withdrawal declaration.

Clicking **Return Order** opens the withdrawal form, verifies the customer session or order password automatically, and skips straight to Step 2.

<figure><img src="https://18344420-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoCEr7POFlWdP7H7poxO3%2Fuploads%2Fgit-blob-afe1f9889e29f25df9202aa96dbde478d3c4df05%2Fuser-guide-vm-order-triggers-light.png?alt=media" alt="Return Order buttons inside the VirtueMart orders list"><figcaption><p>Contextual Return Order buttons shown next to eligible orders in VirtueMart while hiding them on cancelled or already returned orders</p></figcaption></figure>

{% hint style="info" %}
**Note:** For guest customers viewing a specific order with an order number and order password, the plugin checks eligibility for that order and hides the contextual **Return Order** button if the order is excluded, already fully returned, or classified as B2B.
{% endhint %}

## Partial Returns & Multiple Declarations

Under EU Directives **2011/83/EU** and **2023/2673**, a customer can withdraw from part of an order (for example, returning 1 item out of 5) and later withdraw from remaining items within the 14-day period.

**Easy Return & Withdrawal for VirtueMart** calculates the remaining returnable quantity for every order line item:

$$\text{Returnable Quantity} = \text{Ordered Quantity} - \sum \text{Quantities in Non-Rejected Declarations}$$

* Declarations with status **Rejected** do not consume item quantities, so rejected items become returnable again.
* When a customer opens an order that already has previous declarations, a notice banner lists each submitted reference, date, and current status (for example: `Withdrawal request REF-20261115-0012 was submitted on 2026-11-15 (Status: Pending Review).`).
* Each product row caps the quantity selector at its remaining returnable quantity. Already-returned rows show `Already returned`.
* If remaining units still exist (`total > 0`), the **Confirm withdrawal** button stays active so the customer can submit a partial return for the rest of the order.
* Once every unit in the order has been claimed (`total = 0`), the form disables submission, hides contact inputs, and displays: `All items in this order have already been returned under previous withdrawal requests.`

## Excluded Statuses & Expired Window Notices

* **Excluded Statuses:** If a customer looks up a cancelled or refunded order manually:
  * When **Allow Submission for Excluded Statuses** is **No** (default), the form blocks submission and displays a notice that the order is cancelled or refunded.
  * When **Allow Submission for Excluded Statuses** is **Yes**, the form shows an advisory banner and allows submission.
* **Expired 14-Day Window:** If the statutory window (earliest transition into **Shipped Statuses** + **Delivery Buffer** + **Statutory Withdrawal Period**) has passed, the form shows an advisory banner (`Advisory: The standard 14-day statutory withdrawal period appears to have expired for this order.`) and records the request as **Submitted After Period** for manager review.
