Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2006
    Posts
    248
    Plugin Contributions
    0

    Moving The Search Function

    Hi,

    Sorry to post three times in one day - I've spent all day programming my cart and have done quite a bit!

    However, I could do with a bit more help which I couldn't find by searching previous threads. I'd be greatful if someone could help me!

    1. How do I move the search function inside of the Browse sidebox (which was originally the categories sidebox)

    2. Is there a way I can force a small gap between the side boxes and create them with their own seperate borders?

    3. Also, do you know how I can get rid of the 'New Products for July' bar on my main page?


    BTW, the page is: www.handcrafteduk.com/catalog

    Thanks so much,

    Gary

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Moving The Search Function

    1. How do I move the search function inside of the Browse sidebox (which was originally the categories sidebox)
    The search that you are displaying apears to be the one that is normally located in the header. Do you know what you did to move it to the left column?
    2. Is there a way I can force a small gap between the side boxes and create them with their own seperate borders?
    This is by setting margins and padding for the side box headers. Fing this in your css:
    Code:
    h3.leftBoxHeading, h3.leftBoxHeading a {
           	font-size: 1.2em;
    	color: #ffffcc;
            margin-top: .5em;
    	}
    Add the red highlighted line and adjust the amount and there is one for the right box just a few lines lower in the file.
    3. Also, do you know how I can get rid of the 'New Products for July' bar on my main page?
    The new products bar...do you want to disable this display completely or just the display of the bar? If the bar only this is in your css code, You can make it appear gone by setting its color to match the mainwrapper color.

    If you want the display to be disable this is through your admin > configuration > new listing.
    Zen-Venom Get Bitten

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

    Default Re: Moving The Search Function

    Thanks for the reply Kobra - It wasa great help!

    I managed to create a margin under my sideboxs by changing the 'margin-top' to 'margin-bottom'.

    Well, the search box is actually the one which is already originally in the left column of sideboxes. I deleted the one from the top banner by erasing it's code. So, do you know how I can move it so it's in browse?

    I tried to look in admin > configuration > new listing to completely disable the display but none of the options I tried would get rid of it. Any ideas?

    Many thanks,

    Gary

  4. #4
    Join Date
    Jan 2005
    Location
    Lake Havasu, AZ
    Posts
    1,149
    Plugin Contributions
    0

    Default Re: Moving The Search Function

    Gary - the part to edit your newv products is on the Index Listing not on the Layout settings :)

    Hope that helps!
    When the world gets in my face I say Have A Nice Day.
    * I DO Think and I HAVE BEEN Zenned - therefore, I AM * I donate - do you?
    Custom Templates and Zen Services CRS Designs, Inc.

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

    Default Re: Moving The Search Function

    Thanks Tina....I got it sorted now!

    Still having a problem getting that search function to go inside of the browse (previously catergories) sidebox. Any ideas anyone?

    Thanks,

    Gary

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

    Default Re: Moving The Search Function


    this what your looking for?
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

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

    Default Re: Moving The Search Function

    Yes. that's exactly it! Could you let me know how you did it?

    Thanks,

    Gary

  8. #8
    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!

  9. #9
    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!

  10. #10
    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!

 

 
Page 1 of 2 12 LastLast

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