Re: Another Edit Order mod to use with Super Orders
I mis-spoke.. So let me be clearer here..:smile:
Currently in Edit Orders from the "Add Products" section there is only a "Back" button that returns you to the details page for the order you are adding products to.. With the change posted below there will be one button to take you back to to the order details page for the order you are adding products to and another button to take you back to the Edit Order page..
Quote:
Originally Posted by
DivaVocals
I also wanted to share on other minor edit I made to edit_orders.php to use with Super Orders. This will add an additional button that takes you back to the Super Orders detail page for the current order from the "Add Product" section of Edit Orders. (Currently there is only a "Back" button that returns you to the Edit Order page..)
Look for this:
Code:
if($action == "add_product")
A few lines down from there find this:
Code:
<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>
Replace with this:
Code:
<!-- BOF Edit to return to current order being edited instead of the order list page -->
<td class="pageHeading" align="right">
<?php echo '<a href="javascript:history.back()">' . zen_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?>
<?php echo '<a href="' . zen_href_link(FILENAME_SUPER_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oID . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_details.gif', IMAGE_ORDER_DETAILS) . '</a>'; ?></td>
</td>
<!-- EOF Edit to return to current order being edited instead of the order list page -->
Re: Order Editor 1.3.7 Issues
Is anyone using this mod with "reward points" mod? The reward points are shown in the order, but if I try to edit the order, the reward points turn to 0.00, and I am unable to restore the points, because it will be taken in as price value and adds to the total.
Re: Order Editor 1.3.7 Issues
For Mellon or anyone else having the problem with the Order Total going to 0.00:
Just got a chance to check someone's website that had this problem, and I figured out why it happens. Edit Orders relies on the subtotal module being installed. Without it, Edit Orders will not function properly. To fix this, go to Admin->Modules->Order Totals and install the Subtotal module.
Enjoy!
Re: Order Editor 1.3.7 Issues
I installed the sub total option, edited an existing order and the total went from correct to 0.00 so there must be something else
Re: Order Editor 1.3.7 Issues
Try installing all the order total modules. I have all of them installed except COD.
Re: Order Editor 1.3.7 Issues
Also, try editing an order twice. Since your order didn't have a subtotal to begin with, that may cause problems.
Also, try making a new order AFTER you added the subtotal order total module. Then try editing that new order.
This mod is not meant to work without standard order total modules being installed.
Re: Order Editor 1.3.7 Issues
srturner47, you were right all along. Here's the trick. You must have the subtotal piece installed BEFORE the customer makes the order. I was thinking it was going to fix old orders by enabling this and changing a value of a product in the order ans re-saving it.
:clap: thanks a ton for the tip, I owe you some beers!
Re: Order Editor 1.3.7 Issues
I'm using ZC version 1.3.9d. I've read through this whole support thread and haven't seen my issue, so here goes.
I have the default Authorize.net AIM module and Paypal Express turned on for my site. Before installation of this mod, when I go to the details of the order, I can capture funds, do refunds, etc. on the orders. After installation, all of that is missing. I can provide screenshots if necessary. Granted, I've just discovered the version 2 and haven't installed it yet, so this is all working with the 1.5.3 version.
Another thing - after installation, my details button was renamed "edit". Should that have happened? That means I have two edit buttons. Maybe that's the issue?
Any help would be greatly appreciated! Thanks! :)
Laurel
Re: Order Editor 1.3.7 Issues
I was in shock too when I installed version 2 and saw that the edit button was there...lol
to the right of the order you should see at the top of the column: details delete invoice packing slip buttons
then at the bottom is the edit button.
when editing an order you should use the edit button at the bottom of the column.
If you have an edit button at the top (where it should be details button), then try reinstalling the files again especially the buttons...make sure they are in the correct sections when uploading.
did you also make these edits to the admin/orders.php file:
2. Make the following changes to admin/orders.php:
Find: (In 1.3.8a on line 854)
$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>');
Quote:
Originally Posted by
laurelsstitchery
I'm using ZC version 1.3.9d. I've read through this whole support thread and haven't seen my issue, so here goes.
I have the default Authorize.net AIM module and Paypal Express turned on for my site. Before installation of this mod, when I go to the details of the order, I can capture funds, do refunds, etc. on the orders. After installation, all of that is missing. I can provide screenshots if necessary. Granted, I've just discovered the version 2 and haven't installed it yet, so this is all working with the 1.5.3 version.
Another thing - after installation, my details button was renamed "edit". Should that have happened? That means I have two edit buttons. Maybe that's the issue?
Any help would be greatly appreciated! Thanks! :)
Laurel
Re: Order Editor 1.3.7 Issues
Ok I finally had time to install version 2 today and it worked like a charm! Thanks so much for this mod - it's a life saver! :)
Laurel