Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    149
    Plugin Contributions
    1

    Default Re: Printer Friendly

    Yep! I am aware of this. I am compliant, using v1.3.x

    My delima is that I only wish to print out the Stage area as shown in the image above. For the life of me, I can only get the printer to print out the header and the footer. Perhaps I am placing calling the wrong id

    Thanks,
    Slabadoo

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Printer Friendly

    You have some bizarrely mixed HTML in your template.

    Your footer has mixed content which you appear to have copied verbatim from other parts of the main layout, thus ending up with duplicate id elements and a table for the footer appears to be embedded in column two code, etc.
    HTML Code:
    <td id="navColumnTwo" class="columnRight" style="width: 219px">
    <div id="navColumnTwoWrapper" style="width: 219px"></div></td>
      </tr>
      <tr>
        <td bgcolor="#e6e6e6" class="columnLeft" id="navColumnOne" style="width: 231px">&nbsp;</td>
        <td valign="top"><table width="540" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="491" bgcolor="#e6e6e6"><FONT color=#cdcdcd>&nbsp; <FONT face=Verdana 
          color=#b4b4b4>&nbsp;<FONT color=#9a9a9a size=1>&copy; 2007&nbsp;Michael
                    Weinig AG </FONT></FONT></FONT></td>
            <td width="49" bgcolor="#e6e6e6"><a href="#" onclick="window.scrollTo(0,0); return false"><IMG height=17 
          src="http://www.........com/navimages/top.gif" width=18 align=right 
          border=0></A><a href="javascript:window.print()"><IMG height=17 
          src="http://www..........com/navimages/print.gif" width=18 align=right 
          border=0></a></td>
          </tr>
        </table></td>
        <td id="navColumnTwo" class="columnRight" style="width: 219px">&nbsp;</td>
    Plus, you put your header into a table completely outside the original "headerWrapper", making it unreachable by built-in styling. This is fine as long as you add the required id's and classes to it so it can be influenced by the stylesheet.

    And the main reason you're getting a blank "stage" as you call it when you try to print is because you have not retained matched tags when you edited your navigation area ... you're missing a closing </div> and therefore your whole "centerColumn" is being treated as though it's inside the "navMainWrapper" ... which is hidden for printing purposes.
    HTML Code:
    	<!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><a href="http://........../">Profile Catalog Home</a></li>
        <li><a href="http://......index.php?main_page=login">Log In</a></li>
    
    </ul>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->
    
    <!-- bof  breadcrumb -->
    <!-- eof breadcrumb -->
    
    
    <!-- bof upload alerts -->
    <!-- eof upload alerts -->
    
    <div class="centerColumn" id="indexCategories">
    <h1 id="indexCategoriesHeading">Bar Rails</h1>
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Printer Friendly

    oh, and having this in your stylesheet will "prevent" your "stage" area from showing up, at least on that page ... note that display: none means ... don't show.
    HTML Code:
    @media print {
      .categoryListBoxContents {display: none}
    }
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Printer Friendly

    Can't add much to that Drbyte :-)

    Some unrelated errors in the CSS are that it contains some faulty color settings:
    Code:
    	color: 0000CC;
    In general it's better to track down and solve all/most CSS and HTML errors first, when having "weird" problems.

  5. #5
    Join Date
    Jan 2007
    Posts
    149
    Plugin Contributions
    1

    Default Re: Printer Friendly

    OK, I added the </div> and took out the display none. Still , not printing?

    Any other thoughts?

    Thanks,
    Slabadoo

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Printer Friendly

    1. get rid of this in your stylesheet.css
    Code:
    @media print {
      .categoryListBoxContents
    }
    2. In this section, add another closing </div>, as shown:
    Code:
    	<!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><a href="http://...../">Profile Catalog Home</a></li>
    
        <li><a href="http://....../index.php?main_page=login">Log In</a></li>
    
    </ul>
    <br class="clearBoth" />
    </div>
    </div>
    <!--eof-navigation display-->
    That should get your "stage" area printing. You can deal with the other issues separately.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Jan 2007
    Posts
    149
    Plugin Contributions
    1

    Default Re: Printer Friendly

    DrByte

    thank you. This solved my printing problem.

    Slabadoo...

 

 

Similar Threads

  1. Printer Friendly product page?
    By kburner in forum General Questions
    Replies: 4
    Last Post: 12 May 2010, 01:05 AM
  2. Printer Friendly Button ?
    By Alex123 in forum General Questions
    Replies: 11
    Last Post: 19 Jun 2008, 05:15 AM

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