Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Feb 2014
    Location
    The Netherlands
    Posts
    58
    Plugin Contributions
    0

    Default unable to change the 'Search' button name

    Hi guys,

    I have the following problem.

    I've recently added the Dutch language package to my ZenCart (v151) and everything seems to be in working order, with one exception. I can't change the 'Search' button name, no matter what I do.

    I've changed the definitions of all the 'Search' buttons I could find, including the English ones (just as a test), but no luck.

    Code:
    define('BOX_HEADING_SEARCH', 'Search'); in includes/languages/english.php
    define('BUTTON_SEARCH_ALT', 'Search'); in includes/languages/english/button_names.php
    define('HEADER_SEARCH_BUTTON','Search'); in /includes/languages/english/classic/header.php
    define('HEADER_SEARCH_BUTTON','Search'); in /includes/languages/english/header.php
    define('BUTTON_SEARCH_ALT', 'Search'); in /includes/languages/english/theme671/button_names.php
    define('HEADER_SEARCH_BUTTON','Search'); in /includes/languages/english/theme671/header.php
    Code:
    define('BOX_HEADING_SEARCH', 'Search'); in includes/languages/english.php
    define('BUTTON_SEARCH_ALT', 'Search'); in includes/languages/dutch/button_names.php
    define('HEADER_SEARCH_BUTTON','Search'); in /includes/languages/dutch/classic/header.php
    define('HEADER_SEARCH_BUTTON','Search'); in /includes/languages/dutch/header.php
    define('BUTTON_SEARCH_ALT', 'Search'); in /includes/languages/dutch/theme671/button_names.php
    define('HEADER_SEARCH_BUTTON','Search'); in /includes/languages/dutch/theme671/header.php
    Does anyone know what I might be doing wrong..?


  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: unable to change the 'Search' button name

    Quote Originally Posted by McLovin View Post
    Hi guys,

    I have the following problem.

    I've recently added the Dutch language package to my ZenCart (v151) and everything seems to be in working order, with one exception. I can't change the 'Search' button name, no matter what I do.

    I've changed the definitions of all the 'Search' buttons I could find, including the English ones (just as a test), but no luck.

    Code:
    define('BOX_HEADING_SEARCH', 'Search'); in includes/languages/english.php
    define('BUTTON_SEARCH_ALT', 'Search'); in includes/languages/english/button_names.php
    define('HEADER_SEARCH_BUTTON','Search'); in /includes/languages/english/classic/header.php
    define('HEADER_SEARCH_BUTTON','Search'); in /includes/languages/english/header.php
    define('BUTTON_SEARCH_ALT', 'Search'); in /includes/languages/english/theme671/button_names.php
    define('HEADER_SEARCH_BUTTON','Search'); in /includes/languages/english/theme671/header.php
    Code:
    define('BOX_HEADING_SEARCH', 'Search'); in includes/languages/english.php
    define('BUTTON_SEARCH_ALT', 'Search'); in includes/languages/dutch/button_names.php
    define('HEADER_SEARCH_BUTTON','Search'); in /includes/languages/dutch/classic/header.php
    define('HEADER_SEARCH_BUTTON','Search'); in /includes/languages/dutch/header.php
    define('BUTTON_SEARCH_ALT', 'Search'); in /includes/languages/dutch/theme671/button_names.php
    define('HEADER_SEARCH_BUTTON','Search'); in /includes/languages/dutch/theme671/header.php
    Does anyone know what I might be doing wrong..?

    Generally speaking best to follow the posting guidelines (ie. perhaps a link to the site or discussion that on a local server and none of it is available via the internet).

    Problem could be that the template is not using the language pack and is posting an image button that has the word(s) "search" in it. This might be possible to identify by looking at the webpage.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Feb 2014
    Location
    The Netherlands
    Posts
    58
    Plugin Contributions
    0

    Default Re: unable to change the 'Search' button name

    Sorry about that!

    This is the link to my website: www.bonesfashion***.nl (just remove the three asterisks).

    I forgot to mention that I had also inspected the code using Google Developers tools, but as far as I can see the element is CSS. This is what I got:

    Code:
    <input class="cssButton search" onmouseover="this.className='cssButtonHover search searchHover'" onmouseout="this.className='cssButton search'" type="submit" value="Zoek" style="width: 80px;">
    And on mouse over:

    Code:
    <input class="cssButtonHover search searchHover" onmouseover="this.className='cssButtonHover search searchHover'" onmouseout="this.className='cssButton search'" type="submit" value="Zoek" style="width: 80px;">
    I should probably also mention that I have the following packages installed:

    - Dutch language pack. I've updated version 1.5 to 1.5.1 using the method explained here http://www.zen-cart.com/wiki/index.p...er_translation (the language pack seems to be working fine).
    - CK Editor 4.12
    - A template.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default Re: unable to change the 'Search' button name

    Quote Originally Posted by McLovin View Post
    ... I should probably also mention that I have the following packages installed:

    - Dutch language pack. I've updated version 1.5 to 1.5.1 using the method explained here http://www.zen-cart.com/wiki/index.p...er_translation (the language pack seems to be working fine).
    - CK Editor 4.12
    - A template.
    And a Template Monster template at that. The SEARCH button is coming from the template's stylesheet_css_buttons.css (line 62) where a background image with the word SEARCH is superimposed on the text that's forced to a font-size of 0 (and gosh-knows what else).

  5. #5
    Join Date
    Feb 2014
    Location
    The Netherlands
    Posts
    58
    Plugin Contributions
    0

    Default Re: unable to change the 'Search' button name

    I see! Thanks a lot! I'll play with it to see if I can fix it.

    Are Template Monster templates bad by the way?

  6. #6
    Join Date
    Feb 2014
    Location
    The Netherlands
    Posts
    58
    Plugin Contributions
    0

    Default Re: unable to change the 'Search' button name

    OK, I've fixed it.

    It wasn't too difficult thankfully. I just commented out the background URL images and put the font size to 5 and I added a grey background color.

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default Re: unable to change the 'Search' button name

    Quote Originally Posted by McLovin View Post
    I see! Thanks a lot! I'll play with it to see if I can fix it.

    Are Template Monster templates bad by the way?
    Template Monster templates have the reputation of looking very pretty and functioning well until you attempt to add a plugin or make a "small" change (like you're doing). They have a tendency to re-craft many of the Zen Cart built-in functions and features (as you've found), making it difficult to change and/or debug.

  8. #8
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: unable to change the 'Search' button name

    Quote Originally Posted by lat9 View Post
    And a Template Monster template at that. The SEARCH button is coming from the template's stylesheet_css_buttons.css (line 62) where a background image with the word SEARCH is superimposed on the text that's forced to a font-size of 0 (and gosh-knows what else).
    What a STUPID LAZY method to add a custom search button..

    Quote Originally Posted by McLovin View Post
    I see! Thanks a lot! I'll play with it to see if I can fix it.

    Are Template Monster templates bad by the way?
    Ummmmmmm.... hmmm how do I put this...

    Template Monstrosity templates SUCK.. (in my humble opinion..)
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

Similar Threads

  1. v150 How do I change the title on search engines to my site name?
    By coucho in forum General Questions
    Replies: 1
    Last Post: 29 Jun 2012, 01:11 PM
  2. Want to Change Search Button In Search Box
    By vishalon in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Feb 2010, 07:19 AM
  3. how can I expand the width of the search field amd search button?
    By watzursn in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 29 Sep 2009, 09:22 PM
  4. How to change the search Button?
    By touchclothing in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 29 Jul 2009, 04:41 PM
  5. How do i change the size of the search button at the top?
    By lenswipe in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Jul 2009, 06:44 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