creatuity / magento2-order-status-adjust
creatuity/magento2-order-status-adjust
Adjust Order Status to specific one if Criteria are met
Order Status Adjust module for Magento 2
Installation
Use composer to install. To proceed, run these commands in your terminal:
composer require creatuity/magento2-order-status-adjust
php bin/magento module:enable Creatuity_OrderStatusAdjust
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
Example Use Cases
- set status "Hold - Liftgate" if order items total weight is >= 1000 lbs. and order state is "Processing"
- set status "Payment Review" if Check/Money payment method was used, order total was >= $1000.00 and order state is "Pending"
- set status "Pending - VIP" if "Exclusive Payment Method" was used and order state is "Pending"
- set status "Fraud" if Grand Total is >= $1000.00 and order state is "Pending"
Usage
Configuration
Go to Admin Panel -> Stores -> Settings -> Order Status Adjust Module.
Click on "Add New Rule" button located in the upper-right corner of the screen to add new rule.
Fill all required fields:
- Enabled - yes/no. Indicates if rule is active. If not - it will not be taken into account during Order updates.
- Rule Name - text. Human-friendly name of the rule, to easily distinguish what is its purpose.
- Sort Order - integer. Allows to sort which rules will have precedence. Rules with lower value will be executed as the first ones. If sort order will be same - rule with lower ID will execute as the first one.
- Condition - complex. Combination of rules revolving around Orders that can be used to select particular orders and update their status to desired one conditionally.
- Action (Set Order Status) - select. Select desired order status that should be set if rule will be applied.
Save rule
Available Conditions
| Condition | Internal Code |
|---|---|
| Subtotal (Excl. Tax) | base_subtotal_with_discount |
| Subtotal (Incl. Tax) | base_subtotal_total_incl_tax |
| Subtotal | base_subtotal |
| Tax Total | base_tax_amount |
| Grand Total | base_grand_total |
| Discount Total | base_discount_amount |
| Gift Cards Amount | base_gift_cards_amount |
| Total Items Quantity Ordered | total_qty_ordered |
| Total Weight | weight |
| Payment Method | payment_method |
| Shipping Method | shipping_method |
| Order Currency Code | order_currency_code |
| Order Store ID | store_id |
| Coupon Code | coupon_code |
| Total Item Count | total_item_count |
| Customer Is Guest | customer_is_guest |
| Customer Group ID | customer_group_id |
| Customer Tax Vat | customer_taxvat |
| Remote IP | remote_ip |
| Status | status |
| State | state |
Compatibility
Module was developed using Adobe Commerce 2.4.5 on PHP 8.1
It should work on any Magento Open Source or Adobe Commerce 2.4.4+ versions though.
No changelog yet
The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.
Requires 1
| Package | Constraint |
|---|---|
| php | >=8.1.0 |
No QA results yet
QA pipelines haven't run for this version. Compatibility and quality results appear here once the vendor publishes a tagged release that gets ingested.
More from creatuity
View vendorTurn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.