Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1

    Default Altering Search sidebox to work with EZ pages only

    I want to use EZ pages for help related topics only, I would like to create a sidebox that will allow customers to search for help related topics.

    Is it possible to modify the search sidebox for Zen-cart to work with EZ pages only and if so how?
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

  2. #2

    Default Re: Altering Search sidebox to work with EZ pages only

    I think that this would be a great addition to EZ pages, any suggestions?
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

  3. #3

    Default Re: Altering Search sidebox to work with EZ pages only

    Here is the Search box tpl_search.php file:

    <?php
    /**
    * Side Box Template
    *
    * @package templateSystem
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: tpl_search.php 4142 2006-08-15 04:32:54Z drbyte $
    */
    $content = "";
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
    $content .= zen_draw_form('quick_find', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');
    $content .= zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT);
    $content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();

    if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
    $content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px"') . '<br />' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
    $content .= '<br /><a href="' . zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a>';
    } else {
    $content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . '<br /><input type="submit" value="' . HEADER_SEARCH_BUTTON . '" style="width: 50px" />';
    $content .= '<br /><a href="' . zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a>';
    }

    $content .= "</form>";
    $content .= '</div>';
    ?>
    I don't quite get how the search function works, but I am wondering if the line highlighted in red above can be altered to get this effect.
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

  4. #4

    Default Re: Altering Search sidebox to work with EZ pages only

    I am still interested in figuring out how to modify the default sidebox to search for words or phrases found in EZ pages only.
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

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

    Default Re: Altering Search sidebox to work with EZ pages only

    At the present time, the site-search only does a search on products.
    If you want a search option for EZ-Pages, you'll have to write one.
    .

    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

    Default Re: Altering Search sidebox to work with EZ pages only

    Quote Originally Posted by DrByte View Post
    At the present time, the site-search only does a search on products.
    If you want a search option for EZ-Pages, you'll have to write one.
    I am not a coder, and was hoping for a work around.
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

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

    Default Re: Altering Search sidebox to work with EZ pages only

    I integrated a 3rd party search engine into my site. The search engine uses a spider to crawl the site, and content can be divided into categories such as products, info... - anything you want. It is not a simple set up, but if anyone is interested I can try to gather all the material and post it.

    See my site here:

    http://www.teafromtaiwan.com

    Search box is in the right column.

  8. #8

    Default Re: Altering Search sidebox to work with EZ pages only

    If you can get it to work with EZ populate only, that would be cool.
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

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

    Default Re: Altering Search sidebox to work with EZ pages only

    Quote Originally Posted by ctcentralinfo View Post
    If you can get it to work with EZ populate only, that would be cool.
    You have to "train" the search engine - once the site is spidered you can include and exclude any content you like.

  10. #10

    Default Re: Altering Search sidebox to work with EZ pages only

    Quote Originally Posted by paul3648 View Post
    You have to "train" the search engine - once the site is spidered you can include and exclude any content you like.
    How do I go about doing that? Could I get your mod?
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Can I make the Search Sidebox Search the Titles Only ?
    By milobloom in forum General Questions
    Replies: 4
    Last Post: 30 Apr 2011, 06:20 AM
  2. Sidebox on Checkout Pages Only
    By DesignBloke in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Jan 2010, 03:54 PM
  3. Altering the Information Sidebox
    By igendreau in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 7 Oct 2009, 06:02 PM
  4. Ultimate SEO URLs Does Not Work with Categories with Only One Product
    By hossbronco in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 17 Oct 2008, 04:03 AM
  5. EZ pages sidebox exclusion doesn't seem to work
    By ctcentralinfo in forum Templates, Stylesheets, Page Layout
    Replies: 29
    Last Post: 4 Aug 2008, 11: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