Nope, i just removed the mod..
Printable View
Anyone got this working yet?
I am guessing that everyone who is seeing this error is running PHP 5. The problem is due to short open tags.
edit_orders uses "short open tags" in many places. This is the style of enclosing PHP code in "<? ... ?>" instead of "<?php ... ?>". Short open tags have been deprecated in PHP 5.
There are two possible solutions:
1) Edit the php.ini file on the server and set "short_open_tag" to "On". This will allow the use of the tags in all PHP files on the server.
2) Edit admin/edit_orders.php to change all "<? " tags to "<?php ". Here is a diff that shows where the changes need to be made.
Hopefully this will work for everyone. Good luck.Code:772c772
< <?
---
> <?php
839c839
< <td align='center' valign='top'><br><a href="<? print $PHP_SELF . "?oID=$oID&action=add_product&step=1"; ?>"><u><b><font size='3'><?php echo TEXT_DATE_ORDER_ADDNEW; ?> </font></b></u></a></td>
---
> <td align='center' valign='top'><br><a href="<?php print $PHP_SELF . "?oID=$oID&action=add_product&step=1"; ?>"><u><b><font size='3'><?php echo TEXT_DATE_ORDER_ADDNEW; ?> </font></b></u></a></td>
917c917
< <? if($CommentsWithStatus) { ?>
---
> <?php if($CommentsWithStatus) { ?>
919c919
< <? } ?>
---
> <?php } ?>
960c960
< <?
---
> <?php
983c983
< <? if($CommentsWithStatus) { ?>
---
> <?php if($CommentsWithStatus) { ?>
987c987
< <? } ?>
---
> <?php } ?>
1011c1011
< <?
---
> <?php
1181c1181
< <?
---
> <?php
Andy
I think I found another bug. The instructions in the readme.txt say that the "details" button should take you to the old order description screen while the "edit" button should take you to the new screen. That didn't match the behavior I was seeing. Both buttons were taking me to the new edit screen.
I changed the instructions in the readme.txt a little and things worked as expected. Basically the first search and replace has you change "FILENAME_ORDERS" to "FILENAME_ORDER_EDIT". I am pretty sure this is wrong. I changed it back to FILENAME_ORDERS and things seemed to work as expected. I haven't tested that modification throughly though. Caveat emptor.
The readme.txt should read:
Code:1) This add the "Details" button - see explanations below:
FIND
$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> <a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete', 'NONSSL') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
REPLACE WITH:
$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_details.gif', IMAGE_DETAILS) . '</a> <a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete', 'NONSSL') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
this mod has alot of problem but no choice.. there is only 1 zen cart mod we hav here....
unless some 1 willing to contribute the perfect 1 :)
Whoever makes this mod tidy will be a popular person!
Any solutions to this one yet? Such a vital piece of the puzzle. I have to edit all orders before they even can be authorized because of our impossible shipping variables. We're working on learning a bit more about zen cart before we decide to fix edit orders or write a new one. Any help is appreciated!
I'm in exactly the same boat. I need to edit orders, quantities, attributes and shipping costs at the very least. I'll be watching this thread in case anyone comes up with a solution. If I ever get my php skills (currently non-existing) up to snuff, I'll do my best. But that'll take a loooong time. :lookaroun
I too need this feature!
I installed Edit Orders 1.1 mod yesterday and it works for me for the most part, however it won't send email after you edit the order.
There is no 'edit' button either. I have to click on 'details', then have to click 'back', then click on 'details' again before I get to the edit screen.
I wish I knew how to fix it, as there is ALWAYS someone wanting to change their order!
TLC
Also installed the Mod and having tax problems.
Besides going to ex tax prices the tax for the shipping is not calculated.
Another problem is with adding products.
The added product defaults to english while the default language for the shop is dutch.