Make sure you have edit_orders.php in your admin directory.
Make sure you have edit_orders.php in your admin directory.
I'm trying to install the latest version of Edit Orders (1.53) to my install of Zen-cart 1.38a/zenmagick 0.90.
The install (readme.txt) includes instructions on editing 'admin/orders.php'
INSTALLATION:
=============
1. Upload files to your store directory;
2. Make the following changes to admin/orders.php:
Find:
Replace With:Code:$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');
The challenge is, I can't find the lines of code in orders.php to edit. I've gone back to the original install files for 1.3.8 and the code to edit is not in there.Code:$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ORDER_EDIT, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');
Am I missing something?
Perhaps someone could share line numbers where this code exists?
thanks in advance for your assistance.
Kjohn, is admin/includes/extra_configures/edit_orders.php there? It looks like for some reason you don't have this line from this file being loaded:
invision, I have a slightly modified file, but for me it is on line 1082.Code:define('FILENAME_ORDER_EDIT', 'edit_orders.php');
For everyone's benefit, I found the first line to replace at line 854, the second line at line 898.
thanks again for your assistance.
Hi all.
Great Mod have been using it for a while with no problems.
However I have just implemented a new CC ON DEMAND processing Mod and have now found an oversight in the Order Editor mod.
When you edit an order using Order Editor it updates the totals stored in the Orders_ Total table but does not update the order total contained in the Orders table.
The mod that I use pulls the order value to be charged on the CC from Orders table. However if I edit and order and the total changes the total showed on ther orders.php is the same as the total stored in the orders_total but is different to the order_total stored in orders. When I process the payment the wrong un-edited value is sent.
I also presume that other scripts such as Order totals or reports may pull info from the orders table.
How can I modify the code of edit_orders.php so that as well as updating the orders_total it also updates the field order_total in the orders table.
Thanks for any assistance.
Nice catch! :) I'll try to get a bug fix out for this -- hopefully later this week.
My store sells digital downloads. I have installed Order Edit and tested it by adding a digital download product to a current order.
The item shows up as being added on the invoice however the file itself doesn't show up as an additional download that the customer can click on.
Any way I can make this work? Thanks!!
sunflowertami -- I'll see if I can't fix that with the next version I release.
redmonds -- Sorry about the delay. I pushed really hard to get the Drop Ship Module v4 that I was working on out this last week, so I never got to the edit order mod. Hopefully I'll be able to address this next week.
Bookmarks