Look in the template's COMMON folder for tpl_main_page.php and see if the settings there have been configured to hide the right column.
Look in the template's COMMON folder for tpl_main_page.php and see if the settings there have been configured to hide the right column.
20 years a Zencart User
OK -- found the 'tpl_main_page.php' file...and have found code referencing the right column...HOWEVER... I don't know PHP so exactly what am I looking for? ie; what would "settings" in PHP code look like ?
I am not saying that tpl_main_page.php IS your problem... but that it MIGHT be your problem...
Look at the long list of commented code at the top...
If you see anything were the following line is being rendered ACTIVE
Then it is possible that this is your issue. You can DE-activate it by COMMENTING it out - probably by putting an asterisk in front of it (if it is still in this header text)PHP Code:$flag_disable_right = true;
... or by using php comment tags //PHP Code:* $flag_disable_right = true;
Look also at the line that says:PHP Code:// $flag_disable_right = true;
if the text:PHP Code:// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
$flag_disable_right = true;
}
... is not there, and you see a list of pages being referenced instead, (EG: index,contact_us,checkout_shipping,shopping_cart,...)PHP Code:list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces
Then DELETE all these page names, so that the lines of code look like this:
It is important to retain the php SYNTAX here... if you omit one single quote mark, you will break the page...PHP Code:// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,explode(",",'')) ) {
$flag_disable_right = true;
}
My example is proper syntax.
20 years a Zencart User
- Yes -- I understand that you are suggesting to just 'check' the tpl_main_page.php page and it may NOT be the issue.
- OK -- found all the commented code at the top and did find the PHP code "$flag_disable_right = true;" ...but it has the "*" in front of it so it's still a comment.
- This is the other reference to the right-column:
PHP Code:<?php
//if (COLUMN_RIGHT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_RIGHT_OFF == 'true' && $_SESSION['customers_authorization'] != 0)) {
if (COLUMN_RIGHT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_RIGHT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
// global disable of column_right
$flag_disable_right = true;
}
if (!isset($flag_disable_right) || !$flag_disable_right) {
?>
<td id="navColumnTwo" class="columnRight">
<?php
/**
* prepares and displays right column sideboxes
*
*/
?>
<div id="navColumnTwoWrapper"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_right.php')); ?></div></td>
<?php
}
?>
</tr>
</table>