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

Relocated search.tpl inside menu.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-31-2012, 08:32 AM
 
AMMoyer AMMoyer is offline
 

Senior Member
  
Join Date: Nov 2008
Posts: 150
 

Default Relocated search.tpl inside menu.tpl

I'm having an issue with my relocated search box. I've moved it to the left_bar and all is fine except when I try to use it within menu.tpl. I can either get the header from menu.tpl or the search box to show up depending on what I comment out. I've added height to the container it's in using CSS but that doesn't seem to work either.

Here's my search.tpl file with the menu.tpl/capture commented out so that the search box shows up. If I leave these lines active I only see the header.
Code:
{* {capture name=menu} *} <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} <a href="search.php" class="link"><img src="{$AltImagesDir}/vivid_dreams/advsearch.gif" alt="" /></a> <input type="text" name="posted_data[substring]" class="text" value="{$search_prefilled.substring|escape}" /> {include file="customer/buttons/button.tpl" type="input" style="image"} {/strip} </form> </div> </div> {* {/capture} {include file="menu.tpl" dingbats="rarrow.gif" menu_title=$lng.lbl_part_number_search=$smarty.capture.menu cellpadding=$fc_cellpadding} *}
__________________
Adam
X-Cart Gold 4.4.5 - Live
X-Cart Gold 4.1.11 - Retired
X-Payments 1.0.4
CDSEO Pro
EWD Hosting
Reply With Quote
  #2  
Old 05-31-2012, 12:17 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Relocated search.tpl inside menu.tpl

This part doesn't look right:

menu_title=$lng.lbl_part_number_search=$smarty.cap ture.menu
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #3  
Old 06-01-2012, 09:11 AM
 
AMMoyer AMMoyer is offline
 

Senior Member
  
Join Date: Nov 2008
Posts: 150
 

Default Re: Relocated search.tpl inside menu.tpl

That was an issue as you pointed out. I couldn't get it to work quite right with menu.tpl and ended up using menu_dialog.tpl instead. Not exactly the end result I was wanting, but must move on at this point.
__________________
Adam
X-Cart Gold 4.4.5 - Live
X-Cart Gold 4.1.11 - Retired
X-Payments 1.0.4
CDSEO Pro
EWD Hosting
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 04:49 AM.

   

 
X-Cart forums © 2001-2020