Thread: Editing orders

Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Location
    Florida
    Posts
    30
    Plugin Contributions
    0

    Default Re: Editing orders

    An afterthought and it was too late to edit the post....

    So that I understand correctly, I remove the admin folder from the edit_orders folder and put it in the root?

    Thx, Shep

  2. #2
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: Editing orders

    Quote Originally Posted by Shepherd348 View Post
    An afterthought and it was too late to edit the post....

    So that I understand correctly, I remove the admin folder from the edit_orders folder and put it in the root?

    Thx, Shep
    Yes, that would be correct. I would say though to make sure to compare the files if you have other mods installed to make sure Edit Orders won't overwrite something.


    Actually, the file it was looking for doesn't exist. The error message said FILENAME_ORDER_EDIT couldn't be found. The file inside the package I installed is edit_orders.php, inside the admin directory. What I am assuming is that the order should be reversed on the changes that are made to the admin/orders.php file.

    The file in question is called for when I click on the edit button in a customer's order.

    I didn't see anything that looked different when I pulled up a customer's order, so I'm assuming that the access that this file creates shows up when I click on the edit button.
    I do remember this when I first installed...However mine works fine right now and everything is the same..

    I will however post the Modified Readme file that I have. (found in the Edit Order Issues thread)

    edit orders 1.2.6 Nov 12th 2007
    unzip
    copy and upload admin directory
    edit admin/orders.php

    Note first change is NOT the same as in readme, but what we want instead; to just rename the button

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

    With the code:
    // ====> BOF: Edit Orders 1.2.6 <====
    // $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>');
    $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_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>');
    // ====> EOF: Edit Orders 1.2.6 <====
    Replace line:
    $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>');

    With the code:
    // ====> BOF: Edit Orders 1.2.6 <====
    // $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>');
    $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>');
    // ====> EOF: Edit Orders 1.2.6 <====
    Also if you go into the Edit Orders Issues thread HERE
    you might find more help. I don't know much compared to alot of them, in fact they just helped me resolve an issue I was having

  3. #3
    Join Date
    Mar 2008
    Location
    Florida
    Posts
    30
    Plugin Contributions
    0

    Default Re: Editing orders

    Nope, that dog won't hunt! I did everything very carefully and still got the same message: Not Found
    The requested URL /shepherdadmin-348/FILENAME_ORDER_EDIT.php was not found on this server.

    I changed the name of my admin file for security reasons, and it is looking for the file there. I think that would be a configure issue, since this is the code in the shepherdadmin-348/orders.php file that it's calling for.

    <a href="' . zen_href_link(FILENAME_ORDER_EDIT, zen_get_all_get_params

    I've looked in my admin/config file and don't see a separate designation for orders. Can I just hard code it in the orders file, instead of using . zen_href_link? I'm not very familiar with PHP, so would that be . admin(FILENAME_ORDER_EDIT, ?

    Still scratching......

 

 

Similar Threads

  1. Editing Orders
    By Shane78 in forum General Questions
    Replies: 2
    Last Post: 6 Apr 2010, 10:33 AM
  2. editing placed orders
    By partyball in forum Managing Customers and Orders
    Replies: 1
    Last Post: 4 Aug 2008, 02:56 AM
  3. editing orders problem
    By jford in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 3 Apr 2007, 06:37 PM
  4. Editing Orders - Adding / Removing Products to Orders
    By Darkwander in forum General Questions
    Replies: 1
    Last Post: 19 Jan 2007, 07:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg