Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to comment out mainWrapper in tpl_mail_page.php

How to comment out mainWrapper in tpl_mail_page.php

Locked

Views: 938

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
23 Sep 2009, 10:10 PM
#1
scott_see avatar

scott_see

New Zenner

Join Date:
Apr 2005
Location:
White Salmon, WA
Posts:
60
Plugin Contributions:
0

How to comment out mainWrapper in tpl_mail_page.php

Zen Cart v1.3.8a

I've created a template and I'm trying to modify tpl_main_page.php. I copied the HTML layout to the top of the page and then copied code into the HTML. Now I'm trying to get rid of the "canned" display that is below it.

I tried commenting out the mainWrapper div. But then I still see a duplicate of the product information.

Any ideas how I can do this?

http://hood-river-jewelers.com/store/index.php?main_page=product_info&cPath=36_37&products_id=2 is one of the pages.

I put the HTML right after

<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>

Then I copied stuff like

<?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?>

and

<?php require($body_code); ?>

into the HTML.

Now I need to get rid of the stuff from

<?php if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) { if ($banner->RecordCount() > 0) { ?>

on.

No matter what I comment out, I get a messed up page.

At this point, just the mainWrapper div is commented out.

<!--<div id="mainWrapper"> and so on. I'm sure I'm missing something easy, but I have no clue what. Any ideas? Thanks,
23 Sep 2009, 10:18 PM
#2
scott_see avatar

scott_see

New Zenner

Join Date:
Apr 2005
Location:
White Salmon, WA
Posts:
60
Plugin Contributions:
0

Re: How to comment out mainWrapper in tpl_mail_page.php

Okay, I figured it out.

I changed

<?php /** * prepares and displays center column * */ require($body_code); ?>
                       to...
<?php /** * prepares and displays center column * require($body_code); */ ?>

Basically got rid of $body_code. My commenting out mainWrapper must not have worked. A nesting comment issue? Maybe I shouldn't have used <!--?

At any rate, I think all is well.

Any pointers, if there's an easier way to go about this, would be appreciated.

Thanks,