View Single Post
  #2  
Old 06-16-2004, 07:38 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

search.php needs to be amended to allow for this

search for where it says something like:

Code:
$sql_tbl[products].product like '%$substring%'

and change to:

Code:
$sql_tbl[products].product like '%$substring%' or $sql_tbl[products].productcode like '%$substring%'

This needs to be in customer/search.php as well as admin/search.php and provider/search.php for soem reason xcart did not unify this search mechanism on the 3.5 version and older store.

The productid shown on the product detail page is drawn from func.php

replace line 1773:
Code:
$product["producttitle"]="$product[product] #$product[productid]";
with:
Code:
$product["producttitle"]="$product[product] #$product[productcode]";

hth
__________________
ex x-cart guru
Reply With Quote