Thread: Instant Search

Page 1 of 2 12 LastLast
Results 1 to 10 of 225

Hybrid View

  1. #1
    Join Date
    Nov 2011
    Posts
    34
    Plugin Contributions
    1

    Default Instant Search

    Instant Search v1.0.0
    Just like googles instant search feature I’ve made one for zencart. Instant search is a new search enhancement that shows results as you type.

    Tried and tested and works on all major browsers including smart phones.

    Here's the download link:
    https://www.zen-cart.com/downloads.php?do=file&id=1336

  2. #2
    Join Date
    Dec 2011
    Posts
    19
    Plugin Contributions
    0

    Default Re: Instant Search

    Very nice contribution, thank you!
    One question for now: I noticed that the results for products include out of stock or disabled products.
    I tried this on 1.39h, thanks again for simple installation and details readme!

  3. #3
    Join Date
    Nov 2011
    Posts
    34
    Plugin Contributions
    1

    Default Re: Instant Search

    To ignore disabled or zero stock items replace:

    $sqlProduct = "SELECT products_name, products_id
    FROM " . TABLE_PRODUCTS_DESCRIPTION . "
    WHERE (products_name LIKE :wordSearchPlus:)
    OR (LEFT(products_name,LENGTH(:wordSearch:)) SOUNDS LIKE :wordSearch:)
    ORDER BY
    field(LEFT(products_name,LENGTH(:wordSearch:)), :wordSearch:) DESC,
    products_viewed DESC
    LIMIT 2";


    With this:

    $sqlProduct = "SELECT " . TABLE_PRODUCTS_DESCRIPTION . ".products_name, " . TABLE_PRODUCTS_DESCRIPTION . ".products_id, " . TABLE_PRODUCTS . ".products_status
    FROM " . TABLE_PRODUCTS_DESCRIPTION . ", " . TABLE_PRODUCTS . "
    WHERE " . TABLE_PRODUCTS . ".products_id = " . TABLE_PRODUCTS_DESCRIPTION . ".products_id
    AND " . TABLE_PRODUCTS . ".products_status <> 0
    AND ((products_name LIKE :wordSearchPlus:) OR (LEFT(" . TABLE_PRODUCTS_DESCRIPTION . ".products_name,LENGTH(:wordSearch:)) SOUNDS LIKE :wordSearch:))
    ORDER BY
    field(LEFT(" . TABLE_PRODUCTS_DESCRIPTION . ".products_name,LENGTH(:wordSearch:)), :wordSearch:) DESC,
    " . TABLE_PRODUCTS_DESCRIPTION . ".products_viewed DESC
    LIMIT 2";

  4. #4
    Join Date
    Dec 2011
    Posts
    19
    Plugin Contributions
    0

    Default Re: Instant Search

    That fixed it, thanks!

  5. #5
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,637
    Plugin Contributions
    30

    Default Re: Instant Search

    Great effort, well done!

    In case anyone else is fiddling with it like me, to avoid duplicated effort I've already done this:

    1) Added support for multiple languages.
    2) The created category link did not use the full path: necessary when categories are nested.
    3) Added user-defined variables into code to define the number of results returned and switching on/off products and/or categories and category count.
    4) Tidied up sql.
    4) Changed names of jscript and ccs files and thereby removed the need for jscript .php
    5) CSS for IE7: still on this one.

    I'm looking at formatting the results more...

    regards
    Steve
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  6. #6
    Join Date
    Jul 2011
    Location
    Oregon
    Posts
    16
    Plugin Contributions
    0

    Default Re: Instant Search

    Have you submitted your revisions so that they are included with AyoobG add-on download?

    I fetched the files as currently posted on Zen Cart's Add-On page, but the readme does not include any of your modifications.

  7. #7
    Join Date
    Jun 2012
    Posts
    94
    Plugin Contributions
    0

    Default Re: Instant Search

    Quote Originally Posted by AyoobG View Post
    Instant Search v1.0.0
    Just like googles instant search feature I’ve made one for zencart. Instant search is a new search enhancement that shows results as you type.

    Tried and tested and works on all major browsers including smart phones.

    Check out the addon section. http://www.zen-cart.com/index.php?ma...oducts_id=2032
    WOW! Thank you, I love this module. Very nice

  8. #8
    Join Date
    Oct 2014
    Location
    Ontario, Canada
    Posts
    2
    Plugin Contributions
    0

    Default Re: Instant Search

    Does this work on ZanCart version 1.5.1?

  9. #9
    Join Date
    Jul 2010
    Location
    L'Aquila
    Posts
    113
    Plugin Contributions
    1

    Default Instant Search with images

    Hi all, I was trying to run instant search, adding a query that also appear the image of the product, there is someone who knows how to retrieve from the database query right? Thank You

  10. #10
    Join Date
    May 2015
    Posts
    1
    Plugin Contributions
    0

    Default Re: Instant Search with images

    Hi!
    Can someone help me?
    If there is only one product in the search result i would like to redirect the customer to the product page.
    How can i do this?

 

 
Page 1 of 2 12 LastLast

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR