Thread: Instant Search

Results 1 to 10 of 249

Hybrid View

  1. #1
    Join Date
    Aug 2012
    Posts
    331
    Plugin Contributions
    0

    Default Re: Instant Search

    Nice mod!

    installed on shop running 1.5.0 today!

    just one question, i have a bilingual shop but instant search results appear in both languages anyway to avoid it?

    Thanks

  2. #2
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    280
    Plugin Contributions
    0

    Default Re: Instant Search

    Hey gang,

    Can I get a bit of help so the results also adds the model number to the right of the product name?

    thanks in advance
    Jeff Michaels,
    pres of Musical Creations Ltd.

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

    Default Re: Instant Search

    From very briefly looking at the searches.php, I'm guessing the following two tiny updates would do that:
    line 49
    Code:
        $sqlProduct = "SELECT " . TABLE_PRODUCTS_DESCRIPTION . ".products_name, " . TABLE_PRODUCTS_DESCRIPTION . ".products_id, " . TABLE_PRODUCTS . ".products_status, " . TABLE_PRODUCTS . ".products_model
    and line 70
    Code:
            $prodResult = strip_tags($dbProducts->fields['products_name'] . ' [' . $dbProducts->fields['products_model'] . ']');
    .

    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
    Aug 2006
    Location
    North Carolina
    Posts
    280
    Plugin Contributions
    0

    Default Re: Instant Search

    thanks for jumping in Dr Byte, but this breaks the code result. The plugin no longer functions.
    Jeff Michaels,
    pres of Musical Creations Ltd.

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

    Default Re: Instant Search

    Are you sure you didn't miss a . or , or ' or " or ) or ] ? I can't see any syntax errors.
    (And sometimes copy+paste might introduce weird characters etc)

    Anything in debug logs? http://www.zen-cart.com/content.php?124-blank-page
    .

    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.

  6. #6
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    280
    Plugin Contributions
    0

    Default Re: Instant Search

    This time I only inserted the part you had above in Red and it did indeed work correctly :-) Previously, I just copied your entire code over the older code and nada. Hmm.... Thanks again. Now I can play with the look and feel of it.
    Jeff Michaels,
    pres of Musical Creations Ltd.

  7. #7
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    280
    Plugin Contributions
    0

    Default Re: Instant Search

    OK, I got it almost showing like I want. Just 2 more small things.

    1 - How can I avoid it from displaying only all lower case?

    2 - I chose to add the Products_description field instead of code too (which I now got working fine), but on the standard Advanced Search result page, I have line breaks (or returns- not sure) for this field and it displays a space just fine instead of a line break. But in the Instant Search it's removed and doesn't have that space anymore. The end of the original line 1 and the start of line 2 are butted up against each other. Can the space appear again? OR can a standard line break work like normal for the remaining text similar to the product INFO page?

    Here's how Advanced search displays this song:
    http://store2.musicalcreations.com/i...148008&x=0&y=0

    Then in my search, type in: I Knew You Were Trouble
    and you will see the T in Swift and the K in Key are connected with no space.
    Jeff Michaels,
    pres of Musical Creations Ltd.

  8. #8
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    280
    Plugin Contributions
    0

    Default Re: Instant Search

    1 - I found a way to modify the original text in the products_description field to fix my problem above and have it look proper throughout the search results.
    Changed: <br />
    to: 'space'<br />•'space'

    Previous look: in the style of: BEYONCEKey: B - Time: 1:30
    New look: in the style of: BEYONCE • Key: B - Time: 1:30

    I didn't need to insert the other code you sent for this. I couldn't get it to work well, so I did a mySQL replace for this new modification of the field instead.

    2 - The code you gave me for removing the lowercase only display works PERFECT!!

    thanks so much once again.

    I'm almost ready to go LIVE with the new site now...
    Jeff Michaels,
    pres of Musical Creations Ltd.

  9. #9

    Default Re: Instant Search

    Hello, sorry for my bad english..but i'm italian..
    I have found a problem in the mod...
    I have many products that the name is "pistone.....and other word...". if you write "piston" in search you can see only 2 results...why?
    My site is www.avotecnica.com thanks...

 

 

Similar Threads

  1. Instant Quote
    By Congerman in forum General Questions
    Replies: 2
    Last Post: 15 Aug 2012, 12:29 PM
  2. Instant Coupon
    By Mickmo68 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 22 Dec 2008, 08:19 PM
  3. Instant Delivery?
    By eaglewu in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 Jul 2007, 09:30 AM
  4. changes instant
    By chufty bill in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Sep 2006, 07:12 PM

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