Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2008
    Posts
    274
    Plugin Contributions
    0

    Default Search sidebox problem

    Hello my search sidebox works perfectly fine when I use the stock template, but as soon as I switch to a new template it stops working. I'm sure I just need to edit something but I can't figure it out

    Here is the site
    http://itsapersonalgiftthing.com/car...ain_page=index

    thanks

  2. #2
    Join Date
    Oct 2006
    Posts
    624
    Plugin Contributions
    0

    Default Re: Search sidebox problem

    I'm afraid I'm not sure exactly what you mean from your problem description.

    I performed a search and saw a few words with capital letters and underscores. If that is what you mean by your problem, then it is due to your PHP defines not being setup correctly in your overrides.

    To fix the problem, look at these two Tutorial/FAQ articles:

    Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
    Printed book: www.lulu.com/content/10576284
    Electronic book and Errata: www.cucumbermedia.com/store

  3. #3
    Join Date
    Aug 2008
    Posts
    274
    Plugin Contributions
    0

    Default Re: Search sidebox problem

    Thanks for the reply, it is a very weird problem since it works with the default template but as soon as I switch it to my custom template it stops working.

    I did search the toolkit earlier and found that the only file that contains that text is in my cart/includes/templates/iC_AthemeV1.3/templates/tpl_advanced_search_result_default.php


    The code in that file is below. I am a pretty experienced designer (I thought) and I have no idea why I am getting this error or what to do next. Please help I need to have a search function on this site.

    <?php
    /**
    * Page Template
    *
    * Loaded automatically by index.php?main_page=advanced_search_result.<br />
    * Displays results of advanced search
    *
    * @package templateSystem
    * @copyright Copyright 2003-2005 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_advanced_search_result_default.php 4182 2006-08-21 02:11:37Z ajeh $
    * Included changes for advanced_search_plus v1.0 by iniebla 2009-10-30 00:00:00
    */
    ?>
    <div class="centerColumn" id="advSearchResultsDefault">

    <h1 id="advSearchResultsDefaultHeading"><?php echo HEADING_TITLE; ?></h1>

    <?php

    //================================ Begin of Advanced Search Plus
    if ($found_products_ad == true) {
    //================================ En of Advanced Search Plus

    if ($do_filter_list || PRODUCT_LIST_ALPHA_SORTER == 'true') {
    // $form = zen_draw_form('filter', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT), 'get') . '<label class="inputLabel">' .TEXT_SHOW . '</label>';
    $form = zen_draw_form('filter', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT), 'get');
    ?>
    <?php echo $form; ?>
    <?php
    echo zen_hide_session_id();

    /* Re-Get all GET'ed variables */
    $hidden_get_variables = '';
    reset($_GET);
    while (list($key, $value) = each($_GET)) {
    if ( ($key != 'currency') && ($key != zen_session_name()) && ($key != 'x') && ($key != 'y') ) {
    $hidden_get_variables .= zen_draw_hidden_field($key, $value);
    }
    }
    echo $hidden_get_variables;

    require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_PRODUCT_LISTING_ALPHA_SORTER));
    ?>
    </form>
    <?php
    }
    ?>
    <?php
    /**
    * Used to collate and display products from advanced search results
    */
    require($template->get_template_dir('tpl_modules_product_listing.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_product_listing.php');
    ?>

    <?php
    //================================ Begin of Advanced Search Plus
    } else {
    echo TEXT_DISPLAY_NOT_FOUND_IN_PRODUCTS. "<br> \n";
    }

    if ($found_categories) {
    //Retrieve $list_box_contents to be used on required modules
    $list_box_contents = $list_box_contents_cat;
    require($template->get_template_dir('tpl_modules_advanced_search_categories.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_advanced_search_categories.php');

    } else {
    echo TEXT_DISPLAY_NOT_FOUND_IN_CATEGORIES. "<br> \n";
    }

    if ($found_ezpages) {
    require($template->get_template_dir('tpl_modules_advanced_search_ezpages.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_advanced_search_ezpages.php');

    } else {
    echo TEXT_DISPLAY_NOT_FOUND_IN_EZPAGES." <br> \n";
    }
    //=============================== En of Advanced Search Plus
    ?>
    <div class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_ADVANCED_SEARCH, zen_get_all_get_params(array('sort', 'page', 'x', 'y')), 'NONSSL', true, false) . '">' . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>

    </div>

  4. #4
    Join Date
    Oct 2006
    Posts
    624
    Plugin Contributions
    0

    Default Re: Search sidebox problem

    From the code you posted, it seems like you have a mod (i.e. Advanced Search Plus) that is wrongly or not installed at all which is causing the problems you mentioned.

    If you suspect its a problem with the template itself. It would be best to post in a support thread for the template so the template author has a chance to review the code. It would also help others with similar template problems as well.
    Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
    Printed book: www.lulu.com/content/10576284
    Electronic book and Errata: www.cucumbermedia.com/store

 

 

Similar Threads

  1. v150 padlock on login broken, because of header search and sidebox search. Any fix?
    By zenartman in forum Customization from the Admin
    Replies: 6
    Last Post: 11 Apr 2015, 06:30 AM
  2. Replies: 2
    Last Post: 2 Feb 2010, 11:48 AM
  3. Question about search sidebox and search header
    By jenzi in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Sep 2008, 06:47 AM
  4. Search Field Problem In Sidebox
    By enchantedlingerie in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 Feb 2007, 07:02 PM
  5. problem with search sidebox
    By sospcshop in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 12 Oct 2006, 08:07 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