Forums / Templates, Stylesheets, Page Layout / Moving The Search Function

Moving The Search Function

Locked

Started by handcrafteduk on 29 Jul 2006, 3:31 AM · Views: 2,202

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
29 Jul 2006, 3:31 AM
#1
handcrafteduk avatar

handcrafteduk

Zen Follower

Join Date:
Jul 2006
Posts:
240
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! :smile:

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: https://www.handcrafteduk.com/catalog

Thanks so much,

Gary

29 Jul 2006, 5:20 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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:```
    h3.leftBoxHeading, h3.leftBoxHeading a {
    font-size: 1.2em;
    color: #ffffcc;
    margin-top: .5em;
    }
> 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

29 Jul 2006, 10:40 AM
#3
handcrafteduk avatar

handcrafteduk

Zen Follower

Join Date:
Jul 2006
Posts:
240
Plugin Contributions:
0

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

29 Jul 2006, 12:51 PM
#4
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

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.

29 Jul 2006, 1:19 PM
#5
handcrafteduk avatar

handcrafteduk

Zen Follower

Join Date:
Jul 2006
Posts:
240
Plugin Contributions:
0

Re: Moving The Search Function

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

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

Thanks,

Gary

29 Jul 2006, 8:09 PM
#6
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

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!

29 Jul 2006, 8:10 PM
#7
handcrafteduk avatar

handcrafteduk

Zen Follower

Join Date:
Jul 2006
Posts:
240
Plugin Contributions:
0

Re: Moving The Search Function

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

Thanks,

Gary

29 Jul 2006, 8:34 PM
#8
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

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!

29 Jul 2006, 8:41 PM
#9
handcrafteduk avatar

handcrafteduk

Zen Follower

Join Date:
Jul 2006
Posts:
240
Plugin Contributions:
0

Re: Moving The Search Function

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

29 Jul 2006, 9:25 PM
#10
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

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\templatesYOUR_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.:smile:

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

29 Jul 2006, 10:38 PM
#11
handcrafteduk avatar

handcrafteduk

Zen Follower

Join Date:
Jul 2006
Posts:
240
Plugin Contributions:
0

Re: Moving The Search Function

Thanks for that - It worked a treat! I hope your wife's enjoying the Chinese!!! :wink2:

18 Aug 2006, 9:12 AM
#12
getreload avatar

getreload

New Zenner

Join Date:
Jul 2006
Location:
Singapore
Posts:
44
Plugin Contributions:
0

Re: Moving The Search Function

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

Thanks dude, I have applied it on my site.

https://www.getreload.com - get your business reloaded