Forums / Templates, Stylesheets, Page Layout / unable to change the 'Search' button name

unable to change the 'Search' button name

Views: 1,595

Results 1 to 13 of 13
8 Feb 2014, 3:54 PM
#1
mclovin avatar

mclovin

New Zenner

Join Date:
Feb 2014
Location:
The Netherlands
Posts:
58
Plugin Contributions:
0

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.

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
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..?

:wacko:

8 Feb 2014, 11:32 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: unable to change the 'Search' button name

McLovin:

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.

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

> 
> ```
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..?

:wacko:

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...

9 Feb 2014, 9:52 AM
#3
mclovin avatar

mclovin

New Zenner

Join Date:
Feb 2014
Location:
The Netherlands
Posts:
58
Plugin Contributions:
0

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:

<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:

<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:

9 Feb 2014, 1:17 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,116
Plugin Contributions:
56

Re: unable to change the 'Search' button name

McLovin:

... 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.php/Languages#Updating_an_older_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).
9 Feb 2014, 2:18 PM
#5
mclovin avatar

mclovin

New Zenner

Join Date:
Feb 2014
Location:
The Netherlands
Posts:
58
Plugin Contributions:
0

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?

9 Feb 2014, 2:26 PM
#6
mclovin avatar

mclovin

New Zenner

Join Date:
Feb 2014
Location:
The Netherlands
Posts:
58
Plugin Contributions:
0

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.

9 Feb 2014, 2:37 PM
#7
mclovin avatar

mclovin

New Zenner

Join Date:
Feb 2014
Location:
The Netherlands
Posts:
58
Plugin Contributions:
0

Re: unable to change the 'Search' button name

EDIT: never mind, problem fixed itself apparently...

9 Feb 2014, 2:44 PM
#8
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,116
Plugin Contributions:
56

Re: unable to change the 'Search' button name

McLovin:

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.

9 Feb 2014, 2:45 PM
#9
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: unable to change the 'Search' button name

lat9:

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..

McLovin:

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.

9 Feb 2014, 2:58 PM
#10
mclovin avatar

mclovin

New Zenner

Join Date:
Feb 2014
Location:
The Netherlands
Posts:
58
Plugin Contributions:
0

Re: unable to change the 'Search' button name

Yeah, I've noticed that making small changes can be a real pain. I've tried installing the Multi-Language EZ-Pages, but nothing on the admin side changed. All I ended up with was a "translate me" in front of the (Dutch) header titles. I'm plowing through the ZC Wiki developers section as we speak. At some point I'm going to have to do some real refactoring anyway, so I might as well start biting the bullet (which makes it particularly difficult as I suck at programming). :frusty:

9 Feb 2014, 5:04 PM
#11
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: unable to change the 'Search' button name

McLovin:

Yeah, I've noticed that making small changes can be a real pain. I've tried installing the Multi-Language EZ-Pages, but nothing on the admin side changed. All I ended up with was a "translate me" in front of the (Dutch) header titles. I'm plowing through the ZC Wiki developers section as we speak. At some point I'm going to have to do some real refactoring anyway, so I might as well start biting the bullet (which makes it particularly difficult as I suck at programming). :frusty:

Much of those issues are a result of the template. There are plenty of other templates even on this site that while might have some identified patches, are written to allow ZC to shine through. If politely asked, Diva Vocals may even help out with some template ideas. She's good at templates and can work some magic.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

9 Feb 2014, 8:33 PM
#12
mclovin avatar

mclovin

New Zenner

Join Date:
Feb 2014
Location:
The Netherlands
Posts:
58
Plugin Contributions:
0

Re: unable to change the 'Search' button name

Thanks for the tip, I'll definitely keep that in mind! Admittedly though, technical issues aside, I'm very happy with how the template looks (if I manage to tweak it a bit anyway). It's just the bloody programming! :D

9 Feb 2014, 10:06 PM
#13
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: unable to change the 'Search' button name

McLovin:

Thanks for the tip, I'll definitely keep that in mind! Admittedly though, technical issues aside, I'm very happy with how the template looks (if I manage to tweak it a bit anyway). It's just the bloody programming! :D

Right.. the point being made is those looks come at the expense of needed code nearly 99% of the time.. and those SAME looks can be achieved without employing the slash and burn techniques Template Monstrosity is known for.. So keep that in mind..

Happy Zenning..

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.