Zen Cart Logo
Forums / General Questions / Editing order details

Editing order details

Locked

Views: 28,371

Results 1 to 20 of 67
This thread is locked. New replies are disabled.
3 Oct 2006, 8:45 PM
#1
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Editing order details

Is there a way in admin to modify order details? For instance how would one delete a line item in an order, or perhaps add an additional item to an existing order, override system price, change quantity, change attributes, etc.?

My store is very new, and already we are getting people phoning in wanting modify their orders.

I don't want to have to edit the database through something like phpMyAdmin.

I couldn't find a contribution listed for editing order details. Have I miss something?

Ron

20 Oct 2006, 9:31 PM
#2
robg avatar

robg

New Zenner

Join Date:
Oct 2006
Posts:
10
Plugin Contributions:
0

Re: Editing order details

I have the same question...I this possible?

thanks for any help.

Rob

20 Oct 2006, 11:06 PM
#3
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Editing order details

Doesn't the contribution 'Super Orders' allow you to edit orders?

It should be in the downloads section.

23 Oct 2006, 6:39 PM
#5
tinkerbell avatar

tinkerbell

New Zenner

Join Date:
Sep 2004
Posts:
26
Plugin Contributions:
0

Re: Editing order details

I need super order mod as well... but it says 1.3.0, we just got upgraded to 1.3.5.

Any ideas?

23 Oct 2006, 7:05 PM
#6
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Editing order details

I 'think' it works with 1.3.5.

Just testing it out on one of my latest shops now and will report back in the morning. :)

24 Oct 2006, 2:03 PM
#7
tinkerbell avatar

tinkerbell

New Zenner

Join Date:
Sep 2004
Posts:
26
Plugin Contributions:
0

Re: Editing order details

Thanks Alex, anxiously waiting for your results!

24 Oct 2006, 5:56 PM
#8
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Editing order details

I've had a problem importing the sql file to my database.

So have not got Super Order up and running yet. However, I'll try again and post back.

24 Oct 2006, 6:56 PM
#9
missjane avatar

missjane

New Zenner

Join Date:
Oct 2006
Posts:
8
Plugin Contributions:
0

Re: Editing order details

I just added Super Orders and from what I can see, it won't accomplish what I am trying to do:

  • Change quantities of items and recalcute order
  • Delete items and recalculate order
  • Manually add items and recalculate order

Can someone confirm this OR let me know if there is any way to accomplish what I've described above? I really need the ability to truly edit the products that have been ordered.

Thanks,

Jane

31 Oct 2006, 3:04 AM
#10
redradar avatar

redradar

New Zenner

Join Date:
Mar 2006
Location:
San Francisco, CA
Posts:
44
Plugin Contributions:
0

Re: Editing order details

Like missjane, this is exactly what I need to be able to do too --

  • Change quantities of items and recalcute order
  • Delete items and recalculate order
  • Manually add items and recalculate order

Is it possible to do this with the latest version of Zen Cart and any add-on modules? Currently I'm reduced to either making the changes by hand on the invoice or asking the client to delete his old order and reinput it.

29 Dec 2006, 3:01 PM
#11
covone avatar

covone

Zen Follower

Join Date:
Oct 2004
Posts:
409
Plugin Contributions:
0

Re: Editing order details

This thread stopped in Oct. Any one can advise how to edit order without going through database. Superorders orders does not accomplish this and the mod doesn't system to be for 1.3.6

Can someone help.

tks
CC

31 Dec 2006, 4:40 PM
#12
japanophyle avatar

japanophyle

New Zenner

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

Re: Editing order details

I need to do these things, as well. When I was running ZC 1.2.7 I used the old Edit Orders module along with Super Orders to do what I needed. The only draw back to Edit Orders was that it wouldn't let you edit attributes, but I would just add in the new item with the correct attrib and then delete the incorrect one. It DID recalculate the order totals, which is crucial.

You can find Edit Orders in the download archives here:
http://www.zen-cart.com/archived_contributions/admin-tools/

I'm now upgrading to 1.3.6 and it doesn't look like Edit Orders has been upgraded.

I'm going to attempt to install it and see if it works in the new regime. I'll post back with results. However, if it doesn't work I don't think I know enough php to fix it.

I have a very small shop and so I can't believe that others don't need to edit orders. I do it constantly!

2 Jan 2007, 3:30 PM
#13
covone avatar

covone

Zen Follower

Join Date:
Oct 2004
Posts:
409
Plugin Contributions:
0

Re: Editing order details

Thanks for feed back. I tried installing Super order, but its not what I needed. So far I been going to the database and updating manually which is a hassle. I installed the old Edit orders mod and it didn't seem to work on 1.3.6. Well now there is a new release 1.3.7 so dont know if it will work with new version.

tks

5 Jan 2007, 7:27 PM
#14
soapin_mama avatar

soapin_mama

New Zenner

Join Date:
Oct 2004
Location:
Sturgeon Bay, WI
Posts:
80
Plugin Contributions:
0

Re: Editing order details

The old version of edit orders does infact work.

In the readme file you are instructed to find and replace in admin/orders.php don't use that info. Use the below

all you need to do is find line 770 or...

    $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>');

and change the FILENAME_ORDERS to FILENAME_ORDER_EDIT

I also added this just below the above line which links to the order shipment tracking mod if you have it installed:
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_TRACK, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_orders_tracking.gif', IMAGE_EDIT) . '</a>');

6 Jan 2007, 3:57 AM
#15
japanophyle avatar

japanophyle

New Zenner

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

Re: Editing order details

OK, that's great info! I got it kinda working. I am still having these issues:

  • EO is not recalculating the total after products are added. It did this in my previous store version, is there code or some button that will make it do this?

  • I want to try to link to EO from SO, rather than from the regular orders page. I think I know what code to add to super_orders.php I just don't know where to add it.

  • When on the EO page, the rollover effects of the Admin bar. so I have to click on the Customers link and then I can get back to SO or Orders.

The first is major, the other two are mildly cosmetic but would be helpful. Is anyone else having these issues or have found a way to fix them?

6 Jan 2007, 4:24 AM
#16
japanophyle avatar

japanophyle

New Zenner

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

Re: Editing order details

Oh, oh, oh! I just figured out how to integrate EO with SO a little better. (this is big for me since I'm not really a php coder).

I did this on ZC 1.3.6 with SO 2.0 (rev 45) and Edit Orders 1.3:

  1. Edit super_orders.php

at line 1193 add this code:

// integrate with Edit Orders
echo '<a href="' . zen_href_link(FILENAME_ORDER_EDIT, 'oID=' . $orders->fields['orders_id'] . '&action=edit', 'NONSSL') . '">' . zen_image(DIR_WS_IMAGES . 'icon_edit.gif', IMAGE_EDIT) . '</a> ';
// end edit

and at line 1253 add this code:

// integrate with Edit Orders
$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>');
// end edit

  1. Edit edit_orders.php

find this line (around 555)

<td class="pageHeading" align="right"><?php echo '<a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('action'))) . '">' . zen_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td>

change to read:

<td class="pageHeading" align="right"><?php echo '<a href="' . zen_href_link(FILENAME_SUPER_ORDERS, zen_get_all_get_params(array('action'))) . '">' . zen_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td>
6 Jan 2007, 5:02 PM
#17
covone avatar

covone

Zen Follower

Join Date:
Oct 2004
Posts:
409
Plugin Contributions:
0

Re: Editing order details

I'm using the old edit order mod on 1.3.6 not using SO at all. I made above changes to the old mod still doesn't work for me. When I go into the order there is an edit button, but doens't let you change anything

?????

6 Jan 2007, 5:21 PM
#18
japanophyle avatar

japanophyle

New Zenner

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

Re: Editing order details

the changes I posted in my previous posting were for integrating Edit Orders with Super Orders specifically. I believe that all you need to do to get EO working with the regular Orders page is what soapin_mama suggested:

all you need to do is find line 770 or...

$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>');

and change the FILENAME_ORDERS to FILENAME_ORDER_EDIT

I also added this just below the above line which links to the order shipment tracking mod if you have it installed:
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_TRACK, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_orders_tracking.gif', IMAGE_EDIT) . '</a>');

7 Jan 2007, 4:51 AM
#19
soapin_mama avatar

soapin_mama

New Zenner

Join Date:
Oct 2004
Location:
Sturgeon Bay, WI
Posts:
80
Plugin Contributions:
0

Re: Editing order details

Correct the top EDIT button is not the one you use on the ORDERS page you must use the bottom EDIT button.

As for super orders, that's great I don't use it so I can't help in that area.

If you'd like to change the top EDIT button then change line 726 this: FILENAME_ORDERS to this: FILENAME_ORDER_EDIT

that should make the top EDIT button work to go straight to the order edit page.

7 Jan 2007, 5:06 AM
#20
japanophyle avatar

japanophyle

New Zenner

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

Re: Editing order details

Well, I wish I could say that this is working for me, but it's not. In adding new products, the attributes are not displayed on the Order details and the totals are not calculated (they reset to zero).

Are there any other solutions to editing orders? This is absolutely crucial to my operation.