These forums are great. I'm a newbie at php and the forums are helping me a lot. I thought I'd return the favor by posting a solution I was looking for and couldn't find on here. Hope it helps someone else.
I didn't like having the side info boxes in the printable catalog. I searched the forums and found a few threads where a fix for this was requested, but even the ones that said they solved it didn't post it in the thread. So I had to figure it out myself. My solution is template specific so no need to modify anything in the main oscmax files. Just added an 'if not' condition in the main_page.tpl.php file in my template folder.
In your template folder edit the main_page.tpl.php file.
IN THE <!-- body //--> SECTION
FOR THE LEFT COLUMN
FIND THE FOLLOWING CODE:
***********************************************
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="150" "<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<?php
// Hide Left Column if not to show
if (DOWN_FOR_MAINTENANCE == 'false' or DOWN_FOR_MAINTENANCE_COLUMN_LEFT_OFF =='false') {
?>
<!-- left_navigation //-->
<?php require(bts_select('column', 'column_left.php')); // BTSv1.5 ?>
<!-- left_navigation_eof //-->
<?php
}
?>
</table></td>
***********************************************
REPLACE WITH:
***********************************************
<?php
if ($content != CONTENT_PRINTABLE_CATALOG) {
?>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="150" "<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<?php
// Hide Left Column if not to show
if (DOWN_FOR_MAINTENANCE == 'false' or DOWN_FOR_MAINTENANCE_COLUMN_LEFT_OFF =='false') {
?>
<!-- left_navigation //-->
<?php require(bts_select('column', 'column_left.php')); // BTSv1.5 ?>
<!-- left_navigation_eof //-->
<?php
}
?>
</table></td>
<?php
}
?>
***********************************************
FOR THE RIGHT COLUMN
FIND THE FOLLOWING CODE:
***********************************************
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<?php
// Hide column_left.php if not to show
if (DOWN_FOR_MAINTENANCE == 'false' or DOWN_FOR_MAINTENANCE_COLUMN_RIGHT_OFF =='false') {
?>
<!-- right_navigation //-->
<?php require(bts_select('column', 'column_right.php')); // BTSv1.5 ?>
<!-- right_navigation_eof //-->
<?php
}
?>
</table></td>
***********************************************
REPLACE WITH:
***********************************************
<?php
if ($content != CONTENT_PRINTABLE_CATALOG) {
?>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<?php
// Hide column_left.php if not to show
if (DOWN_FOR_MAINTENANCE == 'false' or DOWN_FOR_MAINTENANCE_COLUMN_RIGHT_OFF =='false') {
?>
<!-- right_navigation //-->
<?php require(bts_select('column', 'column_right.php')); // BTSv1.5 ?>
<!-- right_navigation_eof //-->
<?php
}
?>
</table></td>
<?php
}
?>
***********************************************
This will make the columns display normally on all your pages except for the printable catalog. Your customer can return to your catalog using the Top Navigation Bar.
Thanks.
Lee
photography website: Wolf Spirit Studio
osmax store: Riding Hood Boutique : Sexy Lingerie, Intimate Apparel, and Costumes





LinkBack URL
About LinkBacks






Bookmarks