Reading list Switch to dark mode

    Magento 2 Order Approval Rules

    Updated 13 October 2023

    The critical/big purchase process on the website requires submitting a request for the purchase, gaining admin approval, and then making the payment for the products. 

    But this process can be easy by using the Magento 2 Order Approval Rules module. With the help of this module, customers can place orders and wait for the admin’s approval to complete their orders.

    The admin can easily approve/disapprove customer orders. This allows the admin to check the genuine orders and give their approval accordingly. Only after the admin approval, the customer can complete the order.

    Email notifications are sent to both the admin and the customer related to order approval status.

    Watch the below video tutorial to understand the extension workflow :

    Searching for an experienced
    Magento 2 Company ?
    Find out More
    Fywwatljbmg

    Features

    • Customers can place the order approval request by placing the order.
    • Various custom order status is available at the admin end, such as order_approval_pending, order_approved, and order_disapproved.
    • The admin can create custom order approval conditions as per cart attributes, product attributes, shipping methods, address, etc.
    • Set a custom message visible on the checkout page if the order is under moderation.
    • The customer gets the notification via mail for the order approval requirement.
    • The customer gets a notification via mail on the approval or disapproval of the orders.
    • The users will get the “Complete Order” link when the admin approves the order.
    • To complete the order, the customer can select the payment method and make the payment.
    • Separate section to view pending orders that require approval.
    • The admin can easily approve and disapprove the orders in bulk.
    • The admin can generate the pending orders in CSV or Excel.
    • The guest user cannot place the order approval request if they are satisfying the order approval condition.
    • Customers can ask queries related to the orders.
    • The Magento 2 order approval rules module is compatible with the Hyva theme.

    Note: Whether the admin sets the condition or not, the Guest user must log in first.

    Installation

    The customers will get a zip folder and they have to extract the contents of this zip folder on their system.

    The extracted folder has an src folder, inside the src folder you have the app folder.

    They need to transfer this app folder into the Magento 2 (Adobe Commerce) root directory on the server as shown below.

    INSTALLATION

    After the successful installation, the admin has to run these commands in the Magento 2 root directory.

    First command – php bin/magento setup:upgrade

    cmd1

    Second command –  php bin/magento setup:di:compile

    cmd2

    Third Command – php bin/magento setup:static-content:deploy

    cmd3

    After running the commands, the admin has to flush the cache from the Magento admin panel.

    For that, they need to navigate through->System->Cache management as shown below.

    INSTALLATION

    Thus, module installation will complete. 

    Multi-Lingual Configuration

    For Multilingual support, please navigate to Store>Configuration>General >Locale Options. Select your desired language from the Locale option.

    change-language-magento-2-locale

    Thus, in this way, the Multi-lingual configuration iscompleted.

    Language Translation

    For module translation, navigate to the following path in your system  app/code/Webkul/OrderApproval/i18n/en_US.csv.

    Open the file named en_US.CSV for editing as shown in the below screenshot:

    LANGUAGE TRANSLATION

    Then replace the words after the comma(,) on the right in the file with your translated words.

    csv

    After editing and translating the CSV file, you need to save the translated file name according to your region language and country code such as – de_DE.CSV.

    Followed by uploading the translated file to the same folder from where you have obtained it.

    Language translation

    Thus, in this way, the module translation is complete

    Module Configuration

    After the module installation, the admin can configure the module from the back office.

    For that, the admin has to navigate through Stores -> Configuration -> Webkul -> Order Approval as per the below image:

    General Settings:

    Configuration-2

    Enable Order Approval – Enable the module by selecting Yes else, and select No to disable the module.

    Admin Mail – Configure the admin email address to receive emails for the new order’s arrival.

    Conditional Order Approval  Check – Choose Yes if order approval is required based on certain conditions, else choose No.

    Order Approval Required – The admin will define the rule/condition as required. If all mentioned conditions are true then order approval is required for the customer else the customer can checkout without order approval.

    Ex: The admin can apply the condition based on cart price, categories, quantity, etc. If all the conditions were satisfied then it will move for order approval.

    General-setting

    Message For Buyer – Enter the message that is visible to the customers on the checkout page if the order is under moderation.

    Message For Buyer When Order Is Completed – Enter the message for the customers which will display on the checkout page if the order is completed.

    The Message For Guest User When Placing Order – Here the admin can enter the message which will visible to the guest user on the cart page.

    Email Templates Settings:

    Magento 2 order approval

    Order Approval Pending Mail – Set an email template for the order approval pending notification to the customer whenever a new order is created.

    For reference, you can see below screenshot of email notification for the order approval pending:

    Confirmation-email

    Order Approval Pending Mail to Admin – An admin will also get mail when a customer places an order and the admin decides whether to approve or disapprove the order.

    For reference, you can see below screenshot of email notification for the order approval:

    unnamed-file

    Order Approval Mail – Set an email template for the customers when the admin approves the pending orders

    For reference, you can see below screenshot of the email notification for the order disapproval:

    order-approved

    Disapproved Order Mail – Set an email template for the customers when the admin disapproves of the orders.

    For reference, you can see below screenshot of email notification for the order disapproval:

    disapprove-email-template

    Note: The admin can create various custom email templates by navigating to the Marketing -> Communication -> Email Templates.

    webkul-magento2-order-approval-rules-email-template

    Thus, the module configuration completes in this way.

    Checkout With Order Approval

    The customer can place the order just like default Magento. But when it comes to selecting the payment method, the checkout will display only the Order Approval payment method.

    For reference, check the below snapshot:

    webkul-magento2-order-approval-rules-checkout-page

    The customer can view the “order approval required” message if the order is under moderation and can select the Order Approval payment method to place the order.

    webkul-magento2-order-approval-rules-order-success-page

    The customers can view their orders under the section My Orders as shown below:

    devmage-com_11816_sales_order_history_-halla-bol-

    Here, the customer can check the status of their orders and whether the admin has approved the orders or not.

    The Complete Order link is there if that order is approved by the admin.

    Otherwise, the Order Disapproved status gets updated for the order that gets disapproved by the admin.

    The customer can click this Complete Order link to complete the order.

    Note: If the guest customer places the order and that order satisfies the condition of the order approval then this module asks the guest customer to log in at the time of placing the order.

    When the Guest Customer adds the product to the cart selects the view and edits the cart page. The message is displayed for the customer to log in first if the condition is satisfying.

    For reference, you can check below:

    error message

    And if the condition is not satisfying then the guest customer can checkout without login.

    Thus, that is all about how the customer can place the order while the order approval check.

    Manage Orders- Admin End

    The admin can view and manage the orders which are pending approval from the back end.

    For that, the admin needs to navigate to Sales -> Pending Orders as shown below:

    pending order

    This will navigate the admin to the Pending Orders For Approval list page.

    webkul-magento2-order-approval-rules-pending-orders-for-approval

    Also, the admin can –

    • Check the status of the orders under the Status.
    • Approve/Disapprove the orders. For this, they have to select the orders from the list and choose the required action from the Action button.
    • The admin will get a notification for the approval or disapproval of the orders.
    webkul-magento2-order-approval-rules-orders-approved
    • View the order details by clicking the View link.

    If The Order Is Disapproved

    After the disapproval of the order, the respective status is displayed at the admin end and the customer ends too.

    • Customer End
    devmage-com_11816_sales_order_history_-halla-bol-1-1
    • Admin End
    webkul-magento2-order-approval-rules-admin-orders-approved-1


    Also, if the order is not approved, then the admin will not have the following options on the order detail page to manage the order –

    • Cancel
    • Invoice
    • Ship
    agento-2

    If The Order Is Approved

    If the order is approved, the respective status gets updated at the admin end and customer end too.

    • Customer End
    devmage-com_11816_sales_order_history_-halla-bol-1-2
    • Admin End
    webkul-magento2-order-approval-rules-admin-orders-approved-1

    The following options to manage the order in the order detail page will not be visible to the admin until and unless the customer doesn’t complete the order –

    • Cancel
    • Invoice
    • Ship
    agento

    In this way, the admin can manage the orders which are requested by the customers.

    Admin can view all queries from the Ask query.

    order queries

    Admin can also manage all queries.

    download-1-1

    Complete Order – Customer End

    The customer can view the complete order link in the My order list and the order detail if that order gets approved by the admin.

    The customer will have to click on the view order button.

    On the order detail page, the customer can click the Complete Order link to complete the order.

    devmage.com_11816_sales_order_view_order_id_27_halla-bol-2
    The customer will be redirected to the checkout page, where they have to select the Payment Method and click on the Place Order button to complete the order.

    For reference check the below image:

    webkul-magento2-order-approval-rules-checkout


    After placing the order, the status of the order changes to pending as shown below:

    devmage-com_11816_sales_order_history_-halla-bol-1-3
    Also, the Complete Order link will no longer be visible once the customer completes the order.

    Thus, in this way, the customer can complete the order after the admin’s approval.

    devmage-com_11816_sales_order_view_order_id_15_-halla-bol-

    Additionally, customers can view all query history from Ask query history.

    Screenshot-from-2022-10-12-19-15-12

    Furthermore, the customer can also ask queries from the admin on my order page. When they click on the ask query button following page will open.

    devmage-com_11816_sales_order_view_order_id_15_-halla-bol-1-

    Moreover, the customer can enter the query related to any placed order and submit it. This query directly escalates to the admin and they will receive it on their email id.

    Screenshot-from-2023-03-01-12-50-50-1-2
    When admin replies to customer
    Screenshot-from-2023-03-01-12-52-31-1-1

    Process The Order – Admin End

    Once the customer completes the order, that order will no longer be visible in Pending Order for Approval list at the admin end.

    The admin can view and manage those orders by navigating to Sales -> Orders as shown below:

    webkul-magento2-order-approval-rules-order-operation


    The admin will click the View link to process the order.

    Hence, this is how the admin can process the order after completion from the customer end.

    Generate CSV/Excel Of Pending Orders-Admin End

    The admin can even generate the CSV or Excel of pending orders. For this, the admin needs to navigate to Sales -> Pending Orders as shown below.

    csv

    Here, the admin will click the Export button and will select the option available for generating the files – CSV or Excel.

    Thus, that’s all for the Magento 2 (Adobe Commerce) Order Approval Rules. If you have any queries or doubts get back to us at [email protected] or raise a ticket at webkul.uvdesk.com.

    Explore the Adobe Commerce Cloud development service by Webkul. You may also browse other Magento 2 marketplace add-ons. Also our quality Magento 2 extensions.

    Current Product Version - 5.0.1

    Supported Framework Version - Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home