Search by SKU/Product code in quick search - 4.1.1
This will allow you to search by the sku in the search box on the home page, it seems pretty stupid that this is not enabled anyways in xcart.
In search.php Add: Code:
"by_sku", Anywhere between "substring", and "manufacturers"); Code:
$allowable_search_fields = array ( In skin1/customer/search.tpl Add: Code:
<input type="hidden" name="posted_data[by_sku]" value="Y" /> after Code:
<input type="hidden" name="posted_data[by_fulldescr]" value="Y" /> In skin1/customer/main/search_result.tpl Add: Code:
searchform_def[9] = new Array('posted_data[by_sku]', true); after: Code:
searchform_def[8] = new Array('posted_data[weight_min]', '{$zero}'); |
Maybe my version is different; I can't find the code referenced in search.php or skin1/customer/main/search_result.tpl
:?: |
Quote:
|
Works great in 4.1.0. Thanks for sharing the code. Can't believe this is not there be default.
Thanks again! |
Re: Search by SKU/Product code in quick search - 4.1.1
Quote:
Did you go through the ftp or through the xcart admin. You won't be able to find the files only using admin, you can find them easily through ftp. Vulcan THANKS THANKS THANKS THANKS so much!! |
Re: Search by SKU/Product code in quick search - 4.1.1
Quote:
ya the php files have to be done through ftp/ssh...xcart admin should let us edit php files to! lol |
All times are GMT -8. The time now is 04:54 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.