Hello
Yes it's the tpl_main_page.php i tried to mod the code isn't the same as
the example i tried to add the code from
<?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) {
?>
<td id="navColumnOne" class="columnLeft" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>">
<?php
/**
* prepares and displays left column sideboxes
*
*/
?>
<?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
if (in_array($current_page_base,explode(",",'contact_us,conditions')) ) {
$flag_disable_left = true;
}
if (!isset($flag_disable_left) || !$flag_disable_left) {
?>
<td id="navColumnOne" class="columnLeft" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>">
<?php
/**
* prepares and displays left column sideboxes
*
*/
?>
When searching the code i didn't find
$current_page_base,explode
Thanks
Brian
Thank you Anne
I need to read up on the overide i've tried adding to the exsisting file
to no joy
In your earlier reply you mention /overide/ was this a hint as i dont
have that folder and was thinking do i need to create overide files for
the pages i require to overide
Thanks
Brian
Look what I found when I searched for "if (in_array($current_page_base,explode" in the FAQ:
Can I turn off the left or right hand columns for some pages only?
http://www.zen-cart.com/content.php?...ome-pages-only
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Hello
That's the faq i've been trying to implement
I know the file and it's location and the code
I just dont have any joy when i try to include
it into the global left section of tpl_main_page.php
It will be me im no php'er i understand code in general
Just not php if someone could help i'd be thankful
Thanks
Brian
Bookmarks