Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Show Certain orders only on admin index page

    Can anyone help me, i've tried searching, found something that should have done it, tried it, and it didn't work.

    I'm trying to get the "new orders" section on the admin page to only show a certain order status.

    In my case status 2

    i've tried using the code

    orders_status != 2

    and it made things change, but the results were odd and not what i expected.

    Can anyone please help?

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

    Default Re: Show Certain orders only on admin index page

    Around line 165 in the file:
    /admin/index.php

    you will see the line:
    Code:
      <?php  $orders = $db->Execute("select o.orders_id as orders_id, o.customers_name as customers_name, o.customers_id, o.date_purchased as date_purchased, o.currency, o.currency_value, ot.class, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id) where class = 'ot_total' order by orders_id DESC limit 5");
    change it to read:
    Code:
      <?php  $orders = $db->Execute("select o.orders_id as orders_id, o.customers_name as customers_name, o.customers_id, o.date_purchased as date_purchased, o.currency, o.currency_value, ot.class, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id) where class = 'ot_total' and o.orders_status = '2' order by orders_id DESC limit 5");
    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!]
    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!

  3. #3
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Show Certain orders only on admin index page

    Thank you very much, working perfectly :)

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

    Default Re: Show Certain orders only on admin index page

    You are most welcome ... thanks for the update that this worked for you ...
    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!]
    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. orders dont show in admin, only customer info.
    By angst in forum Basic Configuration
    Replies: 5
    Last Post: 4 Mar 2010, 04:21 AM
  2. Show only Certain Products on Main Page
    By jmelwak in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 24 Jul 2007, 03:32 AM
  3. Banner to show only on the index.php page
    By bigjoed in forum Basic Configuration
    Replies: 1
    Last Post: 20 Sep 2006, 10:34 PM
  4. Only Show New Products On Index Page
    By repairman in forum Basic Configuration
    Replies: 5
    Last Post: 2 Aug 2006, 12:10 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