Zen Cart Logo
Forums / General Questions / Editing order details

Editing order details

Locked

Views: 28,371

Results 41 to 60 of 67
This thread is locked. New replies are disabled.
18 Apr 2007, 1:11 PM
#41
darkwander avatar

darkwander

Zen Follower

Join Date:
May 2005
Location:
Australia
Posts:
321
Plugin Contributions:
0

Editing order details

MikeyG:

Darkwander,

I have had the same issue but at line 929. ( I know that does not solve the problem). I also noted that that file Orders.php does not have that many lines

I have been back through my files this morning doing a compare and removing several mods and agree it does seem to be this mod causing the problem. Originally it seemed to fall over when adding a product with attributes, now it fails to get to the first page.

Have you had any joy?

MG

p.s. frogster, Khopek agree it relates to stock by attributes as my compare software pulled all those elements out of the orders.php file I had.

Nope, i just removed the mod..

24 Apr 2007, 9:33 AM
#42
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Editing order details

Anyone got this working yet?

7 Jun 2007, 10:38 PM
#43
aberkvam avatar

aberkvam

New Zenner

Join Date:
Jun 2007
Posts:
2
Plugin Contributions:
0

Re: Editing order details

Darkwander:

I am getting the following error with the Edit Order mod.

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.

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

Hopefully this will work for everyone. Good luck.

Andy

7 Jun 2007, 10:58 PM
#44
aberkvam avatar

aberkvam

New Zenner

Join Date:
Jun 2007
Posts:
2
Plugin Contributions:
0

Re: Editing order details

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:

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>');
16 Jun 2007, 4:29 AM
#45
jikey avatar

jikey

New Zenner

Join Date:
Jan 2007
Posts:
59
Plugin Contributions:
0

Re: Editing order details

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 :)

27 Jun 2007, 11:07 PM
#46
thoseguys26 avatar

thoseguys26

New Zenner

Join Date:
Jun 2007
Posts:
10
Plugin Contributions:
0

Re: Editing order details

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!

26 Jul 2007, 6:39 PM
#47
japanophyle avatar

japanophyle

New Zenner

Join Date:
Apr 2005
Location:
Minnesota
Posts:
67
Plugin Contributions:
0

Re: Editing order details

thoseguys26:

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

26 Jul 2007, 6:59 PM
#48
tlc avatar

tlc

New Zenner

Join Date:
Dec 2005
Posts:
53
Plugin Contributions:
0

Re: Editing order details

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

27 Jul 2007, 10:00 PM
#49
asekeris avatar

asekeris

New Zenner

Join Date:
Mar 2006
Location:
Zevenbergen, NL
Posts:
40
Plugin Contributions:
0

Re: Editing order details

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.

11 Nov 2008, 6:19 PM
#50
elslozzo avatar

elslozzo

New Zenner

Join Date:
Feb 2008
Location:
Edmonton, AB
Posts:
60
Plugin Contributions:
1

Re: Editing order details

I just want to be able to edit an order for a customer after the order placed and CC info captured. NOT READ 5 PAGES OF BS ABOUT WHETHER IT WORKS OR NOT IN WHAT VERSION

17 Nov 2008, 3:22 AM
#51
srturner47 avatar

srturner47

Zen Follower

Join Date:
Oct 2007
Posts:
385
Plugin Contributions:
0

Re: Editing order details

:blink: ElSlozzo, calm down.

The newest version has no bugs that I am aware of. It should fix all your problems. See my signature to download it. Its free, just change all the options to the free ones and go through the checkout.

Enjoy, and go do something to relax! :D

24 Jan 2009, 1:23 AM
#52
labraxmauler avatar

labraxmauler

New Zenner

Join Date:
Jan 2009
Posts:
7
Plugin Contributions:
0

Re: Editing order details

Hi all. This is labraxmauler from Spain. I'm new to the forum.

I recently downloaded and installed Edit Orders 2.1 from srturner47's website, but for some reason I can't manage to make it work. I can edit orders (add & modify products with their attributes) but once I make a single modification, my order total price resets to "0.00". There's no way I can change it once I start editing orders. Moreover, this "0.00" order total stays there when I go to Admin > Customers > Orders.
However, if I go to Admin > Reports > Customer-Order totals I can see the real order amount.

Any ideas about where the mistake is and how to solve it?

My Zen Cart version is the latest available, as stated by the "Check for updates" tool.

Thank you very much for your help.

26 Feb 2009, 2:54 PM
#54
elslozzo avatar

elslozzo

New Zenner

Join Date:
Feb 2008
Location:
Edmonton, AB
Posts:
60
Plugin Contributions:
1

Re: Editing order details

alto: Not sure what you mean here, but the customers won't be able to edit their orders if their credit card has already been processed. Otherwise they should be able to edit items in their own shopping cart no problem already.

8 Apr 2009, 3:14 PM
#55
mav67 avatar

mav67

New Zenner

Join Date:
Feb 2009
Posts:
3
Plugin Contributions:
0

Re: Editing order details

Hi everyone. Thanks for making this mod available. I followed the instructions exactly but get a "syntax error" at line 854. Any help would be appreciated!

9 Apr 2009, 3:23 PM
#56
srturner47 avatar

srturner47

Zen Follower

Join Date:
Oct 2007
Posts:
385
Plugin Contributions:
0

Re: Editing order details

Is the error happening on orders.php or edit_orders.php? Does the error give you any more information? Are you using v2 from my signature?

14 Apr 2009, 4:47 AM
#57
calixto avatar

calixto

New Zenner

Join Date:
Mar 2009
Posts:
30
Plugin Contributions:
0

Re: Editing order details

nice job. Congrats
I made minor changes to fit my Mall application (multiple stores in the same site)

13 May 2009, 8:01 PM
#58
pablo1719 avatar

pablo1719

New Zenner

Join Date:
Nov 2008
Posts:
33
Plugin Contributions:
0

Re: Editing order details

I have come across a problem when updating orders. The problem is linked to a product that has an attribute. The item attribute doesn't have a +/- in the price change box. It is just blank. I believe that this is part of the problem. I am not sure exactly how to fix this. I have listed the error code below.

the 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '133'' at line 5
in:
[update zen_orders_products_attributes set products_options = 'Size', price_prefix = '', options_values_price = '91.8400', products_options_values = '26" x 15'' where orders_products_attributes_id = '133';]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Thank You
Paul

18 May 2009, 8:52 AM
#59
nicholas84 avatar

nicholas84

New Zenner

Join Date:
May 2008
Posts:
5
Plugin Contributions:
0

Re: Editing order details

i've install the latest version but customers are still not notified when orders are changed

26 May 2009, 11:41 PM
#60
droidwork avatar

droidwork

New Zenner

Join Date:
Mar 2008
Posts:
20
Plugin Contributions:
0

Re: Editing order details

I've install the v2.0 editorder. Once i edit the order, the shipping amount does not include in the total. Is there a way the shipping amount could be recalculated? Also during edit order, can admin change the method of shipping?