Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2008
    Posts
    328
    Plugin Contributions
    0

    help question HTML Validation almost perfect

    I managed to exterminate almost all HTML validation errors in my site.

    There is an error, however, that I find somewhat more difficult to spot: In the Gift Certificates page there is one form that is not closed.

    Attempting to trace back to the PHP module that creates this form (which has the name "multiple_products_cart_quantity") I managed to find two suspects:
    1. includes/modules/product_listing.php
    2. includes/templates/template_default/templates/tpl_proudcts_all_default.php


    In the first suspect, product_listing.php, the last statement in the file, a zen_draw_form() seems to be not closed by a </form>. This is either a bug or it is being closed but in another file. If the latter which file is supposed to close it?

    In the second suspect, tpl_proudcts_all_default.php, the </form> at the end of the file is conditional. Perhaps this is the source of the problem? A bug?

    In either case, one </form> is missing, as detected by the W3C HTML validation.

    Any suggestion or idea how to zero-in on the problem?

    Thanks.

  2. #2
    Join Date
    Jun 2008
    Posts
    328
    Plugin Contributions
    0

    Idea or Suggestion Re: HTML Validation almost perfect

    Update: I found the bug. It was in my customized code and not in the two files mentioned above (tricky!). It turned out to be in

    includes/templates/<my template>/templates/tpl_index_product_list.php

    It had nothing to do with the original Zen Cart code. However, it seems that starting a <form> at the end of includes/modules/product_listing.php and not closing it in the same module, can be very confusing and can lead to pitfalls like this.

 

 

Similar Threads

  1. Validation Errors for HTML
    By khopek in forum General Questions
    Replies: 2
    Last Post: 13 Feb 2008, 01:21 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