Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2011
    Posts
    138
    Plugin Contributions
    0

    Default Does the search feature query products_model?

    I am upgrading from 1.3.9h in which using the search feature returns results based on a products_model search. I don't remember making any code change to achieve this. In 1.5.5, I'm not getting any results. It appears I should get results after looking at /includes/modules/pages/advanced_search_result/header_php.php

    What could I be missing have 0 results? products_model is populated in the database.

    Thanks
    ZC 1.5.5
    Add ons: - Column/Grid 1.3.8 - Dual pricing 1.7 - ImageHandler3

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Does the search feature query products_model?

    Does the search feature query products_model?
    Yes. As you can see on line 310 of advanced_search_result/header_php.php:
    Code:
            $where_str .= "(pd.products_name LIKE '%:keywords%'
                                             OR p.products_model
                                             LIKE '%:keywords%'
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Does the search feature query products_model?

    Do you have model turned off in your Admin?
    Admin->Configuration->Product Listing->Display Product Model ... must be set to a non-zero number to display the model in the results. But this doesn't affect the actual search.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jul 2011
    Posts
    138
    Plugin Contributions
    0

    Default Re: Does the search feature query products_model?

    Thank you for confirming DrByte. I do have Admin->Configuration->Product Listing->Display Product Model = 1 . The search feature does return results based on products_name but not products_model. Maybe there is a breakdown in the template being used, but I haven't stumbled across it yet.
    ZC 1.5.5
    Add ons: - Column/Grid 1.3.8 - Dual pricing 1.7 - ImageHandler3

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,684
    Plugin Contributions
    11

    Default Re: Does the search feature query products_model?

    You're making a big jump starting at 1.3.9h. Are you using an "autoinstaller" or following https://www.zen-cart.com/entry.php?3...d-of-upgrading
    So-called auto-installers are not reliable.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  6. #6
    Join Date
    Jul 2011
    Posts
    138
    Plugin Contributions
    0

    Default Re: Does the search feature query products_model?

    Thanks for the input dbltoe. I have someone that seems to contribute quite a bit on here and that I suspect you all would likely say is competent handling the upgrade therefore I don't know how they are going about it.
    ZC 1.5.5
    Add ons: - Column/Grid 1.3.8 - Dual pricing 1.7 - ImageHandler3

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Does the search feature query products_model?

    Quote Originally Posted by idc1 View Post
    Thanks for the input dbltoe. I have someone that seems to contribute quite a bit on here and that I suspect you all would likely say is competent handling the upgrade therefore I don't know how they are going about it.
    I'm sure that if they're stuck they can post more details about what's actually happening in the page, if they wish some additional assistance in sorting out why it's not working on your site for some unusual reason.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Add the products_model to the search results page
    By mars22 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Dec 2010, 10:32 PM
  2. Search Feature on Home Page Does Not Work
    By Jay Racing in forum General Questions
    Replies: 2
    Last Post: 30 Jun 2010, 01:04 PM
  3. Maintaining the user's search query in the advanced search box?
    By arniesbarmyarmy in forum General Questions
    Replies: 0
    Last Post: 26 Feb 2010, 01:27 PM
  4. Can I just use the product search feature? If so how?
    By pap74 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Feb 2008, 05:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg