Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2007
    Posts
    37
    Plugin Contributions
    0

    red flag Help with Search sidebox

    Help. I have enabled the seach box and instead of showing the text to enter keywords I get
    HEADER_SEARCH_DEFAULT_TEXT

    and on the Search button I have the same text appearing. How do I fix this please.

    Johanne

    if you would like to see my url is
    https:/www.horsemansshop.com.au

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Help with Seach sidebox

    This is usually the result of an incorrect edit in one of your language DEFINES.

    You need to find instances where HEADER_SEARCH_DEFAULT_TEXT appears in your language php files, and when I use ADMIN>>>TOOLS>>>DEVELOPERS TOOL KIT, I find it appears in TWO of my files.

    They are:-

    /includes/languages/english/header.php

    Line #28 : define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here');


    /includes/languages/english/your_template/header.php

    Line #28 : define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here');

    If you now call up your copies to see what's appearing in the text strings, you may find you (or someone) has deleted the single quote marks along with the text... eg:

    define('HEADER_SEARCH_DEFAULT_TEXT', );

    whereas (if you want no phrase to appear) it should be:

    define('HEADER_SEARCH_DEFAULT_TEXT', ' ');

    To fix, simply make sure your text phrase is between two single quote marks:-

    define('HEADER_SEARCH_DEFAULT_TEXT', 'Whatever text you want goes in here');

  3. #3
    Join Date
    Dec 2007
    Posts
    37
    Plugin Contributions
    0

    Default Re: Help with Seach sidebox

    Hi,

    I have looked as you suggested and this is what I have shown


    /var/www/sites/horsemansshop/horsemansshop.com.au/subdomains/www/html/shop/includes/languages/english/classic/header.php

    Line #28 : define('HEADER_SEARCH_DEFAULT_TEXT','Enter search keywords here');



    /var/www/sites/horsemansshop/horsemansshop.com.au/subdomains/www/html/shop/includes/languages/english/header.php

    Line #12 : /*define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here');*/?>



    /var/www/sites/horsemansshop/horsemansshop.com.au/subdomains/www/html/shop/includes/languages/english/rustic/header.php

    Line #28 : define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here');


    I havn't changed anything can you see what is wrong?

    Johanna

  4. #4
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Help with Search sidebox

    Below is a copy of my file :

    includes/languages/english/header.php

    PHP Code:
    <?php
    /**
     * @package languageDefines
     * @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: header.php 2940 2006-02-02 04:29:05Z drbyte $
     */

    // header text in includes/header.php
      
    define('HEADER_TITLE_CREATE_ACCOUNT''Create Account');
      
    define('HEADER_TITLE_MY_ACCOUNT''My Account');
      
    define('HEADER_TITLE_CART_CONTENTS''Shopping Cart');
      
    define('HEADER_TITLE_CHECKOUT''Checkout');
      
    define('HEADER_TITLE_TOP''Top');
      
    define('HEADER_TITLE_CATALOG''Home');
      
    define('HEADER_TITLE_LOGOFF''Log Out');
      
    define('HEADER_TITLE_LOGIN''Log In');

    // added defines for header alt and text
      
    define('HEADER_ALT_TEXT''Powered by Zen Cart :: The Art of E-Commerce');
      
    define('HEADER_SALES_TEXT''TagLine Here');
      
    define('HEADER_LOGO_WIDTH''192px');
      
    define('HEADER_LOGO_HEIGHT''64px');
      
    define('HEADER_LOGO_IMAGE''logo.gif');

    // header Search Button/Box Search Button
      
    define('HEADER_SEARCH_BUTTON','Search');
      
    define('HEADER_SEARCH_DEFAULT_TEXT''Enter search keywords here');

    ?>
    For some reason, you've got:-

    /*define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here');*/?>

    Not sure why an attempt has been made to comment out the line - and besides, this is not how tyou comment out a line in PHP - but is the method for CSS.

 

 

Similar Threads

  1. v151 Need help fixing this sidebox search code from 'double submitting' the search.
    By jeffmic in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 28 Jul 2013, 01:54 AM
  2. Pop-up Help For Sidebox Search
    By Donn in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Jun 2009, 07:58 PM
  3. Help! Advanced Search in Sidebox problems
    By kiwiacw in forum Addon Sideboxes
    Replies: 1
    Last Post: 31 Jan 2008, 09:41 AM
  4. Need to put "search help?" into the search sidebox
    By jeffmic in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 30 Nov 2006, 11:32 AM
  5. problem with search sidebox
    By sospcshop in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 12 Oct 2006, 08:07 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