Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Moving The Search Function

    yeah give me about an hour gotta go get the pregnant wife her chinese food
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  2. #2
    Join Date
    Jul 2006
    Posts
    248
    Plugin Contributions
    0

    Default Re: Moving The Search Function

    LOl - Good luck with that one. Hopefu;;y she won't send you straight out to collect another one!

  3. #3
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Moving The Search Function

    ok lets see if we can step through this

    using your favorite editor (I like crimson editor) open both tpl_categories.php and tpl_search.php in includes\templates\YOUR_TEMPLATE\sideboxes. You are using overrides...right. Cause if your not we can't continue,...well we can but it will be under protest.

    In tpl_search.php find the following line:
    $content .= zen_draw_form('quick_find', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');

    copy all from that line to and including:
    $content .= "</form>";

    Post that code into tpl_categories at the following location:
    right after:
    if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
    $content .= '<a class="category-links" href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">' . CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a>' . "\n";
    }
    }

    And before:

    $content .= '</div>';

    ?>


    Save the tpl_categories.php and refresh the catalog main page.


    Now I know I could have just posted the code and let you copy and paste from here, but would that be fair. We learn by doing and with some guidance we learn better. Actually it was for those that would like to understand the process better.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  4. #4
    Join Date
    Jul 2006
    Location
    Singapore
    Posts
    44
    Plugin Contributions
    1

    Default Re: Moving The Search Function

    Quote Originally Posted by barco57

    Now I know I could have just posted the code and let you copy and paste from here, but would that be fair. We learn by doing and with some guidance we learn better. Actually it was for those that would like to understand the process better.
    Thanks dude, I have applied it on my site.

 

 

Similar Threads

  1. moving search function to the center of the page from the sideboxes
    By crexis in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Jul 2013, 01:36 AM
  2. Is it possible to make my homepage just the search function
    By comsystics in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 20 Sep 2012, 12:57 PM
  3. Moving the Header Search Box Function.
    By Mike_Dean in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 May 2008, 10:47 PM

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