Forums / General Questions / "New Orders" box in Admin Home view: Need mod please!

"New Orders" box in Admin Home view: Need mod please!

Locked

Started by storybook on 10 Aug 2007, 8:15 PM · Views: 1,091

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
10 Aug 2007, 8:15 PM
#1
storybook avatar

storybook

New Zenner

Join Date:
Jun 2007
Location:
Wagener, SC
Posts:
27
Plugin Contributions:
0

"New Orders" box in Admin Home view: Need mod please!

Hi.

When I login to my admin panel, or click admin home and go to the summery page, I see the "new orders" box on the right hand side.

What I would like to see happen is when an order has been updated to "shipped" (delivered) in customers->orders, I want the order to no longer show in the new orders box in the admin home view.

This will give me a quick view of outstanding orders.

Has this been done? Can it be done?

Thanks!

Kevin

Hand Crafted Heirloom Quality Ceramics
StoryBook Ceramics

MudPuppy Molds - Powered by ZenCart

10 Aug 2007, 9:29 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: "New Orders" box in Admin Home view: Need mod please!

There's not a mod to do this, but you can do it yourself as follows. In the admin/index.php file replace the following (at about line 165) ```php

<?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"); ``` with this ```php <?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, o.orders_status, 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 orders_status != 3 order by orders_id DESC limit 5"); ```

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

11 Aug 2007, 4:57 AM
#3
storybook avatar

storybook

New Zenner

Join Date:
Jun 2007
Location:
Wagener, SC
Posts:
27
Plugin Contributions:
0

Re: "New Orders" box in Admin Home view: Need mod please!

Perfect! Works like a charm.

:clap:

Thanks for your help,
Kevin

Hand Crafted Heirloom Quality Ceramics
StoryBook Ceramics

MudPuppy Molds - Powered by ZenCart