Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Mar 2007
    Location
    Taiwan
    Posts
    241
    Plugin Contributions
    0

    Default Integrating 3rd party search engine

    The ZC search function is not great for my site because it only searches products. My site is light on products and heavy on articles.

    So...I would like to know if it's feasible to integrate a 3rd party search engine that uses a spider to search and index the entire site. The search results page is a php file with a single php include command.

    I've seen a few workarounds for integrating php code in ZC pages, so it seems to be technically possible, but are there are security or other reasons why I should not attempt to do this?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Integrating 3rd party search engine

    As the pages perse' do not exist until they are assembled for the DB data I doubt that a search engine can locate what you are trying to do
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2007
    Location
    Taiwan
    Posts
    241
    Plugin Contributions
    0

    Default Re: Integrating 3rd party search engine

    Quote Originally Posted by kobra View Post
    As the pages perse' do not exist until they are assembled for the DB data I doubt that a search engine can locate what you are trying to do
    The pages are indexed with a spider - it sees and indexes pages exactly as a search engine like Google.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Integrating 3rd party search engine

    If your 3rd party engine does this, then try using it.
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Mar 2007
    Location
    Taiwan
    Posts
    241
    Plugin Contributions
    0

    Default include files in header of one page

    This is coming along great, but I have last problem:

    The search engine requires two files to be included in header of the search result page.

    For testing purposes I've put these files in the includes/application_top.php file:

    include('os2/config.php');
    include('os2/head.php');

    This works, except I get an error on the home page.

    How do I include these files on only the search results page?

    The search results page was created according to the about us page contribution and is called search_return.
    Last edited by paul3648; 9 May 2007 at 06:01 AM. Reason: clarification

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

    Default Re: Integrating 3rd party search engine

    try using the header_php.php file in your 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.

  7. #7
    Join Date
    Mar 2007
    Location
    Taiwan
    Posts
    241
    Plugin Contributions
    0

    Default Re: Integrating 3rd party search engine

    Quote Originally Posted by DrByte View Post
    try using the header_php.php file in your page.
    When I do that I get a huge number of errors whenever I call the search_return page.

    The first error is this:

    Notice: Undefined variable: this_is_main_page in /home/teagen/public_html/newtest/includes/templates/template_default/common/tpl_main_page.php on line 51
    I guess what I'm trying to do is beyond my limited (non-existent) programming skills.

    Too bad, because it was almost there when I used the includes/application_top.php file.

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

    Default Re: Integrating 3rd party search engine

    What's in the files?
    .

    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.

  9. #9
    Join Date
    Mar 2007
    Location
    Taiwan
    Posts
    241
    Plugin Contributions
    0

    Default Re: Integrating 3rd party search engine

    What's in the files?
    As far as I can tell, mostly database calls. I'm using a separate database from the ZC dB.

    I'm attaching the two files.
    Attached Files Attached Files

  10. #10
    Join Date
    Mar 2007
    Location
    Taiwan
    Posts
    241
    Plugin Contributions
    0

    Default Re: Integrating 3rd party search engine

    Quote Originally Posted by DrByte View Post
    try using the header_php.php file in your page.
    What does this file actually do? Does it insert data before the opening html tag?

    This is from the docs of the search engine I'm trying to use:

    First you should see that there are two included files right at
    the top of the page: "os2/config.php" and "os2/head.php". These files
    set up the environment and handle the search process, so they must be
    included in the results page *before* any HTML output. This means
    before the <html> tag, and before any other whitespace. Otherwise you
    will get many "Headers could not be sent" errors.
    So can I use the header_php.php file for this?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. 3rd Party API Help Required
    By coopco in forum General Questions
    Replies: 0
    Last Post: 19 Dec 2011, 12:02 PM
  2. 3rd Party Gateways & iFrames
    By wolff in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 5 Feb 2010, 07:47 PM
  3. gv discount in 3rd party payment module
    By kalleMD in forum General Questions
    Replies: 0
    Last Post: 14 Sep 2007, 08:42 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