Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2009
    Posts
    30
    Plugin Contributions
    0

    Default How do I add a purchase order field to the admin orders page?

    I've added a 'Purchase Order Number' field to the checkout process as I need to provide a way for customer to record their own reference number for their order.

    I followed the instruction from this thread and it worked great.

    However, now I need to show this field on the order page in the admin area. And the instructions on that thread only describe how to add it to the customers page and I can't work out how to do the same sort of thing for the orders page. Can anyone help me out with step by step instructions?

    Thanks!

  2. #2
    Join Date
    Jun 2009
    Posts
    30
    Plugin Contributions
    0

    Default Re: How do I add a purchase order field to the admin orders page?

    I understand the following bits of code would need to go in the catalog/admin/orders.php file... I just don't know where to put them, as the instructions mentioned above all refer to the admin customers page...

    1
    $purchase_order_number = zen_db_prepare_input($_POST['purchase_order_number']);

    2
    'purchase_order_number' => $purchase_order_number,

    3
    c.purchase_order_number,

    4
    <tr>
    <td class="main"><?php echo 'Purchase Order No:'; ?></td>
    <td class="main">
    <?php
    if ($processed == true) {
    echo $cInfo->purchase_order_number . zen_draw_hidden_field('purchase_order_number');
    } else {
    echo zen_draw_input_field('purchase_order_number', $cInfo->purchase_order_number, zen_set_field_length(TABLE_ORDERS, 'purchase_order_number', 15));
    }
    ?>
    </td>


    Can anyone help with this?

 

 

Similar Threads

  1. How do I add an order field to the admin orders page?
    By izar74 in forum General Questions
    Replies: 4
    Last Post: 4 Jun 2015, 07:53 PM
  2. Purchase Order - Need to search in admin? super orders
    By jpietrowiak in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 6 Oct 2011, 02:15 AM
  3. Add field for purchase order number
    By Javier in forum Managing Customers and Orders
    Replies: 3
    Last Post: 10 Sep 2010, 04:02 AM
  4. Replies: 1
    Last Post: 9 Mar 2008, 09:28 PM
  5. Add Fax field in the Admin's Order page
    By MikeX in forum Customization from the Admin
    Replies: 4
    Last Post: 28 Nov 2006, 06:23 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR