Zen Cart custom software development, Zen Cart modules, Zen Cart Expert eCommerce with Zen Cart!

Zen Cart Order Total Edit

Zen Cart Order Total Edit

The 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. Donate

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: $100.00 Buy Professional Installation by That Software Guy

Installation Difficulty: Moderate

Installation Instructions: click here for installation instructions

Location: Zen Cart Plugins, under Admin Tools

Download: Order Total Edit in Zen Cart Plugins

FAQ: click here for FAQ


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

Zen Cart Order Total Edit Main Page



You access it from the sidebar of the orders screen:

Order Total Edit on Orders screen

Zen Cart Order Total Edit on Orders Screen



Installation Instructions:

  1. Back up everything! Try this in a test environment prior to installing it on a live shop.
  2. Copy the contents of the unzipped folder to the root directory of your shop.
  3. To add Order Total Edit to the orders sidebar:
    1. edit admin/orders.php
    2. find the line that shows TEXT_DATE_ORDER_CREATED in the sidebar.
    3. 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>'); 
        
  4. To add Order Total Edit to the orders screen at the bottom next to the other buttons:
    1. edit admin/orders.php
    2. find the line that provides the link to NOTIFY_ADMIN_ORDERS_EDIT_BUTTONS.
    3. 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>';?>
              

Major Versions

  • 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

FAQ

Q: 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.