enobis/module-order-workflow v1.11.11

Order-Workflow Extension for Magento2.x

Enobis Order Workflow — Marketing Overview

Orders that need a second pair of eyes – approved by the right person before they are processed

Enobis Order Workflow adds an approval step to the Magento checkout. When an order meets the rules you define, it is not processed right away: it goes to a supervisor, who approves or declines it, and the customer is informed about the result.


The Problem It Solves

In company purchasing portals, employee or branch shops and budget-controlled ordering, not everyone may simply buy. Without an approval step, managers check orders by email or phone, after the fact, and outside the shop. Orders get processed that should not have been, and nobody can trace who agreed to what.


Key Benefits

For Customers

  • Order as usual — the checkout stays the same; a short notice explains that the order needs approval.
  • Add a note — customers can add a comment for their supervisor.
  • Always informed — the order status ("Requested at Supervisor", "Approved by Supervisor", "Rejected by Supervisor") and an email show the result.
  • Nudge the supervisor — a one-click reminder when an order waits too long.

For Store Operators

  • Approval only where needed — by payment method, customer group, product or order value; small orders pass, large ones need approval.
  • The right supervisor, automatically — per customer, as a fallback default or from company structures and roles.
  • Decide where it is convenient — in the customer account, straight from the email or in the admin.
  • Decisions at the right time — with an approval status configured, approve and decline are only offered while the order is waiting for approval.
  • Traceable decisions — who approved or declined, and why, is recorded in the order history.
  • Protected supervisors — customers who act as supervisors cannot be deleted by accident.

How It Works

  1. The customer places an order as usual.
  2. If your rules match, the shop determines the supervisor and sends an approval request by email.
  3. The supervisor approves or declines with a comment – in the shop, via the email link or in the admin.
  4. The customer receives the result by email; the order continues or is canceled.

Feature Highlights

Feature Description
Flexible triggers Payment method, customer group, product and release limit per customer – all selected rules must match
Simple workflow Registered supervisors release orders in "My Releaseable Orders"; buyers follow them in "My Requested Orders"
Email workflow Customers name a supervisor by email address, even without a shop account; allowed address endings keep it safe
Direct release link Supervisors decide straight from the email without login, within a validity period you set; each link works once
Backend approval Staff approve or decline in the admin order view, with separate permissions for both actions
Supervisor determination Per customer, default supervisor, company account relation or supervisor roles
Second supervisor A second person receives a copy of the order confirmation
Reminders Buyers and shop staff remind the supervisor by email
Bulk assignment Assign or reset supervisors for many customers at once
Decision history Name, email and comment of every decision in the order history
Editable emails Templates for request, result, reminder and cancellation, incl. items, addresses and booking details

Technical Highlights for Integrators

  • No core overrides: plugins, observers and layout handles only.
  • Hyvä-ready with the separate Hyvä edition (Enobis Order Workflow Hyvä).
  • Events before/after approval and for every email's template variables.
  • Multi-store: settings per website and store view.
  • Eight languages: English (US/IE), German, French, Spanish, Italian, Polish, Russian.

Requirements

  • Magento Open Source / Adobe Commerce 2.4.x, PHP 8.1, 8.2 or 8.3
  • Hyvä storefronts: Enobis Order Workflow Hyvä
  • Optional: Enobis Account Relation Switcher, Enobis Impersonation, Enobis Booking, Enobis Booking Checkout

What's New in 1.11.11

  • No more late decisions — with an approval status configured, supervisors see the Approve and Decline buttons only while the order is still waiting for approval. Orders that were already decided or moved on cannot be approved or declined again, not even by reusing an old page or link; the supervisor gets a clear message instead.
  • All languages — the new message is available in all eight shop languages.

Pricing & Licensing

For licensing information, pricing, and enterprise bundles, contact:

enobis GmbH www.enobis.de

Changelog

1.11.11 (2026-10-27)

  • 2026-10-27 Restrict supervisor approve/decline to configured status after order, show DOCUMENTATION.md in admin, restructure docs, bump 1.11.11 (56a3aff)

1.11.10 (2026-10-23)

  • 2026-10-23 Record supervisor decisions in order history (e2ff8b5)

    Add a DecisionHistory model that writes approve/reject decisions, including the supervisor's comment, to the order status history. Previously only admin decisions were recorded, and without the comment.

    It is now used by the admin release controller, the customer direct release, the impersonation release (records the impersonating supervisor) and the guest/email release (external supervisor by email). HTML tags are stripped from comments.

    Add en_US and de_DE translations for the new history texts. Bump version to 1.11.10 and align module.xml setup_version. Update README, DOCUMENTATION, MARKETING and FINDINGS.

    Upgrade note: the frontend release controllers have new constructor dependencies, so run setup:di:compile.

1.11.9 (2026-10-13)

  • 2026-10-13 Move doc findings to FINDINGS.md, bump to 1.11.9 (cc9957a)

    Move the developer-facing observations out of DOCUMENTATION.md into a new FINDINGS.md, which is excluded from the package via .gitattributes. FINDINGS.md also adds a few more open items to confirm.

    DOCUMENTATION.md tables were reformatted with aligned columns. The content is otherwise unchanged.

    Bump composer version to 1.11.9.

1.11.8 (2026-10-13)

  • 2026-10-13 Show Hyvä module status and render README as HTML (de9ac36)

    Add a HyvaCompatibilityVersion admin field showing install state, module and Composer versions of Enobis_OrderWorkflowHyva, with German translations and a README section.

    Render the README in the config "About" section as basic Markdown HTML (headings, lists, tables, code, links) instead of escaped plain text.

    Fix the impersonation template to call getOrders() instead of getOrder().

    Bump version to 1.11.8.

1.11.7 (2026-10-12)

  • 2026-10-12 Add module docs and slim down README (dd05558)

    Add DOCUMENTATION.md with a full reference (configuration, supervisor determination, order flow, email templates, statuses, troubleshooting) and MARKETING.md with a feature overview. Rewrite README.md as a short module facts page with requirements, optional dependencies, installation and a link to the documentation. The email template details moved to DOCUMENTATION.md. Bump version to 1.11.7.

1.11.6 (2026-06-11)

  • 2026-06-11 Fix en_ie translation (1586441)

  • 2026-06-11 Version 1.11.6 (3289350)

    Fix en_ie translation

1.11.5 (2026-06-02)

  • 2026-06-02 Bump module version to 1.11.5 and include .md (c51c456)

    Update module version from 1.11.4 to 1.11.5 in composer.json and etc/module.xml to prepare a new release. Remove the export-ignore rule for *.md in .gitattributes so Markdown files (e.g. README) are included in distribution archives.

1.11.4 (2026-06-02)

  • 2026-06-02 Add email template example and bump version (88231bd)

    Add an email template example to README demonstrating order/status/comment rendering, header/footer templates and items layout. Update adminhtml system config labels to "Documentation (README)" and "README.md" for the README field. Bump composer and module setup_version to 1.11.4.

1.11.3 (2026-06-01)

  • 2026-06-01 Add admin README block, extend emails, update docs (cc2c7dd)

    Add a Block (ReadmeContent) to render the module README.md inside the admin system config. Extend Emails model to provide additional template variables (orderId, order_id, billing, payment_html, booking_checkout, formatted addresses, created_at_formatted, order_data) and dispatch events to allow template var modification. Add getBookingCheckoutHtml() to optionally render booking checkout info when Enobis_BookingCheckout is present. Revamp README.md with features, email template variables, events, configuration and requirements. Remove a set of unit tests (Test/Unit/...) and apply related package/module metadata changes (composer.json, etc/adminhtml/system.xml, etc/module.xml). These changes improve email extensibility, add optional booking data to emails, surface README in admin, and update documentation.

1.11.2 (2026-05-20)

  • 2026-05-20 - Displaying workflow information during checkout in the Customer/Roles/Default configuration (57ae8b6)

  • 2026-05-20 Version: 1.11.2 (cd5e40a)

    • Displaying workflow information during checkout in the Customer/Roles/Default configuration

1.11.1 (2026-04-09)

  • 2026-04-09 Logging removed from the module (399b4ff)

  • 2026-04-09 Version: 1.11.1 (3864dbe)

    • Logging removed from the module

1.11.0 (2026-03-20)

  • 2026-03-20 Tweak code (44f1e80)

    Allow PHP 8.3 Drop PHP 7.4 support

  • 2026-03-20 Version 1.11.0 (0372191)

    Allow PHP 8.3

    #14375

1.10.14 (2026-06-11)

  • 2026-06-11 Fix en_ie translation (4a6d320)

  • 2026-06-11 Version 1.10.14 (ab96823)

    Fix en_ie translation

1.10.13 (2026-03-09)

1.10.12 (2026-02-09)

  • 2026-02-09 - Add canRestore (c6e7e0d)

  • 2026-02-09 Version: 1.10.12 (346493d)

    Optimisation:

    • Add canRestore

1.10.11 (2026-02-06)

  • 2026-02-06 - Update so that the SQL can be extended (ece5cc2)

  • 2026-02-06 Version: 1.10.11 (38e4d56)

    Fix:

    • Update so that the SQL can be extended

1.10.10 (2026-02-03)

  • 2026-02-03 - Configuration of the filter and output of additional information in the Enobis OrderWorkflow module (Enobis_AccountRelationSwitcher) (273a03e)

  • 2026-02-03 - Small Fix (ce12f23)

  • 2026-02-03 Version: 1.10.10 (1f2e39a)

    Optimisation:

    • Configuration of the filter and output of additional information in the Enobis OrderWorkflow module (Enobis_AccountRelationSwitcher)

1.10.9 (2025-12-04)

  • 2025-12-04 - Translations (9914af4)

  • 2025-12-04 Version: 1.10.9 (a3b9f07)

    Bugfix:

    • Translations

1.10.8 (2025-12-01)

  • 2025-12-01 - Order information added as variables in the email templates for supervisor emails (Order Release Supervisor Info, Reminder Supervisor (Backend), and Reminder Supervisor (Frontend)) (81f2829)

  • 2025-12-01 Tweak code (bad98ae)

  • 2025-12-01 Version: 1.10.8 (eb013b9)

    Optimisation:

    • Order information added as variables in the email templates for supervisor emails (Order Release Supervisor Info, Reminder Supervisor (Backend), and Reminder Supervisor (Frontend))

1.10.7 (2025-11-27)

  • 2025-11-27 - Display the company name in the “My RequestedOrders” and “Orders to be approved” lists if it is maintained in the delivery address. (8b85d0d)

  • 2025-11-27 Version: 1.10.7 (93ab801)

    Optimisation:

    • Display the company name in the “My RequestedOrders” and “Orders to be approved” lists if it is maintained in the delivery address.

1.10.6 (2025-11-17)

  • 2025-11-17 - Hide workflow information in the order history when the module is disabled and when no supervisor is set. (3f65c1f)

  • 2025-11-17 Tweak code (36a26fe)

  • 2025-11-17 Version: 1.10.6 (fc877f9)

    Optimisation:

    • Hide workflow information in the order history when the module is disabled and when no supervisor is set.

1.10.5 (2025-10-01)

1.10.4 (2025-03-25)

  • 2025-03-25 Change releaseable orders list, show all orders that belong to the current website (c26d22d)

    (instead of show only orders that belong to the current storeview)

  • 2025-03-25 Version 1.10.4 (2e02707)

    Change releaseable orders list, show all orders that belong to the current website (instead of show only orders that belong to the current storeview)

1.10.3 (2025-01-23)

  • 2025-01-23 Tweak code (7d36b9e)

  • 2025-01-23 Update require-dev (4db35d5)

  • 2025-01-23 PHP 8.2 support added (246a9cb)

  • 2025-01-23 Version: 1.10.3 (bfd3557)

    Optimization:

    • PHP 8.2 support added

1.10.2 (2024-12-06)

  • 2024-12-06 Version 1.10.2 - Bugfix [JIRA-MBC-259], raised dependencies (d7d2943)

    Signed-off-by: karlbuedding-enobis karl.buedding@enobis.de

1.10.1 (2024-09-10)

  • 2024-09-10 - Display of relation information in some emails (7d6b310)

  • 2024-09-10 Version: 1.10.1 (d5ef441)

    Optimization:

    • Display of relation information in some emails

1.10.0 (2024-08-30)

  • 2024-08-27 Update README.md (23afb0d)

  • 2024-08-27 Introduce .gitattributes to exclude development files (b959df8)

  • 2024-08-28 Tweak code (66008da)

  • 2024-08-28 Update unit tests (7a87660)

  • 2024-08-28 Add orderworkflow_trigger product attribute (6e8fc49)

  • 2024-08-28 Add product-trigger option to general enabled by system configuration (eccbfab)

  • 2024-08-28 Update unit tests (913d1d3)

  • 2024-08-28 Tweak code (7e63940)

  • 2024-08-30 Add orderworkflow product trigger checkout logic (fc4483c)

  • 2024-08-30 Update unit tests (0365e77)

  • 2024-08-30 Tweak code (0529340)

  • 2024-08-30 Merge branch 'product-trigger' into dev (5a79661)

  • 2024-08-30 Version 1.10.0 (302c4c9)

    Add ability to trigger orderworkflow via product Introduce .gitattributes to exclude development files

1.9.14.1 (2025-03-25)

  • 2025-03-25 Change releaseable orders list, show all orders that belong to the current website (3049451)

    (instead of show only orders that belong to the current storeview)

  • 2025-03-25 Version 1.9.14.1 (9a9363f)

    Backport releaseable orders list, show all orders that belong to the current website (instead of show only orders that belong to the current storeview)

1.9.14 (2024-08-01)

  • 2024-08-01 Version: 1.9.14 - added translations (772390b)

1.9.13 (2024-07-31)

  • 2024-07-31 fixes error message in m246-p6 after submitting multishipping orders (error call to a member function ... on null) (5350e96)

  • 2024-07-31 version 1.9.13 (62a067f)

    fixes error message in m246-p6 after submitting multishipping orders (error call to a member function ... on null)

1.9.12 (2024-06-27)

  • 2024-06-26 Tweak code (93dfaed)

  • 2024-06-27 add support for "multiselect/array" values in checkout js workflowEnabledByChecker (b1c68e0)

    (fixes orderworkflowcomment and orderworkflowhint were not shown in checkout when workflow enabledBy attribute is an array)

  • 2024-06-27 small fix (bcb83ea)

  • 2024-06-27 tweak code (0b8a29f)

  • 2024-06-27 version 1.9.12 (7a74bc5)

    add support for "multiselect/array" values in checkout js workflowEnabledByChecker additional fixes: inconsistent if permission, missing table prefix support

1.9.11 (2024-06-25)

  • 2024-06-25 add missing website_id filter for supervisor determination when 'customer account sharing' is configured to be 'per website'. (06e09fe)

  • 2024-06-25 version 1.9.11 (1ac9884)

    add missing website_id filter for supervisor determination when 'customer account sharing' is configured to be 'per website'.

1.9.10 (2024-06-21)

  • 2024-06-21 new supervisor determination mode 'customer/roles/default' (0a1a627)

    (pre/initial version for testing)

  • 2024-06-21 version 1.9.10 (341eb2c)

    new supervisor determination mode 'customer/roles/default' (pre/initial version for testing)

1.9.9 (2024-06-17)

  • 2024-06-17 add Entity/Sub-Entity/User Account Wording (553f580)

  • 2024-06-17 version 1.9.9 (001622c)

    add Entity/Sub-Entity/User Account Wording

1.9.8 (2024-06-13)

  • 2024-06-13 add html elements and specific css classes for supervisor information to allow individuel styling of labels and values based on account_type of the supervisor (c7ff4f0)

    add "spacing" between supervisor and potential supervisors area

  • 2024-06-13 version 1.9.8 (5e6bee3)

    add html elements and specific css classes for supervisor information to allow individuel styling of labels and values based on account_type of the supervisor add "spacing" between supervisor and potential supervisors area

1.9.7 (2024-06-12)

  • 2024-06-12 add modal dialog with comment order backend approve and reject buttons (a7ceb45)

  • 2024-06-12 version 1.9.7 (bac4b46)

    add modal dialog with comment order backend approve and reject buttons

1.9.6 (2024-06-07)

  • 2024-06-05 Tweak code (168afe2)

  • 2024-06-07 Add unit test setup traits (93ba128)

  • 2024-06-07 Add exceptions (2c2537d)

  • 2024-06-07 Add order workflow processing in backend (abb86f2)

  • 2024-06-07 Update unit test setup traits (fc07aab)

  • 2024-06-07 Add unit tests (6094469)

  • 2024-06-07 Tweak code (af2f932)

  • 2024-06-07 Merge branch 'backend-order-workflow-processing' into dev (dd069fc)

  • 2024-06-07 Version 1.9.6 (a8b8b01)

    Add order workflow processing in backend

1.9.5 (2024-05-28)

  • 2024-05-28 add missing "Workflow & Supervisor Information" section to order supervisor release view (4093499)

  • 2024-05-28 version 1.9.5 (47fbeed)

    add missing "Workflow & Supervisor Information" to order release view

1.9.4 (2024-05-06)

  • 2024-05-06 translation fixes (b4575a4)

  • 2024-05-06 version 1.9.4 (fcb5f69)

    translation fixes

1.9.3 (2024-04-30)

  • 2024-04-30 added missing params (0e5e5d5)

  • 2024-04-30 add supervisor infos to company order detail view (3e797e4)

  • 2024-04-30 optimize "supervisor infos template" -> show "send supervisor reminder email button" only, when the session-customer is the order-customer. (1ec7b99)

  • 2024-04-30 version 1.9.3 (905d2df)

    add "supervisor infos template" to company order detail view optimize "supervisor infos template" -> show "send supervisor reminder email button" only, when the session-customer is the order-customer.

1.9.2 (2024-04-23)

  • 2024-04-23 Version: 1.9.2 - fixed translations (c023f41)

    Signed-off-by: karlbuedding-enobis karl.buedding@enobis.de

1.9.1 (2024-02-29)

  • 2024-02-29 support "Array/Multiselect" attributes as workflow triggers (11d5036)

  • 2024-02-29 version 1.9.1 (a8d633e)

    support "Array/Multiselect" attributes as workflow triggers

1.9.0 (2024-02-28)

  • 2024-02-28 add feature to support multiple roles mode, when enabled (613ab9c)

  • 2024-02-28 version 1.9.0 (5f9cb08)

    add feature to support multiple roles mode, when enabled

1.8.10 (2023-10-23)

  • 2023-10-23 add en_IE translation (based on en_US) (75bb1d1)

  • 2023-10-23 version 1.8.10 (4c59054)

    add en_IE translation (based on en_US)

1.8.9 (2023-10-11)

  • 2023-10-11 - Customer information integrated in the Sales Order View (725dbc4)

    • Customer information integrated in the Workflow Views
    • Information moved from the item area to the order view
  • 2023-10-11 Version: 1.8.9 (7fac107)

    Optimization:

    • Customer information integrated in the Sales Order View
    • Customer information integrated in the Workflow Views
    • Information moved from the item area to the order view

1.8.8 (2023-10-10)

  • 2023-10-10 add store filter to releaseable orders list (54cab2f)

    allow canceled state for releaseable orders list

  • 2023-10-10 version 1.8.8 (5b4162d)

    add store filter to releaseable orders list allow canceled state for releaseable orders list

1.8.7 (2023-10-09)

  • 2023-10-09 Version: 1.8.7 - fixed Translation (8f2d3a6)

    Signed-off-by: karlbuedding-enobis karl.buedding@enobis.de

1.8.6 (2023-10-08)

  • 2023-10-08 version 1.8.6 (5cb8373)

    support "Amasty Order Attributes" in order workflow detail order view show customer info (email and name) in order workflow detail for supervisor translation change from "Quote By" to "Request from"

  • 2023-10-08 version 1.8.6 (ffcac2f)

    support "Amasty Order Attributes" in order workflow detail order view show customer info (email and name) in order workflow detail for supervisor translation change from "Quote By" to "Request from"

1.8.5 (2023-07-13)

  • 2023-07-13 fix: correct standard assignment of the default reminder templates (02d3b45)

  • 2023-07-13 version 1.8.5 (1df653f)

    fix: correct standard assignment of default reminder email templates

1.8.4 (2023-06-12)

  • 2018-03-06 Module Basisdateien (e7da4cb)

  • 2018-03-06 Konfiguration (b7e3144)

  • 2018-03-06 Konfiguration Acl angepasst (0e03f5f)

  • 2018-03-06 xml korrigiert (3a5bb63)

  • 2018-03-07 Konfiguration - weitere Felder aufgenommen (20188cd)

  • 2018-03-07 Email Templates aus M1 (925f3c7)

  • 2018-03-07 Konfiguration Source-Model Order Status angepasst (6e849ac)

  • 2018-03-07 Model/Config.php mit Konstanten (458a8a1)

  • 2018-03-07 Konfiguration - weitere Felder aufgenommen (0715aa0)

  • 2018-03-07 Konfiguration Source-Model ActiveWorkflow angepasst (191adf5)

  • 2018-03-07 Konfiguration - weitere Felder aufgenommen (f3a6742)

  • 2018-03-07 Konfiguration Source-Model GeneralEnabledBy angepasst (f947153)

  • 2018-03-07 Konfiguration canRestore-Flag (ab1b5e4)

  • 2018-03-07 Konfiguration - Ausgabe Module + Composer Version (8aaecab)

  • 2018-03-07 ActiveWorkflow Source korrigiert (25aacd4)

  • 2018-03-07 Konfiguration - Kommentare übersetzen (d1839f6)

  • 2018-03-07 erste Übersetzungen (ba34da4)

  • 2018-03-08 Install Scripte (8b7f0b4)

  • 2018-03-08 Supervisor Source-Models (7e46431)

  • 2018-03-08 Model/Config.php vervollständigt (e03ef8f)

  • 2018-03-08 Model/Emails.php mit Konstanten (125031c)

  • 2018-03-08 fieldset.xml - Übernahme enobis_supervisor/enobis_order_comment (4c49046)

  • 2018-03-08 etc/extension_attributes.xml (fa52c15)

  • 2018-03-09 etc/extension_attributes.xml restliche attributes quote, quote_item und order (bbb3d2e)

  • 2018-03-09 Model/OrderWorkflowConfigProvider.php (0955a08)

  • 2018-03-09 Customer Supervisor Info to Quote - Plugin (1275cba)

  • 2018-03-09 Model/OrderWorkflowPersister.php (bde76ec)

  • 2018-03-09 Helper/Data.php - M1 (6da1cb4)

  • 2018-03-09 Helper/Data.php - M2 ready (cdca6f3)

  • 2018-03-09 Observer/SalesModelServiceQuotesSubmitBeforeObserver.php - M1 Observer::addWorkflowData() (a29e9f1)

  • 2018-03-09 Backend Type korrigiert (e6028d8)

  • 2018-03-09 Ausgabe von OrderWorkflow Customer Attributes im Customer Grid im Backend (09514f0)

  • 2018-03-09 Status ändern bei aktivem Workflow nach Bestellerzeugung (f3f9e33)

  • 2018-03-12 Info Email an Vergesetzten bei Bestellerzeugung (d504bd8)

  • 2018-03-12 Adminhtml Area Prüfung korrigiert (4dd1fbb)

  • 2018-03-12 Info Email an Vorgesetzten bei Stornierung einer Bestellung im Backend (b2bf0ea)

  • 2018-03-13 Helper/Data.php - getReleaseableOrders() angepasst (a7c0117)

  • 2018-03-13 My Releaseable Orders Customer Account Link (d44a3c1)

  • 2018-03-13 routes.xml (d0e1099)

  • 2018-03-13 My Releaseable Orders Customer Account List (a91312e)

  • 2018-03-13 My Releaseable Orders Customer Account List Translation (176bea4)

  • 2018-03-14 OrderWorkflow Direct Release - Bestellansicht-Seite (b96043d)

  • 2018-03-14 OrderWorkflow Direct Release - Post-Action (Speichern von Daten) angepasst (84ef67b)

  • 2018-03-14 Info Email an Kunden bei Freigabe angepasst (d4e41ee)

  • 2018-03-14 Übersetzungen (a1000a8)

  • 2018-03-14 Konfiguration Abgleich (77b7c5f)

  • 2018-03-14 etc/email_templates.xml angepasst (dbea2ea)

  • 2018-03-19 OrderWorkflow-Bereich im Checkout + Speicher-Logik (9b5e091)

  • 2018-03-19 weitere Felder an zuvor erstellte Bestellung speichern (ed9e8da)

  • 2018-03-19 Observer/SalesModelServiceQuotesSubmitBeforeObserver.php - korrigiert/aufgeräumt und Email-Logik entfernt (wurde in separatem Observer verschoben) (2ad324b)

  • 2018-03-19 OrderWorkflow Guest Release - Controller (200046c)

  • 2018-03-19 OrderWorkflow Guest Release - layouts (6e84856)

  • 2018-03-19 OrderWorkflow Guest Release - Blocks + Templates (efaa077)

  • 2018-03-19 todo raus (55d25c8)

  • 2018-03-19 enobis_supervisor_email_key_created_at todos raus (c46e2d4)

  • 2018-03-19 LayoutProcessorPlugin.php für dynamisches Anzeigen von Feldern (Supervisor_Email) (1ad1304)

  • 2018-03-29 My Releaseable Orders Customer Account Link - nur anzeigen wenn entsprechende Bestellungen vorhanden sind (6d4466c)

  • 2018-03-29 Konfiguration - Supervisor Email Endings (2f477f7)

  • 2018-03-29 Config.php - Email Endings (3d8d571)

  • 2018-03-29 Observer/SalesModelServiceQuotesSubmitBeforeObserver.php - use korrigiert (fc1dfa9)

  • 2018-03-29 workflow-assigner.js - angepasst (e1ea340)

  • 2018-03-29 OrderWorkflowConfigProvider.php - um Email Endings und weitere Felder erweitert (216693b)

  • 2018-03-29 orderworkflow.html - text raus (9255efb)

  • 2018-03-29 Konfiguration - Supervisor Email Endings - system.xml (1f648ec)

  • 2018-03-29 todo raus (357ea1a)

  • 2018-03-29 Checkout: Supervisor Email Validation (de38905)

  • 2018-03-29 Checkout: Supervisor Email - nur anzeigen bei entsprechendem Workflow (95cc6ca)

  • 2018-04-03 WorkflowInitializer.php - alten Code raus (02c7d10)

  • 2018-04-03 orderworkflow.js - Workflow Hinweis nur anzeigen, wenn Vorgesetzter vorhanden (ed55a0b)

  • 2018-04-03 Model/Checkout/PaymentInformation/Plugin/OrderWorkflow.php - angepasst, Zahlart wird innerhalb der Funktion erst gesetzt (08db5ae)

  • 2018-04-03 workflow-enabled-checker.js - Dynamisches Anstossen des Workflow im Checkout (Zahlarten) (4ec7a6e)

  • 2018-04-03 Order Comment Logik raus/deprecated (36a96ca)

  • 2018-04-03 todo raus (e36ea18)

  • 2018-04-03 Order Comment Logik raus/deprecated (efa013a)

  • 2018-04-04 Observer korrigiert (27a9588)

  • 2018-04-04 Bestellbestätigung in Bcc/Copy an Vorgesetzter2 sofern gepflegt/eingestellt (8d0962d)

  • 2018-04-04 Version 1.0.0 (b794331)

  • 2018-04-04 Enobis_OrderWorkflow 1.0.0 (c0f4351)

  • 2018-05-14 fix config provider data for state when order workflow is not enabled (7e801b4)

  • 2018-05-16 Version 1.0.1 (865fb66)

  • 2018-05-16 Enobis_OrderWorkflow 1.0.1 (bda85b5)

  • 2018-08-30 Anpassung Freigabe-Formular analog neuer "Related Budget"-Anfrage Logik aus Budget-Modul (a7add5d)

  • 2018-08-30 Enobis_OrderWorkflow 1.1.0 (6fc2cb4)

  • 2018-08-31 "Cancel"-Button in Freigabe-Maske immer anzeigen (ae3c2df)

  • 2018-08-31 Version 1.1.1 (0477399)

  • 2018-08-31 Enobis_OrderWorkflow 1.1.1 (17dc986)

  • 2018-09-21 Übersetzung (c284077)

  • 2018-10-04 Fix Offline-Zahlarten + Zusammenspiel Budget-Zahlart (6a7d1a6)

    Signed-off-by: Karl Büdding karl.buedding@enobis.de

  • 2018-12-18 move "checkValue" in separat method to make plugins possible (96096a1)

  • 2018-12-18 Merge branch 'add-cart-types-support' into dev (4766299)

  • 2018-12-18 Version 1.1.4 (e71c1a5)

  • 2018-12-18 Version 1.1.4 (65ebb8a)

  • 2019-01-10 Vorgesetzten-Kommentar unter "Meine Bestellungen" anzeigen #10490 (914f181)

  • 2019-01-10 Vorgesetzten-Kommentar unter "Meine Bestellungen" anzeigen #10490 (a424023)

  • 2019-01-10 Version 1.1.5 (2649de5)

  • 2019-01-10 Version 1.1.5 (993df2c)

    Vorgesetzten-Kommentar unter "Meine Bestellungen" anzeigen #10490

  • 2019-01-14 Konfigurations-Schalter (bc2d82c)

  • 2019-01-14 Plugin to check Supervisor Impersonation Mode (b362bf9)

  • 2019-01-14 ImpersonationSupervisorWorkflowManagement (5a96b22)

  • 2019-01-14 "My Releaseable Orders (Impersonation)"-Link Customer Account (4feb68f)

  • 2019-01-14 "My Releaseable Orders (Impersonation)" List (a95a785)

  • 2019-01-14 "My Releaseable Orders (Impersonation)" View (111ff73)

  • 2019-01-15 plugin to indicate order workflow impersonation supervisor workflow + cancel/go back to direct release impersonation list (e309fd0)

  • 2019-01-15 Impersonation-Modus analog ChiliDocumentWorkflow #10496 (876385c)

  • 2019-01-15 Version 1.1.6 (959e77a)

  • 2019-01-15 Version 1.1.6 (ba49aac)

    Impersonation-Modus analog ChiliDocumentWorkflow #10496

  • 2019-01-22 Info Block über Release Liste (6eab12b)

  • 2019-01-22 Update Block über Impersonation Liste (c1756bb)

  • 2019-02-06 Bugfix for Customergrid-ReIndex-Error (c4e2ff0)

    Signed-off-by: Karl Büdding karl.buedding@enobis.de

  • 2019-02-13 customer account link (408a6b1)

  • 2019-02-13 my requested orders list (f232fa9)

  • 2019-02-13 my requested order view (902ea47)

  • 2019-02-13 Translations (7369216)

  • 2019-02-13 Meine angefragten Bestellungen im Benutzerkonto #10579 (5492648)

  • 2019-02-13 fix: wrong column order "quote by" <-> "ship to" (741841c)

  • 2019-02-13 Version bump (e6d4e72)

  • 2019-02-13 Version 1.1.10 (d8266d9)

    Meine angefragten Bestellungen im Benutzerkonto #10579 fix: wrong column order "quote by" <-> "ship to"

  • 2019-03-19 fix: undefined property when order view is not allowed (c4ec4c9)

  • 2019-03-19 fix: impersonation list is not filtered by current customer (440d9eb)

  • 2019-03-19 Version bump (c96d732)

  • 2019-03-19 Version 1.1.11 (6ca7964)

    fix: impersonation list is not filtered by current customer fix: undefined property when order view is not allowed

  • 2019-03-25 remove unused method in UpgradeData (60ed09d)

  • 2019-03-25 Version bump (f7fe5aa)

  • 2019-03-25 Version 1.1.12 (3bce981)

    remove unused method in UpgradeData

  • 2019-03-26 Fix:Customer Grid Search Index (7b793ee)

  • 2019-03-26 Version 1.1.13 (623201f)

  • 2019-05-10 1.1.14 php 7.2 (607a5d9)

  • 2019-05-10 fehlerhafte nicht mehr benötigte indexer.xml entfernt (wegen Problem m 2.3.1) (5680908)

  • 2019-10-14 fix: email workflow in checkout not available #11045 (885ee7b)

  • 2019-10-14 Merge branch 'dev' (b0f7793)

  • 2019-10-14 Version 1.1.16 (c7bbf15)

    fix: email workflow in checkout not available #11045

  • 2019-11-07 Version: 1.1.17 (eea7143)

    Fix:

    • Kann Freigegebene Bestellung nicht ansehen

    Feature:

    • Email-Vorgesetzter steht nicht in der Liste
    • Auflistung in der Anfrageliste und Freigabeliste
    • Kundenkommentar immer im Checkout anzeigen
    • Anzeige in der Order History
    • Anzeige in der Ansicht des Anfragenden View
    • Anzeige in der Ansicht des Freigebenden View
    • Kommentar Box abhängig von Zahlart und Customer Group
  • 2020-02-18 fix: email workflow does not change order status (e839794)

  • 2020-02-18 remove php requirements (3ad8501)

  • 2020-02-18 simplify magento-module dependencies (ec460dc)

  • 2020-02-18 Merge branch 'dev' (989e364)

  • 2020-02-18 Version 1.1.18 (151f47b)

    simplify magento-module dependencies remove php requirements fix: email workflow does not change order status

  • 2020-04-02 fix: cancel chili editor in guest supervisor view redirect wrong (70b6f5f)

  • 2020-04-02 Merge branch 'dev' (1005574)

  • 2020-04-02 Version 1.1.19 (93cf1d2)

    fix: cancel chili editor in guest supervisor view redirect wrong

  • 2020-04-06 Version 1.1.20 (150b799)

    remove unused attributes from product and customer always show order comment in checkout

  • 2020-04-07 Version 1.1.21 (9dc8a90)

    show order comment in checkout when active order workflow only

  • 2020-04-08 Version 1.1.22 (929401f)

    fix: supervisor_email validation not working

  • 2020-04-09 Version 1.1.23 (0723a50)

    fix: wrong redirect when cancel in order documents

  • 2020-04-16 Version 1.1.23.1 (3be1fdc)

    add option to make email workflow optional

  • 2020-08-24 1.2.0 Magento 2.4.0 sometimes returns customers with the same id (71e728e)

  • 2020-09-07 Version 1.2.1 (2dafb75)

    add/install "requested_at_supervisor" order status by default add direct release link option to release email configuration fix: release buttons not visible for orders with active workflow

  • 2020-09-07 Version 1.2.2 (540b28c)

    fix: orders can be released by current customer

  • 2020-10-01 Version 1.2.3 (3861d3b)

    show website name in supervisor dropdowns fix: database error while install

  • 2020-11-30 Version 1.2.4 (39828fd)

    fix: supervisor_email field not visible in checkout when email workflow is active

  • 2020-12-01 Version 1.2.5 (665c1af)

    fix: emails not send to supervisor when using "supervisor_email" field in checkout in 2.4.x

  • 2020-12-01 Version 1.2.5 (96ec77b)

    fix: emails not send to supervisor when using "supervisor_email" field in checkout in 2.4.x

  • 2020-12-03 Version 1.2.6 (a58c879)

    fix: Workflow Order Comment field visible in checkout even when workflow is not active

  • 2020-12-04 Version 1.3.0 (57cd441)

    add default supervisor system configuration

  • 2021-07-21 1.3.1 small addition so that order workflow status email can use order variables items (4991ab4)

  • 2021-07-26 1.3.2 add order to mail so it can be used in the email template (224f2f4)

  • 2021-08-03 Version 1.4.0 (bdad8bd)

    add reminder functionality for supervisor in backend and frontend

  • 2021-10-06 1.5.0 possibility to define a statusfilter for "My requested Orders" list (e40fbf6)

  • 2021-11-30 improve customer order workflow supervisor select (95a932f)

  • 2021-12-01 protect customer entities from delete when they are used as supervisor (7fc24f2)

  • 2021-12-01 hide action column by default (a051275)

  • 2021-12-01 phpcs fixes (c88cfae)

  • 2021-12-01 Merge branch 'feature/customer-supervisor-select-improve' (a0dbf6a)

  • 2021-12-01 Version 1.6.0 (a27081d)

    improve customer order workflow supervisor select protect customer entities from delete when they are used as supervisor add "assign order workflow supervisor" mass action to customer grid

  • 2021-12-09 Version 1.6.1 (a898efe)

    improve customer order workflow supervisor select

  • 2021-12-14 Version 1.6.2 (68dba72)

    fix: error while di compile

  • 2022-05-23 Version: 1.6.3 - support for "customer-account-group-links"-extension (d753b33)

    Signed-off-by: Karl Büdding karl.buedding@enobis.de

  • 2022-12-16 PHP 8.x compatibility (di compile error) (883bcee)

    should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used

  • 2022-12-16 version 1.6.4 (398f557)

    PHP 8.x compatibility (di compile error) should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used

  • 2023-03-08 possibility to define the supervisor determination mode (12b7f5d)

    'customer/default' (standard) 'customer/relation/default' (only available when account relation switcher is installed)

  • 2023-03-08 version 1.7.0 (631c7c6)

    possibility to define the supervisor determination mode 'customer/default' (standard) 'customer/relation/default' (only available when account relation switcher is installed)

  • 2023-03-13 version 1.8.0 (55f8042)

    initial version with supervisor determination mode customer/relationroles/default support multiple potential supervisors, when roles determination delivers more than one supervisor, first supervisor that approves or declines will be assigend as supervisor added potential supervisor info in frontend and backend order view.phtml prepared multiple email sending

  • 2023-03-14 send reminder emails to potential supervisors (fcc2434)

    small optimization supervsiors/supervisor

  • 2023-04-04 Version: 1.8.2 (4b40e73)

    Bugfix:

    • Fix html template structure for closing tags in Magento2 >= 2.4.4
  • 2023-04-24 add order_workflow_release_after event (bf9b845)

  • 2023-04-24 version 1.8.3 (5a42faf)

    add order_workflow_release_after event

  • 2023-06-12 fix missing supervisor hint and comment for relation_roles mode (b012181)

  • 2023-06-12 version 1.8.4 (98ce2ac)

    fix missing supervisor hint and comment for relation_roles mode

README.md

Enobis Order Workflow — Enobis_OrderWorkflow

Overview

Approval workflow for Magento 2 orders. When configurable rules match (payment method, customer group, product trigger, order value), the order is placed but waits until a supervisor approves or declines it. Supervisors decide in their customer account, via a link in the email or in the admin; the customer is informed by email and order status. Made for B2B shops, company purchasing portals and employee or branch shops.


Installation

composer require enobis/module-order-workflow
bin/magento module:enable Enobis_OrderWorkflow
bin/magento setup:upgrade
bin/magento setup:di:compile   # production / compiled DI
bin/magento cache:flush

Hyvä storefronts additionally need the compatibility module enobis/module-order-workflow-hyva (Enobis_OrderWorkflowHyva). Its installation state and version are shown in the "About" group of the module configuration.


Configuration

Stores > Configuration > Enobis > Order Workflow

  • General — enable the module (orderworkflow/general/enabled, default No), choose the Workflow Mode (None, Simple Workflow, Email Workflow) and the Workflow Trigger (Payment Method, Customer Group, Product Trigger; all selected conditions must match), the Default Supervisor, the Supervisor Determination Priority and "Enable Backend Workflow Processing" for approve/decline in the admin order view.
  • Workflow Status Configuration — Status after Order, Approved Status and the status filters of "My Requested Orders" and "My Releaseable Orders".
    • Status after Order is the status of an order that waits for its supervisor. Supervisors can only approve or decline an order (in the shop, via the email link or in the admin) while it has this status. If left empty (default), the order status is not changed at checkout, the shop does not restrict approve/decline by status and the admin approve/decline buttons are hidden.
  • Order Workflow Notification Email — notification emails to supervisor and customer, sender, templates, direct release link and its validity in days.
  • Email Workflow — let customers enter the email address of a supervisor at checkout; allowed email endings.
  • Reminder — supervisor reminder emails, separately for the admin and the storefront.

Customer attributes Supervisor, Supervisor2 and Orderworkflow Release Limit are maintained in the customer form; supervisors can be assigned to many customers at once with the customer grid mass action. The product attribute Orderworkflow Trigger marks products that always start the workflow. Admin permissions for approving and declining are under Sales > Operations > Orders > Actions.

With Enobis Account Relation Switcher installed, its configuration section gets an Order Workflow group to filter the requested and releaseable order lists by the active account relation.


Compatibility

Component Version
Magento Open Source / Adobe Commerce 2.4.x
PHP 8.1, 8.2, 8.3
magento/framework ^102.0.7 | ^103.0.3
magento/module-backend, magento/module-sales >=102.0
enobis/module-order-workflow-hyva required for Hyvä storefronts
Enobis Account Relation Switcher, Enobis Impersonation, enobis/module-booking, enobis/module-booking-checkout optional

Technical Documentation

Features and technical details are described in DOCUMENTATION.md.