Simple Modification To Show "this Month" Data By Default In Dashboard

Dear Friends,



I will share with you a small trick that will help you to see “This month” data values by default in dashboard









This modification will get you by default this month data to your store dashboard.



Please add:



#file:

app/addons/my_changes/controllers/backend/index.pre.php
```<br />
<br />
#content<br />
```php
<br />
<?php<br />
/*<br />
* © 2015 Hungryweb<br />
*<br />
* @website: www.hungryweb.net<br />
* @support: support@hungryweb.net<br />
*<br />
*/<br />
if ( !defined('BOOTSTRAP') ) { die('Access denied'); }<br />
if ($mode == 'index') {<br />
	#this month by default<br />
	if(empty($_REQUEST['time_from'])){<br />
		$_REQUEST['time_from'] = strtotime( 'first day of ' . date( 'F Y'));<br />
		$_REQUEST['time_to'] = strtotime( 'last day of ' . date( 'F Y'));<br />
	}<br />
}<br />

```<br />
<br />
PS: for me month start on [b]1[/b] maybe for other start on a specific day, that can be adjusted <img src="upload://ssa1U17ndImgNZSdwFNmOF2yUgM.png" class="bbc_emoticon" alt=";)"><br />
<br />
I hope that helps,<br />
<br />
--<br />
Valentin<br />
[color=#808080][size=2]part of hungryweb.net[/size][/color]