Sortable Orders Status

Version 1.0.0 by lat9

Support thread on the Zen Cart Forums: http://www.zen-cart.com/showthread.php?216847-Sortable-Orders-Status


Purpose

You've defined a order-processing procedure for your store and assigned various Orders Status values to allow you and your staff to track where each order is in that procedure. Whenever you add a new status value, though, it's added to the end of the list of statuses so it doesn't show in your "defined" work-flow order — which tends to confuse both you and your staff!

This plugin modifies the Localization->Orders Status processing, adding a Sort Order value to each status entry. The status values are now sorted within that tool, the function used to create an orders-status dropdown (used heavily in the payment modules' configuration) and in the status dropdown within the Customers->Orders tool — in ascending sort-order. Now you can control where in the list each status value lies, making that list more customizable to your site.


Installation

There are core-file overwrites in this plugin; you should always backup your cart's database and files prior to making any changes.

  1. Copy the files to your cart, after renaming the YOUR_ADMIN folder to match your Zen Cart's secret admin folder:
    1. /YOUR_ADMIN/orders.php
    2. /YOUR_ADMIN/orders_status.php
    3. /YOUR_ADMIN/includes/auto_loaders/config.zc154_compability.php
    4. /YOUR_ADMIN/includes/functions/general.php
    5. /YOUR_ADMIN/includes/functions/extra_functions/init_orders_status_sort_order.php
    6. /YOUR_ADMIN/includes/init_includes/init_zc154_compability.php
    7. /YOUR_ADMIN/includes/languages/english/orders_status.php

Un-install

Restore the four (4) core-files overwritten by this plugin.

Version History: