Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Mar 2010
    Posts
    251
    Plugin Contributions
    0

    Default Re: Validating Product Info Page

    Quote Originally Posted by moesoap View Post
    Thanks to gjh42 this is now down to 6 errors.

    I am still receiving the one listed above and have now noticed that easypopulate 1.2.5.4 is converting <ul id="productDetailsList"> into <ul id=”productDetailsList”> when I add it to the database.

    Anyone know why? or the answer to the table error above?

    Thanks.
    Solved the easypopulate errors by changing the ul id name, I now only have 4 errors can someone offer a solution to this table error?

    Code:
    Line 575, Column 155: end tag for "table" which is not finished
    
    …;" bgcolor="#FFFFCC" width="500" cellpadding="3" cellspacing="3"></table></div>
    
    ✉
    
    Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>
    
    Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists require appropriate list items (<ul> and <ol> require <li>; <dl> requires <dt> and <dd>), and so on.

  2. #12
    Join Date
    Mar 2010
    Posts
    251
    Plugin Contributions
    0

    Default Re: Validating Product Info Page

    Ok, the last 4 errors are caused by the comments section of the attributes box. The table that I have wrapped around the comment section in module.attributes.php is being pulled into the page even when I dont have comments for those particular attributes selected.

    I could add comments to those attributes and that will remove the errors, however that is not ideal as it spoils the page layout.

    Is there anyway to switch comments off for particular attributes that are being used?


  3. #13
    Join Date
    Mar 2010
    Posts
    251
    Plugin Contributions
    0

    Default Re: Validating Product Info Page

    Solved...

    I changed the following line in module.attributes.php from

    PHP Code:
    <?php
      
    if ($options_comment[$i] != '' and $options_comment_position[$i] == '0') {
    to

    PHP Code:
    <?php
      
    if ($options_comment[$i] != '1' and $options_comment_position[$i] == '0') {
    This brings the comment box in whether or not a comment is present.

    Thanks to all who assisted.


  4. #14
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Validating Product Info Page

    The best way to solve the problem is to move the entire custom div/table inside the conditional so none of it is output when there is no comment.
    PHP Code:
    <?php
      
    if ($options_comment[$i] != '' and $options_comment_position[$i] == '0') {
    ?>
    <div class="attcontrolcomments"><table border="1" style="border: 1px solid #FFC000;" bgcolor="#FFFFCC" width="500" cellpadding="3" cellspacing="3">
    <tr><td><h3 class="attributesComments"><?php echo $options_comment[$i]; ?></h3></td></tr>

    </table></div><?php
      
    }
    ?>

  5. #15
    Join Date
    Mar 2010
    Posts
    251
    Plugin Contributions
    0

    Default Re: Validating Product Info Page

    Quote Originally Posted by gjh42 View Post
    The best way to solve the problem is to move the entire custom div/table inside the conditional so none of it is output when there is no comment.
    PHP Code:
    <?php
      
    if ($options_comment[$i] != '' and $options_comment_position[$i] == '0') {
    ?>
    <div class="attcontrolcomments"><table border="1" style="border: 1px solid #FFC000;" bgcolor="#FFFFCC" width="500" cellpadding="3" cellspacing="3">
    <tr><td><h3 class="attributesComments"><?php echo $options_comment[$i]; ?></h3></td></tr>

    </table></div><?php
      
    }
    ?>

    Just brilliant, you are a legend. Thanks for your help on this!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Page validating (error checking)
    By marcopolo in forum General Questions
    Replies: 4
    Last Post: 19 Oct 2015, 10:04 PM
  2. v151 Product info page blank but shows template no info
    By Pablo_escobar in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 17 Jan 2014, 11:17 PM
  3. Product Info Page: Moving Product Name Up On Product Info Page
    By khopek in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 19 Feb 2010, 08:01 AM
  4. Validating product_info page
    By Sake in forum General Questions
    Replies: 1
    Last Post: 23 May 2007, 08:05 PM

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