Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8305835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:12:27+00:00 2026-06-08T18:12:27+00:00

Under the Magento admin menu Customers -> Manage Customers, we’re unable to search for

  • 0

Under the Magento admin menu Customers -> Manage Customers, we’re unable to search for a customer using his name if the string consists of more than one word. Where would I find the core codes that performs this task? We don’t have an extension for this section.

Example of the problem:

If I want to search for a customer named John Smith, searching for “john smith” returns no results. Searching for “john” or “smith” separately works, but it will bring up any names that contain “john” or “smith” similar to the SQL queries, LIKE %john% or LIKE %smith%.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:12:29+00:00Added an answer on June 8, 2026 at 6:12 pm

    Looks like you’re using Magento version 1.6

    It is a bug and has been fixed in 1.7

    Here’s the code that need to be modified: app/code/core/Mage/Customer/Model/Resource/Customer/Collection.php

    I post the code taken from version 1.7:

    Mage_Customer_Model_Resource_Customer_Collection    
    
        public function addNameToSelect()
        {
            $fields = array();
            $customerAccount = Mage::getConfig()->getFieldset('customer_account');
            foreach ($customerAccount as $code => $node) {
                if ($node->is('name')) {
                    $fields[$code] = $code;
                }
            }
    
            $adapter = $this->getConnection();
            $concatenate = array();
            if (isset($fields['prefix'])) {
                $concatenate[] = $adapter->getCheckSql(
                    '{{prefix}} IS NOT NULL AND {{prefix}} != \'\'',
                    $adapter->getConcatSql(array('LTRIM(RTRIM({{prefix}}))', '\' \'')),
                    '\'\'');
            }
            $concatenate[] = 'LTRIM(RTRIM({{firstname}}))';
            $concatenate[] = '\' \'';
            if (isset($fields['middlename'])) {
                $concatenate[] = $adapter->getCheckSql(
                    '{{middlename}} IS NOT NULL AND {{middlename}} != \'\'',
                    $adapter->getConcatSql(array('LTRIM(RTRIM({{middlename}}))', '\' \'')),
                    '\'\'');
            }
            $concatenate[] = 'LTRIM(RTRIM({{lastname}}))';
            if (isset($fields['suffix'])) {
                $concatenate[] = $adapter
                        ->getCheckSql('{{suffix}} IS NOT NULL AND {{suffix}} != \'\'',
                    $adapter->getConcatSql(array('\' \'', 'LTRIM(RTRIM({{suffix}}))')),
                    '\'\'');
            }
    
            $nameExpr = $adapter->getConcatSql($concatenate);
    
            $this->addExpressionAttributeToSelect('name', $nameExpr, $fields);
    
            return $this;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Magento and have a category under the ID 99 . I
i want to speed up magento with apc under windows i'm using xampp 3.1.0
I'm using Magento 1.6. I've created my own theme (mytheme) under base. So my
The way I am using Magento is like this: We are using Magento admin/dashboard
In the Magento admin under Cache Management, what does it mean when it shows
I have set up a custom theme in Magento admin panel under Design tab
I have developed a new custom extension for magento admin section. Main menu option
I have a question regarding the Magento options found under: Admin Panel -> System
The following code runs fine under Magento 1.6 but raises a Mage_Core_Exception (message: 'Cannot
Under Ubuntu 10, I installed using: npm install js2coffee Seems to install smoothly I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.