X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   orange default search bar (https://forum.x-cart.com/showthread.php?t=45553)

ARW VISIONS 03-15-2009 11:32 AM

Re: orange default search bar
 
If you are going to design your store you really need to dig around and get used to the .tpl structure.

These are pretty basic questions and if you are having problems with this, you really have alot of learning to do.

Read the template editing guide and the thread about things asked a million times. It will save you and me a lot of head ache :)

Panther 03-15-2009 01:49 PM

Re: orange default search bar
 
Ok well please forgive me for asking a freakin' question!!!

ARW VISIONS 03-15-2009 02:00 PM

Re: orange default search bar
 
Sorry, wasn't trying to be rude. It's pretty easy to figure out if you understand the file structure.

Both bits are located in customer/head.tpl

this is the code for the search bar.

<div class="search">
<div class="valign-middle">
<form method="post" action="search.php" name="productsearchform">

<input type="hidden" name="simple_search" value="Y" />
<input type="hidden" name="mode" value="search" />
<input type="hidden" name="posted_data[by_title]" value="Y" />
<input type="hidden" name="posted_data[by_descr]" value="Y" />
<input type="hidden" name="posted_data[by_sku]" value="Y" />
<input type="hidden" name="posted_data[search_in_subcategories]" value="Y" />
<input type="hidden" name="posted_data[including]" value="all" />

{strip}

<span class="search">{$lng.lbl_search}:</span>
<input type="text" name="posted_data[substring]" size="16" value="{$search_prefilled.substring|escape}" />
{include file="customer/buttons/button.tpl" type="input" style="image"}
<a href="search.php" class="search">{$lng.lbl_advanced_search}</a>
{/strip}

</form>

</div>
</div>

This si the code for the speed bar

{if $speed_bar}
<div class="tabs">
<ul>

{foreach from=$speed_bar item=sb}
<li><a href="{$sb.link|amp}">{$sb.title}</a></li>
{/foreach}

</ul>
</div>
{/if}

experiment with moving it around a bit, and see hwat you can do.

balinor 03-15-2009 03:29 PM

Re: orange default search bar
 
Panther, we aren't trying to be jerks, but you need to help yourself a bit here and not use the forum as a help desk. The template editing guide I have linked to you multiple times explains how to find templates, edit them and navigate through them. You really need to spend the time to learn it and not just ask people to give you a step by step guide each time you have a question. There is a steep learning curve with X-Cart, but once you get the hang of it you will save yourself countless hours of headaches trying to change simple things. Take a few hours and read read read - and then try try try. If you are still having problems after that, come back and let us know how we can help.


All times are GMT -8. The time now is 08:23 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.