Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Admin Quick Find Togglable Panel
 
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features
 
Thread Tools Search this Thread
  #1  
Old 02-03-2015, 08:04 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Location: UK
Posts: 3,518
 

Default Admin Quick Find Togglable Panel

A quick little v4.4.x - v4.7.x admin mod that shows a useful toggleable panel for regularly used admin search sections that might save a few clicks...

The panel can be toggleable (default) or shown at all times and you can show or hide the languages field (see settings at the top of quick_find.tpl).




1) Upload attached quick_find.tpl to skin/common_files

2) In skin/common_files/admin/home.tpl and skin/common_files/single/home.tpl

Before...
Code:
<table width="100%" cellpadding="0" cellspacing="0" align="center">
Insert...
Code:
{* Quick Find Admin Panel *} {include file="quick_find.tpl"} {* / Quick Find Admin Panel *}

3) See this post for the manufacturers dropdown.


11th Sept 2017 - Latest version here

Attached Files
File Type: tpl quick_find.tpl (7.2 KB, 33 views)
__________________
xcartmods.co.uk


Reply With Quote

The following 5 users thank PhilJ for this useful post:
anandat (02-04-2015), georgewf (04-09-2017), JacksmithxD (02-04-2015), wendy.email (02-04-2015), xtech (02-04-2015)
  #2  
Old 02-04-2015, 03:28 AM
 
JacksmithxD JacksmithxD is offline
 

X-Adept
  
Join Date: Oct 2010
Posts: 400
 

Default Re: Admin Quick Find Togglable Panel

Installed it with ease. I know it only saves seconds but those seconds will add up to a huge amount eventually! It'll also come in handy when a user calls up as you can quickly search via order ID to locate them.

Changing/Finding products is easier as it saves you a few clicks. It would be silly not to use this mod really as it takes 2 minutes to install and it's FREE.

Overall it'll make tasks easier and quicker so I'll be using it a lot.

I do suggest to add a 'Search' button though.

Thanks Phil,
__________________
Xcart 4.5.2
Reply With Quote

The following user thanks JacksmithxD for this useful post:
PhilJ (02-04-2015)
  #3  
Old 02-05-2015, 06:26 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default Re: Admin Quick Find Togglable Panel

Awesome mod. Easy installation.

Trying to get it to work on 4.5.5 Gold, having two errors. When toggler is set to hide, the click does not actually show anything, instead I'm getting an error in the java code (see below). Also, the manufacturers list is limited to only the # of manufacturers in the "Manufacturers list limit (leave empty if unlimited)" value from the Manufacturers module.

Code:
Uncaught TypeError: undefined is not a functionsearch.php?mode=search&page=1:527 (anonymous function)jquery-min.js:2 f.extend._Deferred.e.resolveWithjquery-min.js:2 e.extend.readyjquery-min.js:2 c.addEventListener.C
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote

The following user thanks mcanitano for this useful post:
PhilJ (02-06-2015)
  #4  
Old 02-06-2015, 04:07 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Location: UK
Posts: 3,518
 

Default Re: Admin Quick Find Togglable Panel

Hi Marcello, perhaps try upgrading your version of jQuery to say, v1.8.3, which should be safe to use.

skin/common_files/lib/jquery-min.js

https://ajax.googleapis.com/ajax/lib.../jquery.min.js

Yes, it will limit the manufs according to the manuf module setting.
__________________
xcartmods.co.uk


Reply With Quote

The following user thanks PhilJ for this useful post:
mcanitano (02-06-2015)
  #5  
Old 02-06-2015, 05:28 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default Re: Admin Quick Find Togglable Panel

Quote:
Originally Posted by PhilJ
Hi Marcello, perhaps try upgrading your version of jQuery to say, v1.8.3, which should be safe to use.

skin/common_files/lib/jquery-min.js

https://ajax.googleapis.com/ajax/lib.../jquery.min.js

Yes, it will limit the manufs according to the manuf module setting.

Thanks, upgrading jquery worked! Any ideas how to not use the limited manufacturers shown, and instead use all?
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote
  #6  
Old 02-06-2015, 05:38 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Location: UK
Posts: 3,518
 

Default Re: Admin Quick Find Togglable Panel

Quote:
Any ideas how to not use the limited manufacturers shown, and instead use all?

Sure, make a local copy of /modules/Manufacturers/customer_manufacturers.php and rename to customer_manufacturers_admin.php

In customer_manufacturers_admin.php replace...

Code:
$manufacturers = func_get_manufacturers_list(true, $config['Manufacturers']['manufacturers_limit']);
With...
Code:
$manufacturers = func_get_manufacturers_list(true, 9999);

Then upload customer_manufacturers_admin.php to /modules/Manufacturers/

Then in admin/auth.php

Before...
Code:
include $xcart_dir . '/include/get_language.php';
Insert...
Code:
// Quick Find Admin Panel include $xcart_dir . '/modules/Manufacturers/customer_manufacturers_admin.php';

Updated 18th March 2017
__________________
xcartmods.co.uk


Reply With Quote

The following user thanks PhilJ for this useful post:
mcanitano (02-06-2015)
  #7  
Old 02-06-2015, 06:17 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default Re: Admin Quick Find Togglable Panel

Works like a charm! Love this addition, makes everything so much easier.
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote
  #8  
Old 02-10-2015, 09:57 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default Re: Admin Quick Find Togglable Panel

We had an issue with this working in IE & FireFox. I think the issue was because of the ToggleClass('expanded'), in IE/FireFox, it requires the div "toggler" to have "overflow:hidden;" in the CSS style.

It wouldn't expand on those two browsers until we added that. Then again, it might have been because we messed with the CSS initially.
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote
  #9  
Old 03-05-2015, 05:04 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Location: UK
Posts: 3,518
 

Default Re: Admin Quick Find Togglable Panel

updated, form action paths tweaked.
__________________
xcartmods.co.uk


Reply With Quote

The following 2 users thank PhilJ for this useful post:
anandat (03-22-2015), mcanitano (03-05-2015)
  #10  
Old 03-22-2015, 06:54 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 912
 

Default Re: Admin Quick Find Togglable Panel

Phil,
This is very nice tweak. Saves lots very unnecessary clicks
I guess it will soon become default x-cart option

I upgraded jquery-min.js to 1.8.3 as mentioned above.
Everything is working fine on my test localhost store with XAMPP

Just one error shows admin

Quote:
[22-Mar-2015 20:33:26] PHP Warning: Unexpected character in input: ' in D:\xampp\htdocs\store2015\var\templates_c\bef7c6dc 93b8a4551b2f08b628549d0c\%%8B^8B4^8B45DCD5%%orders _list.tpl.php on line 126

I am not able to paste here the entire line no 126 code of file %%8B^8B4^8B45DCD5%%orders_list.tpl.php because of notepad++ shows some nul sign just before "lambda_14($_tmp)); ?>"

I have attached screenshot for better review of code.
http://www.pixentral.com/hosted/1AxH...tex1_thumb.jpg

Do you have any idea why I am getting this error ?
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:58 PM.

   

 
X-Cart forums © 2001-2018