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

How do I remove Company Name & Phone number from head?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-03-2009, 09:46 AM
 
trixiesirisheyes trixiesirisheyes is offline
 

Member
  
Join Date: Jul 2009
Posts: 11
 

Exclamation How do I remove Company Name & Phone number from head?

I've replaced the banner (top_image.jpg) with my own creation, which has the company name on it. I want to remove all that text and default logo icon in the upper left hand corner of the header altogether.

I've checked the "questions asked over and over" link, and it only addresses replacing the logo. I want the default stuff GONE. How do I do this??

Then I'm going to play with the CSS code for the speedbar and search tag and get them off my banner and in the preferred colors.

In 600+ pages of the manual, even removing the logo is not addressed, that I can see. It's still a better manual than Zen Cart's.

I am proficient in HTML, XHTML and CSS (sure do wish your code were commented better - I use comments to identify the purpose of beginning and ending divs) - and I have a book on Smarty tags coming today, but I also see JavaScript in there, and I'm not conversant in JS. Yet. I don't want to break anything.

I am first backing up any templates that I'm changing, just in case.
__________________
XCart 4.2/XCart Affiliate
Reply With Quote
  #2  
Old 08-03-2009, 10:00 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: How do I remove Company Name & Phone number from head?

Open skin1/customer/head.tpl and comment out the code you don't need like this {* code to comment out *}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 08-03-2009, 10:10 AM
 
trixiesirisheyes trixiesirisheyes is offline
 

Member
  
Join Date: Jul 2009
Posts: 11
 

Default Re: How do I remove Company Name & Phone number from head?

Not quite sure where to begin and end my commenting. I count four opening divs and three closing divs in that area. The divs are not commented, and I don't want to break the page. I also notice the speed bar code is in between the logo code and the phone number code.
__________________
XCart 4.2/XCart Affiliate
Reply With Quote
  #4  
Old 08-03-2009, 10:17 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: How do I remove Company Name & Phone number from head?

Original 4.2.1 code. Do not copy/paste as yours could be different depending on version and mods. I don't see company name in the original code, unless you are talking abou the company logo

Code:
{* $Id: head.tpl,v 1.12 2008/11/21 07:49:55 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} <div class="line1"> {* REMOVE COMPANY LOGO <div class="logo"><a href="{$catalogs.customer}/home.php"><img src="{$ImagesDir}/xlogo.gif" alt="" /></a></div> REMOVE COMPANY LOGO *} {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} {* REMOVE COMPANY PHONE NUMBERS <div class="phones"> {if $config.Company.company_phone} <span>{$lng.lbl_phone_1_title}: {$config.Company.company_phone}</span> {/if} {if $config.Company.company_phone_2} <span>{$lng.lbl_phone_2_title}: {$config.Company.company_phone_2}</span> {/if} </div> REMOVE COMPANY PHONE NUMBERS *} </div> <div class="line2"> {if $main ne "fast_lane_checkout"} <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> {if $all_languages_cnt gt 1} <div class="languages"> <form action="home.php" method="get" name="sl_form"> <input type="hidden" name="redirect" value="{$smarty.server.PHP_SELF}{if $smarty.server.QUERY_STRING}?{$smarty.server.QUERY_STRING|amp}{/if}" /> {strip} <label>{$lng.lbl_select_language}: <select name="sl" onchange="javascript: this.form.submit();"> {foreach from=$all_languages item=l} <option value="{$l.code}"{if $store_language eq $l.code} selected="selected"{/if}>{$l.language}</option> {/foreach} </select> </label> {/strip} </form> </div> {/if} {else} {include file="modules/Fast_Lane_Checkout/head.tpl"} {/if} </div> <div class="line3"> {if $printable_link_visible} <div class="printable-bar"> <a href="{$php_url.url}?printable=Y{if $php_url.query_string ne ''}&amp;{$php_url.query_string|amp}{/if}">{$lng.lbl_printable_version}</a> </div> {/if} </div>
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 08-03-2009, 10:29 AM
 
trixiesirisheyes trixiesirisheyes is offline
 

Member
  
Join Date: Jul 2009
Posts: 11
 

Default Re: How do I remove Company Name & Phone number from head?

Yeah, Company Logo and Name.

Thank you for showing me. I'm figuring stuff out on my own, but when I think I'm going to break the code, that's another story.
__________________
XCart 4.2/XCart Affiliate
Reply With Quote
  #6  
Old 08-03-2009, 10:48 AM
 
Shamun Shamun is offline
 

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

Default Re: How do I remove Company Name & Phone number from head?

Quote:
Originally Posted by trixiesirisheyes
Yeah, Company Logo and Name.

Thank you for showing me. I'm figuring stuff out on my own, but when I think I'm going to break the code, that's another story.

Heres a tip..

Download this: http://www.wampserver.com/en/
It will install apache, mysql and PHP on your computer.

Install it, run it. Left click on the speed dial on the right side of your task bar. Make sure its white and black and that the server is 'offline' so other people cant access it. It will still allow you to check the thing out.

Backup your site, install it in wamps WWW directory
Do tests on that and in a notepad program (I highly suggest notepadd+) so you can simply ctrl+z to undo problems.

Quick and simple to see if a change works
__________________
- Shane Munroe
Reply With Quote
  #7  
Old 08-03-2009, 11:02 AM
 
trixiesirisheyes trixiesirisheyes is offline
 

Member
  
Join Date: Jul 2009
Posts: 11
 

Default Re: How do I remove Company Name & Phone number from head?

Hmmmm...I'm going to have to think about this, because I'm on a Mac. I'm running WinXP on Parallels, but I think I'd rather just install something directly on my Mac. They make great servers. I try not to go into WinXP unless I absolutely have to, like for site-checking.

It would also help to have a server on my tower, since Time Warner Cable internet is so danged unreliable. It goes down at least once a month. I was downloading the current X-cart onto my local server from the remote last night, and my internet went down for 35 minutes. <Expletive deleted>

I just haven't had time to do the server thing on my box yet! I've been thinking about it, though. I'm so busy with 3 big websites, including this shopping cart.

Also, I could use BBEdit or TextEdit (both Mac-specific), but I just use DW. I do most of my coding by hand anyway.
__________________
XCart 4.2/XCart Affiliate
Reply With Quote
  #8  
Old 08-03-2009, 11:07 AM
 
trixiesirisheyes trixiesirisheyes is offline
 

Member
  
Join Date: Jul 2009
Posts: 11
 

Default Re: How do I remove Company Name & Phone number from head?

I did find MAMP (same thing as the above, only for Macs), and they have a MAMP-Pro version for $60 (not as much configuration need). Not shabby. I think I may do that this weekend. Dang, I need to get up to speed on PHP and MySQL. Apache and Unix wouldn't hurt, either. Who needs to watch TV when you can play on your computer during all your waking hours?
__________________
XCart 4.2/XCart Affiliate
Reply With Quote
  #9  
Old 08-03-2009, 11:09 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default Re: How do I remove Company Name & Phone number from head?

apache is built in on mac OSX, you just need PHP and mysql, there's some online packages ou can install, just google it,
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #10  
Old 08-03-2009, 11:15 AM
 
trixiesirisheyes trixiesirisheyes is offline
 

Member
  
Join Date: Jul 2009
Posts: 11
 

Default Re: How do I remove Company Name & Phone number from head?

There's MAMP and it's free, probably because some of the components are already on OSX. MAMP-Pro has a few bells and whistles. http://www.mamp.info/en/mamp-pro/
__________________
XCart 4.2/XCart Affiliate
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 02:54 PM.

   

 
X-Cart forums © 2001-2020