Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Join Date
    Aug 2005
    Location
    Philadelphia, PA, USA
    Posts
    33
    Plugin Contributions
    0

    Default Re: Customized Search button does not appear

    <removed by request>

  2. #12
    Join Date
    Aug 2005
    Location
    Philadelphia, PA, USA
    Posts
    33
    Plugin Contributions
    0

    Default Re: Customized Search button does not appear

    Last message... the last two posts were unnecessary but I can't seem to edit or remove them.

    'tpl_search_header' should not be edited at all. I apologize for the confusion.

    Programming with a fever can get pretty wacky.

  3. #13
    Join Date
    Nov 2006
    Posts
    73
    Plugin Contributions
    0

    Default Re: Customized Search button does not appear

    Sorry for dredging up a post this old, but using refriend's code at the top of this page, what should the button be called and where should it be put if it's being used as a search header button?

  4. #14
    Join Date
    Aug 2005
    Location
    Philadelphia, PA, USA
    Posts
    33
    Plugin Contributions
    0

    Default Re: Customized Search button does not appear

    Hi,
    The direct answer to your question is that by default the path to the image is (starting from the zen-cart root):
    /includes/templates/template_default/buttons/english/button_search.gif
    - or, if you are using the carts 'over-ride system' -
    /includes/templates/YOU TEMPLATE NAME/buttons/english/button_search.gif

    You may also change the name of the desired image (say if you would like to reuse another image) by changing the definition for BUTTON_IMAGE_SEARCH in:
    /includes/languages/english/button_names.php
    - or, if you are using the carts template 'over-ride system' -
    /includes/languages/english/YOU TEMPLATE NAME/button_names.php

    I would explain the 'override system' but it is a full length discussion covered elsewhere in this forum... but definitely worth your time to explore as it becomes VERY useful during cart upgrades!

    I will add that I am not a fan of my earlier posted solution as I hacked a core function... it was just the best I could come up with.
    Last edited by refriend; 25 Jul 2007 at 01:38 AM.

  5. #15
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Customized Search button does not appear

    I don't think it is considered hacking into core function.

    There is a flaw in the code. If you look up at the css buttons code you will see the code that should be for the submit image button. Just copy that part of the code down to into the last statement and the image appears.

    BTW the image is in your template/buttons/english/button_search.gif just waiting for the code to be corrected.

  6. #16
    Join Date
    Nov 2006
    Posts
    73
    Plugin Contributions
    0

    Default Re: Customized Search button does not appear

    Quote Originally Posted by usernamenone View Post
    I don't think it is considered hacking into core function.

    There is a flaw in the code. If you look up at the css buttons code you will see the code that should be for the submit image button. Just copy that part of the code down to into the last statement and the image appears.

    BTW the image is in your template/buttons/english/button_search.gif just waiting for the code to be corrected.
    I'm sorry, but could you clarify this? Does this relate directly to me or to the code in general?

    I'm just wondering, as I've stuck the button image in every possible spot on my server, and still it does not show.

    Thanks again.
    Headsonic.com.au - Headphones and Microphones for Australians

  7. #17
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Customized Search button does not appear

    Does not relate to you, It relates to the zen code. You have incorrectly coded your button location. You have
    <input type="image" src="includes/templates/template_default/buttons/english/BUTTON_IMAGE_SEARCH_HEADER" alt="Search" title=" Search " />

    The correct code for a search button is starting with
    $content .= zen_draw_input_field
    Code:
     $content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 100px" 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 . '\';"').zen_image_submit(BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON,'class="input"  &nbsp;');}
    Then you may have to tweek the possition.

    The button name is button_search.gif, the button is already in your button folder. I have custom buttons in my template folder. If your buttons are in your template folder that is the first place zen cart looks and if it can not be found there it will look in the template_default buttons english folder



    Quote Originally Posted by dvasdekis View Post
    I'm sorry, but could you clarify this? Does this relate directly to me or to the code in general?

    I'm just wondering, as I've stuck the button image in every possible spot on my server, and still it does not show.

    Thanks again.

  8. #18
    Join Date
    Aug 2005
    Location
    Philadelphia, PA, USA
    Posts
    33
    Plugin Contributions
    0

    Default Re: Customized Search button does not appear

    For what it is worth. I think I found the true culprit. I submitted my finding and suggested correction to http://www.zen-cart.com/forum/showthread.php?p=414755

    Hopefully this will address you issues. From what I can see this fix alone has completely solved the problem for me (so I believe you can disregard my earlier suggested fix).

    ... and please don't flog me if I am beating a dead horse..

    Good luck!

  9. #19
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Customized Search button does not appear

    That is correct, Please don't forget to change the code in both side box tpl_search.php and tpl_search_header.php as they have both been coded incorrectly in both files.



    Quote Originally Posted by refriend View Post
    For what it is worth. I think I found the true culprit. I submitted my finding and suggested correction to http://www.zen-cart.com/forum/showthread.php?p=414755

    Hopefully this will address you issues. From what I can see this fix alone has completely solved the problem for me (so I believe you can disregard my earlier suggested fix).

    ... and please don't flog me if I am beating a dead horse..

    Good luck!

  10. #20
    Join Date
    Aug 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Customized Search button does not appear

    Quote Originally Posted by usernamenone View Post
    In your template/sideboxes/tpl_search.php

    around line 22 put this code in starting with <input type

    <input type="image" name="search" src="includes/templates/your-template/buttons/english/button_search.gif"/>

    Believe me when I say it took me hours to figure this one out for myself.
    Just bumping this thread as I am all kinds of confused.

    The above method seems the easiest but it also seems that there are many other solutions mentioned in this thread. I'm 100% confused on how to simply add a different search button.

    This shouldn't be so hard, should it? If anyone could possible sum-up what actually works I'd be much obliged. I've already spent way too much time trying to make this work. Thanks, all!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 18
    Last Post: 24 Oct 2010, 02:56 PM
  2. Advanced Search does not appear
    By Spen in forum Basic Configuration
    Replies: 1
    Last Post: 26 Sep 2008, 06:50 PM
  3. Paypal express button does not appear
    By toritaiyo in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 17 Nov 2007, 01:16 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