Zen Cart Order Total EditThe Order Total Edit mod allows you to change line items under the subtotal line for an order in your database. This can be useful if you need to modify discounts, shipping costs, or other line items.
Donate: This is free software. Show your appreciation by supporting my efforts.
Relevance: Zen Cart™ 1.5.4 and above
Current Version: 1.2 (version history)
Support Thread: Order Total Edit Support Thread
Cost: Free, but donation appreciated
Installed Cost: $60.00 Buy Professional Installation by That Software Guy
Installation Difficulty: Moderate
Installation Instructions: click here
Location: Zen Cart Plugins, under Admin Tools
Download: Order Total Edit in Zen Cart Plugins
FAQ: click here
Overview:Order Total Edit allows you to edit line items on an order below the subtotal line. So for example, if a customer should get a price reduction on their shipping cost, you can do it with Order Total Edit.
Here's how it looks:
Order Total Edit in Zen Cart Admin
You access it from the sidebar of the orders screen:
Order Total Edit on Orders screen
- Back up everything! Try this in a test environment prior to installing it on a live shop.
- Copy the contents of the unzipped folder to the root directory of your shop.
To add Order Total Edit to the orders sidebar:
- edit admin/orders.php
- find the line that shows TEXT_DATE_ORDER_CREATED in the sidebar.
- Above it, insert this block:
$contents = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_OT_EDIT, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '" target="_blank">' . TEXT_OT_EDIT . '</a>');
To add Order Total Edit to the orders screen at the bottom next to the
- edit admin/orders.php
- find the line that provides the link to NOTIFY_ADMIN_ORDERS_EDIT_BUTTONS.
- In the div below it, insert this block
<?php echo '<a href="' . zen_href_link(FILENAME_OT_EDIT, zen_get_all_get_params(array('oID', 'action','page')) . 'oID=' . $oID . '&action=edit', 'NONSSL') . '" target="_blank">' . TEXT_OT_EDIT . '</a>';?>
- 1.2 04/04/2020 - Correctly handle discounts
- 1.1 03/27/2020 - Multi currency
- 1.0a 01/13/2020 - Small bugfix
- 1.0 05/01/2019 - First Release
FAQQ: Why not just use Edit Orders?
A: Edit Orders is a great mod but it has some quirks. For example, it will delete and re-add entries in the orders_products table, which is problematic if you have additional columns (such as the ones created by the dropshipping mod). It also in certain cases will not let you modify the figure created by an order total module, which may be what you want to do.