Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2006
    Posts
    12
    Plugin Contributions
    0

    Default [Done v2.0.0] tpl_account_default.php HTML Error

    Small HTML error in tpl_account_default.php in the #prevOrders table. The cell widths look like this:

    <tr>
    <td width="70px">
    <td width="30px">
    <td>
    <td width="70px">
    <td width="70px" align="right">
    <td align="right">
    </tr>

    The width attributes shouldn't contain the string "px".

    I did a search and couldn't find this mentioned anywhere else.

    -dave

  2. #2
    Join Date
    Jul 2006
    Posts
    2
    Plugin Contributions
    0

    Default Re: tpl_account_default.php HTML Error

    Thanks for pointing that out. I'm using Zen Cart 1.3.0.1 and found a programming error on this same page that causes the HTML layout to break depending which options are active in the Email Notifications section.

    Code:
    <?php
      if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK !='false' or CUSTOMERS_PRODUCTS_NOTIFICATION_STATUS !='0') {
    ?>
    
    <h2><?php echo EMAIL_NOTIFICATIONS_TITLE; ?></h2>
    
    <?php
      if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK=='true') {
    ?>
    
    <ul id="myAccountNotify" class="list">
    
    <li><?php echo ' <a href="' . zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_NEWSLETTERS . '</a>'; ?></li>
    
    <?php } //endif newsletter unsubscribe ?>
    
    <?php
      if (CUSTOMERS_PRODUCTS_NOTIFICATION_STATUS == '1') {
    ?>
    
    <li><?php echo ' <a href="' . zen_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_PRODUCTS . '</a>'; ?></li>
    
    </ul>
    
    <?php } //endif product notification ?>
    
    <?php } // endif don't show unsubscribe or notification ?>
    should be

    Code:
    <?php
      if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK !='false' or CUSTOMERS_PRODUCTS_NOTIFICATION_STATUS !='0') {
    ?>
    
    <h2><?php echo EMAIL_NOTIFICATIONS_TITLE; ?></h2>
    
    <ul id="myAccountNotify" class="list">
    
    <?php
      if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK=='true') {
    ?>
    
    <li><?php echo ' <a href="' . zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_NEWSLETTERS . '</a>'; ?></li>
    
    <?php } //endif newsletter unsubscribe ?>
    
    <?php
      if (CUSTOMERS_PRODUCTS_NOTIFICATION_STATUS == '1') {
    ?>
    
    <li><?php echo ' <a href="' . zen_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_PRODUCTS . '</a>'; ?></li>
    
    <?php } //endif product notification ?>
    
    </ul>
    
    <?php } // endif don't show unsubscribe or notification ?>
    The enclosing unordered list tags should be placed in the level of the first conditional statement, not with the individual list item conditionals. Otherwise, if only one of the two individual conditions are true, the UL will be missing the opening or closing tag.
    Last edited by froyse; 28 Feb 2007 at 05:49 PM. Reason: typo

  3. #3
    Join Date
    Jan 2004
    Posts
    58,249
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: tpl_account_default.php HTML Error

    The issue reported above for v1.3.0.x has already been implemented in v1.3.5. Note that the currently-released version is v1.3.7.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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
    Aug 2004
    Location
    New York City
    Posts
    7,145
    Plugin Contributions
    0

    Default Re: tpl_account_default.php HTML Error

    Quote Originally Posted by DrByte View Post
    The issue reported above for v1.3.0.x has already been implemented in v1.3.5. Note that the currently-released version is v1.3.7.
    You're freaking me out, Dr. Byte. You've marked this thread "Done 1.3.8".
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  5. #5
    Join Date
    Jan 2004
    Posts
    58,249
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: [Done v1.4.0] tpl_account_default.php HTML Error

    Quote Originally Posted by dweingart View Post
    Small HTML error in tpl_account_default.php in the #prevOrders table. The cell widths look like this:

    <tr>
    <td width="70px">
    <td width="30px">
    <td>
    <td width="70px">
    <td width="70px" align="right">
    <td align="right">
    </tr>

    The width attributes shouldn't contain the string "px".

    I did a search and couldn't find this mentioned anywhere else.

    -dave
    Quote Originally Posted by afo
    You're freaking me out, Dr. Byte. You've marked this thread "Done 1.3.8".
    Oops ... actually, the changes to this template for cell-width are addressed in v1.4
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  6. #6
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,145
    Plugin Contributions
    0

    Default Re: [Done v1.4.0] tpl_account_default.php HTML Error

    Quote Originally Posted by DrByte View Post
    Oops ... actually, the changes to this template for cell-width are addressed in v1.4
    Ah... ok... I'm not having a great day at work and seeing a number higher than the latest release confused me... not difficult today... off to do more debugging.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

 

 

Similar Threads

  1. A nice tpl_account_default
    By NullMind in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Sep 2007, 08:40 AM
  2. HTML Error in Emails
    By a4tech in forum General Questions
    Replies: 6
    Last Post: 3 Aug 2007, 02:50 PM
  3. How to override tpl_account_default.php?
    By mrtorrez in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Jan 2007, 12:05 PM
  4. HTML error, don't know how to resolve.
    By Goshawk in forum General Questions
    Replies: 20
    Last Post: 4 Oct 2006, 10:19 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
  •