Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2008
    Posts
    21
    Plugin Contributions
    0

    Default Add customers_city field to orders.php

    Dear Zenners,

    Tried to figure this out but my coding is not so good...
    When I go to the admin section you have the orders overview.

    There are tables with ID | Pay method | customer etc.
    I would like to add a City table to this list.. I tried to edit the orders.php but with no luck

    Who can make my day and help me with this...

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Add customers_city field to orders.php

    What screen are you referencing??
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Dec 2008
    Posts
    21
    Plugin Contributions
    0

    Default Re: Add customers_city field to orders.php

    Quote Originally Posted by kobra View Post
    What screen are you referencing??
    In the admin page: customers/orders

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Add customers_city field to orders.php

    In the file:
    /your_secret_admin/orders.php

    you would need to add the city to the line:
    Code:
        $new_fields = ", o.customers_company, o.customers_email_address, o.customers_street_address, o.delivery_company, o.delivery_name, o.delivery_street_address, o.billing_company, o.billing_name, o.billing_street_address, o.payment_module_code, o.shipping_module_code, o.ip_address, o.delivery_city ";
    Then add that to the display, such as:
    Code:
          $show_payment_type = $orders->fields['payment_module_code'] . '<br />' . $orders->fields['shipping_module_code'] . '<br />' . $orders->fields['delivery_city'];
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Add New Code in Admin/orders.php
    By haredo in forum Code Collaboration
    Replies: 2
    Last Post: 12 Nov 2015, 09:40 PM
  2. 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
  3. v139h Add a Field to print on invoices.php
    By gotlogos in forum General Questions
    Replies: 1
    Last Post: 4 Jun 2012, 03:09 AM
  4. How do I add a purchase order field to the admin orders page?
    By kbascombe in forum Managing Customers and Orders
    Replies: 1
    Last Post: 1 Oct 2009, 02:48 AM
  5. Help showing a custom field to the admin orders.php
    By jeronij in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Sep 2008, 11:49 AM

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