Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2006
    Posts
    65
    Plugin Contributions
    0

    Default Search sidebox adds products to cart.

    I use the search sidebox on my site. If i perform a search from the sidebox while i'm currently displaying a product (tpl_product_info_display.php), the search will not proceed, instead the product i'm looking at will be added to my shopping cart.

    I kind remeber someone had a similar problem once, but now I can't find the thread. Is there a simple way around this? If not, can i simply just hide the search box once i'm displaying a product? Or lastly, can i choose to display a sidebox ONLY on the indexpage?

    /thanks

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Search sidebox adds products to cart.

    Sounds like you have a form tag out of place ...

    I cannot reproduce this error ...

    What version Zen Cart? Clean install or upgrade? If an upgrade from what version and how?

    If you switch to Classic does the same thing happen?

    Is there an URL where we can see this happen?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Mar 2006
    Posts
    65
    Plugin Contributions
    0

    Default Re: Search sidebox adds products to cart.

    This is the code for tpl_search.php


    ####################################################################################################__
    <?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') {
    } else {
    $content .= zen_draw_input_field('keyword', '', 'class="searchbox"' . ($column_width) . '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="image" src="graphic/button_search.gif"/><br><br><a href="index.php?main_page=advanced_search"><img src="graphic/avdsearch_text.gif"></a>';
    }

    $content .= "</form>";
    $content .= '</div>';
    ?>

    ####################################################################################################__


    See for yourself here ..

    http://www.gulare.com/shop/index.php...roducts_id=209

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Search sidebox adds products to cart.

    I cannot repeat the error ...

    I did a search for:
    boll

    worked fine for me ...

    Did you fix this?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Mar 2006
    Posts
    65
    Plugin Contributions
    0

    Default Re: Search sidebox adds products to cart.

    I've also tryed the search header and the advanced search sidebox mod. Same problem with them.

    You know if there's a way to avoid the sidebox from the displaying when tpl_product_info_display.php is open? I know my login/signup box disappears when i click on login or signup.

    At very least, does anybody know how to display a sidebox only on the indexpage?

 

 

Similar Threads

  1. My add to cart only adds one
    By Charlie57 in forum General Questions
    Replies: 18
    Last Post: 18 Jan 2014, 09:12 PM
  2. sidebox search that filters products according to size or color
    By BLACKWINGEDANGEL in forum General Questions
    Replies: 0
    Last Post: 27 Oct 2010, 12:16 PM
  3. Search for Products/Sizes from Sidebox???
    By rubbermike in forum Basic Configuration
    Replies: 6
    Last Post: 6 Nov 2009, 04:42 AM

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