I am having some trouble with Magento admin product search! Basically I need the following:
If a product name is "Microsoft Wireless Mouse and Keyboard" and a user types into the admin manage products screen "wireless keyboard" then I want that product to appear. At the moment, unless I type two words, exactly in the order they appear (e.g "wireless mouse"), I do not get the search results.
I have tried setting Magento Catalog settings to Like, Fulltext and Combine, and all result in the exact same results. I have cleared Cache and Reindexed after changing each result, and they have not effect on how the search works.
I am running Magento 1.9.2 and running the VES Superstore theme.
Any advice on which file I can override and change the MySql query in to do what I need?
Thanks
答案 0 :(得分:0)
在#!/usr/bin/perl
use Net::SMTP::TLS;
use 5.010;
my $mailer = new Net::SMTP::TLS(
'smtp.mail.yahoo.com',
Hello => 'smtp.mail.yahoo.com',
Port => 587,
User => 'someEmail@yahoo.com',
Password=> 'password');
$mailer->mail('someEmail@yahoo.com');
$mailer->to('someEmail@yahoo.com');
$mailer->data();
$mailer->datasend("From: someEmail@yahoo.com\n");
$mailer->datasend("To: someEmail@yahoo.com\n");
$mailer->datasend("Subject: test&test\n");
$mailer->datasend("Content-type: text/html\n\n");
$mailer->datasend("\n");
$mailer->datasend"test test ste tset\n");
$mailer->dataend();
$mailer->quit;
下,您会找到全局管理搜索的已定义模型。
如果你通过控制器/app/code/core/Mage/Adminhtml/etc/config.xml
方法/app/code/core/Mage/Adminhtml/controllers/IndexController.php
,你会发现Magento读取配置并在它们上循环,在每个模块上应用搜索,然后合并整个结果。
由于您正在寻找具体搜索产品的位置,因此它位于globalSearchAction
查询如下:
/app/code/core/Mage/Adminhtml/Model/Search/Catalog.php
答案 1 :(得分:0)