| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Product Search | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I think this should be a pretty straight forward modification...
I would like to know if there is a way to change the default product search from "any words" to "all words" I'm using X-Cart Business 5.2.13
__________________
/razorblade pro/ v 5.2.21 linux 2.2.29 |
|||||||||
#2
|
|||||||
|
|||||||
![]() cloud search will be the best solution for you: http://www.x-cart.com/extensions/addons/cloudsearch.html
it uses intelligent search
__________________
Sincerely yours, Max Vydrin |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Quote:
Thank you but we had Cloud Search enabled until we hit the "free" limit. And even then the results weren't all that great. I would much rather not pay an exorbitant monthly fee for something that should be easily tweaked out of the box. Can you tell me how to change the default search from "any words" to "all words" ?
__________________
/razorblade pro/ v 5.2.21 linux 2.2.29 |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Hi there.
Open /classes/XLite/View/Form/Product/Search/Customer/SimpleForm.php, find this code Code:
Code:
Of course, any code changes should be implemented as a module in order to keep them intact during upgrades
__________________
Best regards, Igor Pudovkin X-Cart hosting team |
|||||||||
|
#5
|
|||||||||
|
|||||||||
![]() Quote:
That actually reminds me; I have a question about creating modules. I have seen the instructions for creating empty modules. Can one empty module contain any and all specific mods I make to our xcart? Like, in one module - I have some CSS changes as well as this particular search customization? Or do I have to create new modules for everything? Also, how does this ensure they will be maintained during upgrades?
__________________
/razorblade pro/ v 5.2.21 linux 2.2.29 |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() You may put as many features into a single module as you want.
However, the more complex your module is, the harder it will be for you to keep it compatible with newer X-Cart versions. When adapting a module having a lot of features mixed in to a new X-Cart version, fixing one thing may break another one. If you think the change that you are working on can be useful for other users/stores, it makes sense to wrap it up into its own module. You can even submit the module to our marketplace later.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful ![]() Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#7
|
|||||||
|
|||||||
![]() So how would I create a module for this specific search change function?
__________________
X-Cart Business 5.4.1.29 |
|||||||
#8
|
|||||||||
|
|||||||||
![]() Please refer to the documentation for developers - it explains how you can create your custom modules:
http://kb.x-cart.com/ What you are to do is create a custom module that decorates the \XLite\View\Form\Product\Search\Customer\SimpleFor m class and tweaks the getDefaultParams() method as Igor advised: https://forum.x-cart.com/showpost.php?p=395690&postcount=4
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful ![]() Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#9
|
|||||||
|
|||||||
![]() Quote:
I saw his post above, but thank you for linking it here. So, I just "decorate" it? Awesome. Whatever that means. Thanks for your help Alex
__________________
X-Cart Business 5.4.1.29 |
|||||||
#10
|
|||||||||
|
|||||||||
![]() Did you check the http://kb.x-cart.com/ link that I posted too?
This documentation for developers explains a lot of things including what "decorate" means. For instance, check this article: http://kb.x-cart.com/display/XDD/Adding+CSS+and+JS+files+for+Mobile+Skin
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful ![]() Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
|||
X-Cart forums © 2001-2020
|