| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Show extra field in admin search results | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Show extra field in admin search results
We are currently trying to show an extra field in the search results on the admin side. We have created a new column for this, but cannot it to work.
Our extra field is "Cost" (what it costs us to purchase the product if we do not have it in stock) and is very helpful for our Ordering Department. We want to be able to quickly search for an item, see if we have it in stock, and edit/see the Cost of the item just as if we were editing the Selling Price. We are using X-Cart 4.5.5 GOLD and have gotten nowhere. We've tried following the threads to implement it onto the invoice but it does not work the same in search results.
__________________
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 |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Show extra field in admin search results
UPDATE: We tried to follow this post: http://forum.x-cart.com/showthread.php?t=63314
But were unable to get this to work. Our issue is that we can't get the foreach loop to pull an extra field value from it's corresponding product, or any product in that case.
__________________
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 |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: Show extra field in admin search results
Bump, has anyone else ever tried to do this?
__________________
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 |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: Show extra field in admin search results
Hi McAnitano...
I'm not sure if this is possible as i've just enabled the Debug Console on an XC 4.5 installation and the {$products} variable isn't outputting the extra fields data for each product. Some of the PHP Code will need to be adjusted to grab the extra field data.
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: Show extra field in admin search results
Well, we took your advice and did this on the PHP side, except not with Extra Fields.
We custom added a new data field "dealer_cost" to the xcart_products array using phpMyAdmin, then went into include/product_modify.php and added Code:
after Code:
around line 900 and added to main/product_details.tpl after List Price Code:
__________________
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 |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: Show extra field in admin search results
Ah OK ... Thats fine.
So are you still having trouble? Or are you all set?
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#7
|
|||||||||
|
|||||||||
Re: Show extra field in admin search results
We're all set, works fine the way we did it!
(custom extra field in PHP). Thanks for the help.
__________________
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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|