Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

moving search bar

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-21-2008, 05:30 AM
 
toolexperts toolexperts is offline
 

eXpert
  
Join Date: Feb 2008
Location: Knoxville, TN
Posts: 290
 

Default moving search bar

My site is at 216.75.30.97.

I want to move the search bar to the right hand side of the logo area

How is this done?
__________________
Tool Experts
X-Cart DB Version: 5.4.1.49
Windows
Reply With Quote
  #2  
Old 02-21-2008, 05:48 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: moving search bar

Hi there,

in skin1/head.tpl

You could try moving...
{if $usertype eq "C"}
{ include file="customer/search.tpl" }
{/if}

into your empty...
<td class="HeadRightBox">

It will get messy so remember to back up. As you'll need to do a few things to get it sitting right.

Also, use webmaster mode - it's your friend.

Regards,
Doms
__________________
Doms
kube v4.1.9
Reply With Quote
  #3  
Old 02-21-2008, 05:59 AM
 
toolexperts toolexperts is offline
 

eXpert
  
Join Date: Feb 2008
Location: Knoxville, TN
Posts: 290
 

Default Re: moving search bar

thanks kube...where do I go to comment the old one out?
__________________
Tool Experts
X-Cart DB Version: 5.4.1.49
Windows
Reply With Quote
  #4  
Old 02-21-2008, 06:07 AM
 
toolexperts toolexperts is offline
 

eXpert
  
Join Date: Feb 2008
Location: Knoxville, TN
Posts: 290
 

Default Re: moving search bar

also what coding would i put in to make it align right?
__________________
Tool Experts
X-Cart DB Version: 5.4.1.49
Windows
Reply With Quote
  #5  
Old 02-21-2008, 06:16 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: moving search bar

The original search box is located further down in head.tpl using the same code as I mentioned.

Also where you have placed the new snip into the TD HeadRightBox, surround it with {if $main ne "fast_lane_checkout"} so it looks like...

<td class="HeadRightBox">
{if $main ne "fast_lane_checkout"}
{if $usertype eq "C"}
{ include file="customer/search.tpl" }
{/if}
{/if}
</td>
__________________
Doms
kube v4.1.9
Reply With Quote
  #6  
Old 02-21-2008, 06:55 AM
 
toolexperts toolexperts is offline
 

eXpert
  
Join Date: Feb 2008
Location: Knoxville, TN
Posts: 290
 

Default Re: moving search bar

I have implemented this and it seems to be working fine..thank you
__________________
Tool Experts
X-Cart DB Version: 5.4.1.49
Windows
Reply With Quote
  #7  
Old 02-21-2008, 07:39 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: moving search bar

toolexperts you're going to have to watch out what's happening with the code, becareful.

At the moment you have a TD HeadRightBox inside another TD HeadRightBox.

Also your TD Container isn't closed - but that isn't an effect of moving the search bar. Make sure you have these sorted otherwise it will become a headache. This is the reason why things aren't aligning as to how you wish.
__________________
Doms
kube v4.1.9
Reply With Quote
  #8  
Old 02-21-2008, 08:46 AM
 
toolexperts toolexperts is offline
 

eXpert
  
Join Date: Feb 2008
Location: Knoxville, TN
Posts: 290
 

Default Re: moving search bar

**scratches head** it looks fine to me....what do i need to fix? Thanks in advance
__________________
Tool Experts
X-Cart DB Version: 5.4.1.49
Windows
Reply With Quote
  #9  
Old 02-21-2008, 09:05 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: moving search bar

It may look fine but something is wrong somewhere.

From viewing your source and half-way down, this is what is corrupting it (a HTML comment from me shows the problem below)...

<table cellpadding="0" cellspacing="0" width="100%">
<tr>
</td> <!---<<<<<<< The problem is here, a closing </TD> tag with no beginning/open <TD> tag! -->
<td class="HeadLine" align="right">&nbsp;

</td>

</tr>
<tr>
<td colspan="2">
</td>
</tr>
</table><!-- main area -->


Hope this helps.
__________________
Doms
kube v4.1.9
Reply With Quote
  #10  
Old 02-21-2008, 09:23 AM
 
toolexperts toolexperts is offline
 

eXpert
  
Join Date: Feb 2008
Location: Knoxville, TN
Posts: 290
 

Default Re: moving search bar

ok that should have killed it...thanks!
__________________
Tool Experts
X-Cart DB Version: 5.4.1.49
Windows
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:03 PM.

   

 
X-Cart forums © 2001-2020