New Zenner
- Join Date:
- Apr 2011
- Posts:
- 17
- Plugin Contributions:
- 0
How do I hide the column on the main page?
As the title states.
Views: 1,191
New Zenner
As the title states.
Black Belt
Where is your site?
What zenCart version?
What column?
Zen-Venom Get Bitten
New Zenner
Thank you.
the site can be seen here: http://tinyurl.com/3kkujd5 (diclaimer; it is an adult novelty site)
it is using 1.39
I want to hide the left column on the main page.
Totally Zenned
This tutorial will get you on the right track:
Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com.
New Zenner
ALright I'm close. Here's what I have but it pretty much makes the whole page blank. I'm sure its a simple error on my part
* prepares and displays left column sideboxes
*
*/
?>
<div id="navColumnOneWrapper" style="width: <?php echo BOX_WIDTH_LEFT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?></div></td>
<?php
}
?>
<td valign="top">
<?php>
if ($this_is_home_page) {
$flag_disable_left = true;
}
<?>
<?php
if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<!-- bof upload alerts -->
<?php if ($messageStack->size('upload') > 0) echo $messageStack->output('upload'); ?>
<!-- eof upload alerts -->
<?php
/**
* prepares and displays center column
Totally Zenned
<?php> if ($this_is_home_page) { $flag_disable_left = true; } <?>
Try this
<?php if ($this_is_home_page) { $flag_disable_left = true; } ?>
New Zenner
CoolCarPartsOnline:
Try this
That actually did nothing. =/
Black Belt
That actually did nothing. =/
What is the file and path that you made the edit to?
Zen-Venom Get Bitten
New Zenner
/includes/templates/mytemplate/common/tpl_main_page.php
Totally Zenned
kobra:
What is the file and path that you made the edit to?
It's a template monster template, normal Zen Cart rules may not apply.
New Zenner
CoolCarPartsOnline:
It's a template monster template, normal Zen Cart rules may not apply.
sensualsizz.com/TESTINGDEMO
Im testing it now on the default template. still not getting any where and Im in includes/templates/template_default/common/ Deleting the main_page.php makes the page blank so I know I'm in the right spot here's what I got in there now
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper">
<tr>
<?php
if (COLUMN_LEFT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
// global disable of column_left
$flag_disable_left = true;
}
if (!isset($flag_disable_left) || !$flag_disable_left) {
?>
<?php
if ($this_is_home_page) {
$flag_disable_left = true;
}
?>
<td id="navColumnOne" class="columnLeft" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>">
<?php
/**
* prepares and displays left column sideboxes
*
*/
?>
<?php
if ($this_is_home_page) {
$flag_disable_left = true;
}
?>
<div id="navColumnOneWrapper" style="width: <?php echo BOX_WIDTH_LEFT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?></div></td>
<?php
}
?>
<?php
if ($this_is_home_page) {
$flag_disable_left = true;
}
?>
<td valign="top">
<!-- bof breadcrumb -->
<?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>
<div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php } ?>
<!-- eof breadcrumb -->
<?php
if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<!-- bof upload alerts -->
<?php if ($messageStack->size('upload') > 0) echo $messageStack->output('upload'); ?>
<!-- eof upload alerts -->
<?php
/**
* prepares and displays center column
*
*/
Black Belt
Im in includes/templates/template_default/common/
Restore original files that exist there as they should not be edited
https://www.zen-cart.com/tutorials/index.php?article=36
https://www.zen-cart.com/tutorials/index.php?article=346
Why have you entered the statement more than once?
Zen-Venom Get Bitten
Totally Zenned
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper"> <tr> <?php if (COLUMN_LEFT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) { // global disable of column_left $flag_disable_left = true; } if (!isset($flag_disable_left) || !$flag_disable_left) { ?> <?php if ($this_is_home_page) { $flag_disable_left = true; } ?> <td id="navColumnOne" class="columnLeft" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>"> <?php /** * prepares and displays left column sideboxes * */ ?> <?php if ($this_is_home_page) { $flag_disable_left = true; } ?> <div id="navColumnOneWrapper" style="width: <?php echo BOX_WIDTH_LEFT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?></div></td> <?php } ?> <?php if ($this_is_home_page) { $flag_disable_left = true; } ?>anonymous479:
sensualsizz.com/TESTINGDEMO
Im testing it now on the default template. still not getting any where and Im in includes/templates/template_default/common/ Deleting the main_page.php makes the page blank so I know I'm in the right spot here's what I got in there now
<td valign="top">
<!-- bof breadcrumb -->
<?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>
<div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php } ?>
<!-- eof breadcrumb -->
<?php
if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<!-- bof upload alerts -->
<?php if ($messageStack->size('upload') > 0) echo $messageStack->output('upload'); ?>
<!-- eof upload alerts -->
<?php
/**
* prepares and displays center column
*
*/
```
If you have a template installed with override files, then any changes you do to the default template have no affect.
Like Kobra said, leave the default template untouched.
You are using template monster product, you can "try" to contact and get support from them. Most likely the box is hardcoded in there using html.
We won't be able to help you on here.
New Zenner
alrighty thanks.
Tell staff why this post should be reviewed.