This is a great mod!!!!
Xcart should take note and realize this should be standard operating procedure.
The mod does lack one thing. It will not bring up "variant skus" When using product variants, those skus don't work. No fear, I have an adjustment for the original poster.
include/search.php
After:
Code:
if (!empty($data["by_fulldescr"]))
$condition[] = "$sql_tbl[products].fulldescr LIKE '%".$data["substring"]."%'";
Add:
Code:
if (!empty($data["by_productcode"])){
$condition[] = "$sql_tbl[products].productcode LIKE '%".$data["substring"]."%'";
if(!empty($active_modules['Product_Options'])) {
$condition[] = "$sql_tbl[variants].productcode LIKE '%".$data["substring"]."%'";
}
}
And all is peaceful in Xcart land once again
