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

search bar

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-20-2010, 09:36 PM
 
Nour Nour is offline
 

Member
  
Join Date: Jul 2010
Posts: 29
 

Default search bar

http://www.prestigedentalproducts.com
Hi,
Can some one help me with editing the heard
I already deleted the search bar and the orange color bar in skin1 but there is still a white area in the search bar under the logo
I have tried to edit the main.ccs and the head.tpl and home.tpl
Nothing work
I also need to delete the phone number space.
I have to do this fast
I waiting a help
Thanks
__________________
x-cart-4.3.2gold
Reply With Quote
  #2  
Old 07-20-2010, 09:56 PM
 
Nour Nour is offline
 

Member
  
Join Date: Jul 2010
Posts: 29
 

Default Re: search bar

i got it
thanks
__________________
x-cart-4.3.2gold
Reply With Quote
  #3  
Old 07-20-2010, 11:36 PM
 
Nour Nour is offline
 

Member
  
Join Date: Jul 2010
Posts: 29
 

Default welcome tpl

hi,
http://www.prestigedentalproducts.com/
1-if you notice welcome.tpl is lower than the side menu
it's not align with the side menu how can i do so?
2- I would like to have a search menu in the side menu how can i do so?

thanks
__________________
x-cart-4.3.2gold
Reply With Quote
  #4  
Old 07-21-2010, 02:14 AM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: search bar

1) You have a <br /> and <h1></h1> tags. The <p> you have your iframe in also pushes it down from the top.

2) Create a new sidebox and put the search template in it.

3) Relating to #1, is using an iframe required or necessary? If not, you should instead just put the entire code needed into welcome.tpl
__________________
- Shane Munroe
Reply With Quote
  #5  
Old 07-21-2010, 09:38 AM
 
Nour Nour is offline
 

Member
  
Join Date: Jul 2010
Posts: 29
 

Default Re: search bar

thankssssssss
it works very well

I need to add a drop down menu to the header it's html css java script
http://www.prestigedentalproducts.com/dropdown/dropdown.html

here is the code

Quote:

<style type="text/css" media="screen"><!--#sddm
{ margin: 0;
padding: 0;
z-index: 30}

#sddm li
{ margin: 0;
padding: 0;
list-style: none;
float: left;
font: bold 11px arial}

#sddm li a
{ display: block;
margin: 0 1px 0 0;
padding: 4px 10px;
width: 110px;
background: #476076;
color: #fff;
text-align: center;
text-decoration: none}

#sddm li a:hover
{ background: #c2c2c2}

#sddm div
{ position: absolute;
visibility: hidden;
margin: 0;
padding: 0;
background: #eaebd8;
border: solid 1px #476076}

#sddm div a
{ position: relative;
display: block;
margin: 0;
padding: 5px 10px;
width: auto;
white-space: nowrap;
text-align: left;
text-decoration: none;
background: #eaebd8;
color: #476076;
font: 11px arial}

#sddm div a:hover
{ background: #476076;
color: #fff}
--></style>
<script type="text/javascript"><!--
var timeout = 500;
var closetimer = 0;
var ddmenuitem = 0;

// open hidden layer
function mopen(id)
{
// cancel close timer
mcancelclosetime();

// close old layer
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

// get new layer and show it
ddmenuitem = document.getElementById(id);
ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
if(closetimer)
{
window.clearTimeout(closetimer);
closetimer = null;
}
}

// close layer when click-out
document.onclick = mclose;

//-->
</script>







<div align="center">
<ul id="sddm">
<li><a href="#" onmouseover="mopen('')" onmouseout="mclosetime()">home</a>
<li><a href="#" onmouseover="mopen('m2')" onmouseout="mclosetime()">Supplies</a>
<div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
<a href="#">Browse Catalog</a> <a href="#">Search</a> <a href="#">New Products</a></div>
<li><a href="#" onmouseover="mopen('m3')" onmouseout="mclosetime()">Specials</a>
<div id="m3" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
<a href="#">Our Specials</a> <a href="#">Manufacturer's Promotions</a> <a href="#">Equipment Specials</a></div>
<li><a href="#" onmouseover="mopen('m4')" onmouseout="mclosetime()">Equipment</a>
<div id="m4" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
<a href="#">Large Equipment</a> <a href="#">Small Equipment</a> <a href="#">Handpieces</a> <a href="#">Hi-Tech Dentistry</a> <a href="#">Equipment Specials</a></div>
<li><a href="#" onmouseover="mopen('m5')" onmouseout="mclosetime()">Services</a>
<div id="m5" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
<a href="#">Financial Services</a></div>
<li><a href="#" onmouseover="mopen('m6')" onmouseout="mclosetime()">Customers</a>
<div id="m6" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
<a href="#">Your Account</a> <a href="#">Customers Info</a> <a href="#">Online Bill Payment</a> <a href="#">New Customers</a></div>
<li><a href="#" onmouseover="mopen('m7')" onmouseout="mclosetime()">Company</a>
<div id="m7" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
<a href="#">About Us</a> <a href="#">Contact Us</a> <a href="#">Return Policy</a></div>

</ul>
</div>
<div style="clear:both" align="center">
</div>




when I add this to any template it will not read the css and the java script

thank you for the help
__________________
x-cart-4.3.2gold
Reply With Quote
  #6  
Old 07-21-2010, 10:07 AM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: search bar

If your using javascript or css inside .tpl files you need to surrond them with {literal}{/literal} tags because smarty uses {} and thinks your trying to use smarty when instead your not.
Literal tags tell it everything between is not smarty and parse is as it normally would.
__________________
- Shane Munroe
Reply With Quote
  #7  
Old 07-21-2010, 11:19 AM
 
Nour Nour is offline
 

Member
  
Join Date: Jul 2010
Posts: 29
 

Default Re: search bar

thanks
thanks
thanks
thanks
__________________
x-cart-4.3.2gold
Reply With Quote
  #8  
Old 07-21-2010, 03:53 PM
 
Nour Nour is offline
 

Member
  
Join Date: Jul 2010
Posts: 29
 

Default Re: search bar

I have deleted the login side box
I need the login in the speed bar but I can't find a like to a login page.........
__________________
x-cart-4.3.2gold
Reply With Quote
  #9  
Old 07-21-2010, 05:36 PM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: search bar

Not sure which you deleted but...

authbox.tpl:
Code:
{* $Id: authbox.tpl,v 1.11 2009/06/23 06:48:50 joy Exp $ vim: set ts=2 sw=2 sts=2 et: *} {capture name=menu} <div class="login-text item"> <strong>{$login}</strong> <hr class="minicart" /> <ul> {if $anonymous_login eq "" && $login ne ""} <li class="modify-profile-link"><a href="register.php?mode=update">{$lng.lbl_modify_profile}</a></li> <li class="delete-profile-link"><a href="register.php?mode=delete">{$lng.lbl_delete_profile}</a></li> {/if} <li class="logout-link"> <form action="{$xcart_web_dir}/include/login.php" method="post" name="loginform"> <input type="hidden" name="mode" value="logout" /> <input type="hidden" name="usertype" value="{$auth_usertype|escape}" /> <input type="hidden" name="redirect" value="{$redirect|amp}" /> <a href="javascript:void(0);" onclick="javascript: setTimeout(function() {ldelim}document.loginform.submit();{rdelim}, 100);">{$lng.lbl_logoff}</a> </form> </li> </ul> </div> {/capture} {include file="customer/menu_dialog.tpl" title=$lng.lbl_authentication content=$smarty.capture.menu additional_class="menu-auth"}


auth.tpl:
Code:
{* $Id: auth.tpl,v 1.11.2.1 2010/01/11 10:40:06 aim Exp $ vim: set ts=2 sw=2 sts=2 et: *} {if $is_allow_auth eq "Y" or $config.Security.use_secure_login_page eq "Y"} {capture name=menu} <form action="{$auth_form_url}/include/login.php" method="post" name="authform" class="item"> <input type="hidden" name="{$XCARTSESSNAME}" value="{$XCARTSESSID}" /> {if $config.Security.use_secure_login_page eq "Y"} <div class="login-buttons"> {include file="customer/buttons/secure_login.tpl"} {include file="customer/buttons/create_profile_menu.tpl" additional_button_class="menu-button"} </div> {else} <input type="hidden" name="mode" value="login" /> <input type="hidden" name="usertype" value="{$auth_usertype}" /> <input type="hidden" name="redirect" value="{$redirect|amp}" /> {$lng.lbl_username}<br /> <input type="text" name="username" size="17" value="{#default_login#|default:$username}" /><br /> {$lng.lbl_password}<br /> <input type="password" name="password" size="17" maxlength="64" value="{#default_password#}" /> {if $active_modules.Image_Verification and $show_antibot.on_login eq 'Y' && $login_antibot_on && $main ne 'secure_login_form'} {include file="modules/Image_Verification/spambot_arrest.tpl" mode="simple_column" id=$antibot_sections.on_login} {/if} <div class="login-buttons"> {include file="customer/buttons/login_menu.tpl" additional_button_class="menu-button"} {include file="customer/buttons/create_profile_menu.tpl" additional_button_class="menu-button"} <div class="clearing"></div> </div> {/if} <div class="recovery"> <a href="help.php?section=Password_Recovery">{$lng.lbl_recover_password}</a> </div> </form> {/capture} {include file="customer/menu_dialog.tpl" title=$lng.lbl_authentication content=$smarty.capture.menu additional_class="menu-auth"} {/if}
__________________
- Shane Munroe
Reply With Quote
  #10  
Old 07-23-2010, 04:59 PM
 
Nour Nour is offline
 

Member
  
Join Date: Jul 2010
Posts: 29
 

Default Re: search bar

will I didn't mean I have deleted the tpl no
I just deleted the side box I need a link to login page I have used this link
http://www.prestigedentalproducts.com/error_message.php?login_incorrect

I know it's an error message but it's working fine So Thank you alot

do you have any idea if there is any add on or any thing to do a slideshow for images with link to products
exactly like the one in this website
http://www.pearsondental.com/
and be able to change the photo by date like photos 1,2,3 for May and 4,5,6,7 for July so it will change automatically

thank you for your help
__________________
x-cart-4.3.2gold
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 12:42 AM.

   

 
X-Cart forums © 2001-2020