Forums / Templates, Stylesheets, Page Layout / Need help removing things from my purchased template

Need help removing things from my purchased template

Locked

Views: 1,579

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
14 Jul 2008, 1:19 AM
#1
letum avatar

letum

New Zenner

Join Date:
Jan 2008
Location:
Australia
Posts:
30
Plugin Contributions:
0

Need help removing things from my purchased template

HI

http://www.akotrading.com.au/index.php?main_page=

I need help removing the shopping cart, currency, language and navigation from the purple part of the header.

I have checked the "layout boxes controller" however those boxes are turned off.

Any help would be great

14 Jul 2008, 1:50 AM
#2
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: Need help removing things from my purchased template

Letum:

HI

http://www.akotrading.com.au/index.php?main_page=

I need help removing the shopping cart, currency, language and navigation from the purple part of the header.

I have checked the "layout boxes controller" however those boxes are turned off.

Any help would be great

This is a Temeplate Monster template so it is no surprise that the template is not responding to admin commands.

You'll need to search in any one of the 4 or 5 css stylesheets that combine to produce the layout.

Many of the items you want turned off are probably images!

Tina

14 Jul 2008, 2:07 AM
#3
letum avatar

letum

New Zenner

Join Date:
Jan 2008
Location:
Australia
Posts:
30
Plugin Contributions:
0

Re: Need help removing things from my purchased template

charmedbytina2:

This is a Temeplate Monster template so it is no surprise that the template is not responding to admin commands.

You'll need to search in any one of the 4 or 5 css stylesheets that combine to produce the layout.

Many of the items you want turned off are probably images!

Tina

New to CSS (still)

Any idea what I need to look for?

14 Jul 2008, 2:12 AM
#4
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: Need help removing things from my purchased template

Letum:

New to CSS (still)

Any idea what I need to look for?

Do you have Firefox (Mozilla) with developer tools?
That would be a good start.

Tina

14 Jul 2008, 2:45 AM
#5
letum avatar

letum

New Zenner

Join Date:
Jan 2008
Location:
Australia
Posts:
30
Plugin Contributions:
0

Re: Need help removing things from my purchased template

charmedbytina2:

Do you have Firefox (Mozilla) with developer tools?
That would be a good start.

Tina

Yes i have it.

I used it on the sections I want to remove, found out what CSS page and what line.
I then deleted all the info for it. (after backing up the files) but all it did was move the sections a little bit. It didnt remove them.

14 Jul 2008, 5:11 AM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: Need help removing things from my purchased template

Those things are probably all hardcoded in the header template.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

14 Jul 2008, 5:36 AM
#7
letum avatar

letum

New Zenner

Join Date:
Jan 2008
Location:
Australia
Posts:
30
Plugin Contributions:
0

Re: Need help removing things from my purchased template

Kim:

Those things are probably all hardcoded in the header template.

Does this mean they cant be removed?

14 Jul 2008, 5:39 AM
#8
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: Need help removing things from my purchased template

Letum:

Does this mean they cant be removed?

No. It means the admin control won't work -which you have already discovered. :(

You will have to locate the code and make the necessary adjustments/alterations to the codes.

Tina

15 Jul 2008, 1:45 AM
#9
letum avatar

letum

New Zenner

Join Date:
Jan 2008
Location:
Australia
Posts:
30
Plugin Contributions:
0

Re: Need help removing things from my purchased template

Here is the Code. Can anyone tell me what to change

<?php
/**
 * Common Template - tpl_header.php
 *
 * this file can be copied to /templates/your_template_dir/pagename<br />
 * example: to override the privacy page<br />
 * make a directory /templates/my_template/privacy<br />
 * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
 * to override the global settings and turn off the footer un-comment the following line:<br />
 * <br />
 * $flag_disable_header = true;<br />
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $
 */
?>
<?php

	
  // Display all header alerts via messageStack:
  if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
  }
  if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
  echo htmlspecialchars(urldecode($_GET['error_message']));
  }
  if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
   echo htmlspecialchars($_GET['info_message']);
} else {

}
?>


<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>


	<div class="navigation">
		<div class="right">
			<div class="margin">
				<div class="nav_1">
					<div class="right">
						<div class="margin">
							<?php echo BOX_HEADING_LANGUAGES; ?>     <?php # LANGUAGE START

  if (!isset($lng) || (isset($lng) && !is_object($lng))) {
    $lng = new language;
  }

  reset($lng->catalog_languages);

  while (list($key, $value) = each($lng->catalog_languages)) {
    echo '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . zen_image(DIR_WS_LANGUAGES.$value['directory'].'/images/'.$value['image'], $value['name'], '', '', ' style="vertical-align:middle;"') . '</a>';
  }
# LANGUAGE END
?>
						</div>
					</div>
					<div class="left">
                    	<?php # SHOPPING CART START

  if ($_SESSION['cart']->count_contents()==1) {
     $sc_contents = '1 item';
  } else {
  	 $sc_contents = $_SESSION['cart']->count_contents() . ' items';
  }

# SHOPPING CART END
?>
                    	<a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART);?>"><?php echo zen_image(DIR_WS_TEMPLATE.'images/cart.jpg'); ?></a><?php echo zen_draw_separator($image = 'pixel_trans.gif', '10', '1');?>now in your cart <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART);?>"><?php echo $sc_contents; ?></a>
					</div>
					<div class="clear"></div>
				</div>
				<div class="nav_2">
					<div class="left">
						<div class="margin">
                            <?php #HEADER LINKS START ?>
		
		<a href="<?php echo HTTP_SERVER . DIR_WS_CATALOG ?>"><?php echo HEADER_TITLE_CATALOG; ?></a>   |  
		
			<?php if ($_SESSION['customer_id']) { ?>
    			<a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a>   |   <a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>   |  
			<?php
                  } else {
                    if (STORE_STATUS == '0') {
            ?>
                <a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>   |  
			<?php } } ?>  
            
			<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
            	<a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>   |   <a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a>
			<?php } ?>
			
<?php #HEADER LINKS END ?>	
						</div>
					</div>
					<div class="right">
						<?=zen_draw_form('currencies', zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', $request_type, false), 'get')?>

<?

    if (isset($currencies) && is_object($currencies)) {

      reset($currencies->currencies);
      $currencies_array = array();
      while (list($key, $value) = each($currencies->currencies)) {
        $currencies_array[] = array('id' => $key, 'text' => $value['title']);
      }

      $hidden_get_variables = '';
      reset($_GET);
      while (list($key, $value) = each($_GET)) {
        if ( ($key != 'currency') && ($key != zen_session_name()) && ($key != 'x') && ($key != 'y') ) {
          $hidden_get_variables .= zen_draw_hidden_field($key, $value);
        }
      }
    }

?><?=zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], ' onchange="this.form.submit();"') . $hidden_get_variables . zen_hide_session_id()?></form>
					</div>
					<div class="clear"></div>
				</div>
			</div>
		</div>
		<div class="left">
			<a href="<?php echo zen_href_link(FILENAME_DEFAULT);?>"><?php echo zen_image(DIR_WS_TEMPLATE.'images/logo.jpg'); ?></a>
		</div>
		<div class="clear"></div>
	</div>
	<div class="head">
		<div class="head_right">
			<?php if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                		
						if ($banner->RecordCount() > 0) {
				
							echo zen_display_banner('static', $banner);
							
                  		} 
						
					} // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2
			?>
		</div>
	</div>
	<div class="menu">
		<?php #HEADER START ?>
                
			<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
                <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
            <?php } ?>
            
        <?php #HEADER END ?>
		<div class="clear"></div>
	</div>
    
		


		<?php
            if (CATEGORIES_TABS_STATUS == '1') {
        
                require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php');
        
            }
        ?>
        	
            <div class="spacer"><br class="clear" /></div>




<?php } ?>