I mis-spoke.. So let me be clearer here..

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 View Post
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>';  ?>&nbsp;
            <?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 -->