Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Help moving search box Rate Topic   - - - - -

  • shazer7
  • Member
  • Members
  • Join Date: 28-Apr 06
  • 80 posts

Posted 07 July 2008 - 07:11 PM #1

I am currently using the default magenta skin. I would like to move the search from the right side box to the top menu. I have included an email showing what I am trying to accomplish.

Posted Image

Thank you in advance for any help that could be provided.
Current version: 1.3.5-sp1

  • Guest_dab_*
  • Guests

Posted 11 July 2008 - 07:59 AM #2

In order to do this you should insert this part of code into the "top_menu.tpl" file located in the "skins/CUSTOMER_ACTIVE_SKIN/customer" directory of your CS-Cart installation:
			<td width="600" align="center">
			<form action="{$index_script}" name="search_form" method="get">
			<input type="hidden" name="{$target_name}" value="products" />
			<input type="hidden" name="{$mode_name}" value="search" />
			<input type="hidden" name="subcats" value="Y" />
			<input type="hidden" name="type" value="extended" />
			<input type="hidden" name="avail" value="Y" />
			<input type="hidden" name="pshort" value="Y" />
			<input type="hidden" name="pfull" value="Y" />
			<input type="hidden" name="pname" value="Y" />
			<input type="hidden" name="pkeywords" value="Y" />
			<span class="search-products-text valign" style="color: white; font-family: Tahoma; font-size: 11px; font-weight: bold; white-space: nowrap; text-decoration: none;">{$lang.search}:</span>
			<select	name="cid" class="search-selectbox valign">
				<option	value="0">- {$lang.all_categories} -</option>
				{foreach from=$root_categories item="cat"}
				<option	value="{$cat.category_id}" {if $mode == "search" && $smarty.get.cid == $cat.category_id}selected="selected"{elseif $smarty.get.category_id == $cat.category_id}selected="selected"{/if}>{$cat.category|escape:html}</option>
			<input type="text" name="q" value="{$search_data.search_string|fn_stripslashes|escape:html}" onfocus="fn_select_input(this)" class="search-input valign" />
			{include file="buttons/search_go.tpl" search="Y"}
			{if !$hide_advanced_search}
			<a href="{$index_script}?{$target_name}=search" class="search-advanced valign" style="color: white;">{$lang.advanced_search}</a>
			<td width="2">
				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt="" /></td>
under this one:
			<td width="{$tab_width}" align="center" {if $target == 'checkout' && $mode == 'cart'}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onclick="javascript:fn_redirect('{$index_script}?{$target_name}=checkout')"{/if} nowrap="nowrap">
				<a href="{$index_script}?{$target_name}=checkout" class="top-menu-title">{$lang.view_cart}</a></td>
			<td width="2">
				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt="" /></td>
save the file and also in order to get rid of the "search" side box comment the following part of code in the "main.tpl" file located in the same directory:
	{include file="side_boxes/search.tpl"}
I hope that will help

  • jason32835
  • Junior Member
  • Members
  • Join Date: 16-May 08
  • 26 posts

Posted 14 October 2008 - 05:29 PM #3

This is awsome.. thanks!!