Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2005
    Location
    White Salmon, WA
    Posts
    62
    Plugin Contributions
    0

    Default 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...&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,
    Scott See
    www.hammock.net
    Global Marketing
    White Salmon, WA

  2. #2
    Join Date
    Apr 2005
    Location
    White Salmon, WA
    Posts
    62
    Plugin Contributions
    0

    Default 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,
    Scott See
    www.hammock.net
    Global Marketing
    White Salmon, WA

 

 

Similar Threads

  1. v155 How to get logo in mainwrapper instead of under mainwrapper
    By aurelius in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Aug 2016, 07:55 PM
  2. Comment out and un-comment
    By evvano in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 30 Sep 2009, 04:27 AM
  3. How to comment-out Option Type?
    By benjames in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 13 Sep 2006, 02:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR