| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Search Modification | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Just a simple work around for when a customer searches for say laptops and you have loads of product defined as laptop computer. In this instance nothing would show in the results.
This strips the s of the end for the search: Add into customer/search.php below the: # # Perform SQL search query # if(!$substring) { $substring = $substring_sku; } bit. Code:
the searches for laptops will show up anything that is a laptop Obviously it doesn't only work for laptops ![]()
__________________
ex x-cart guru ![]() |
|||||||
#2
|
|||||||
|
|||||||
![]() ![]() I tried your suggested idea of getting rid of 's' at end of search words, but when I tried to edit the /customer/search.php file, I found strange rectangle symbols all over the place. It just looks a mess. Do you need a special editor? Regards Raj |
|||||||
#3
|
|||||||
|
|||||||
![]() what were you editting it in?
__________________
ex x-cart guru ![]() |
|||||||
#4
|
|||||||
|
|||||||
![]() I'm using the standard editor that comes with WS_FTP.
It seems to run notepad.exe. Is there a better editor available? |
|||||||
#5
|
|||||||
|
|||||||
![]() Try opening it up in Notepad or Dreamweaver or ultraedit and it should be fine.
__________________
ex x-cart guru ![]() |
|||||||
#6
|
|||||||
|
|||||||
![]() ![]() I was doing a binary transfer of the PHP files and hence the squares & strange symbols. Thanks for your help. |
|||||||
#7
|
|||||||
|
|||||||
![]() ahhh.. I should have spotted that aswell
![]()
__________________
ex x-cart guru ![]() |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|