Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2006
    Posts
    22
    Plugin Contributions
    0

    Default Re: Google Checkout module for Zen Cart released

    Hi!

    I added a Google Acceptance logo found here:

    https://checkout.google.com/seller/a...nce_logos.html

    The only problem when I add the following code to show in a sidebox my website doesnt validate anymore. Here's the code:

    HTML Code:
    <link rel="stylesheet" href="https://checkout.google.com/seller/accept/s.css" type="text/css" media="screen" />
    <script type="text/javascript" src="https://checkout.google.com/seller/accept/j.js"></script>
    <script type="text/javascript">showMark(2);</script>
    <noscript><img src="https://checkout.google.com/seller/accept/images/ht.gif" width="182" height="44" alt="Google Checkout Acceptance Mark" /></noscript>
    Here's the failed validation error:

    Line 68 column 110: document type does not allow element "link" here.
    ...out.google.com/seller/accept/s.css" />

    The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

    One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

    I konw the problem is with this line: <link rel="stylesheet" href="https://checkout.google.com/seller/accept/s.css"

    But I dont know how to fix it. Can someone please point me in the right direction. I have spent hour searching and am at a dead end.

    Thanks,

    Will
    www.brooksestore.com

  2. #2
    Join Date
    Jan 2006
    Posts
    22
    Plugin Contributions
    0

    Default Re: Google Checkout module for Zen Cart released

    hello? ... :-D

  3. #3
    Join Date
    Jan 2004
    Posts
    66,391
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Google Checkout module for Zen Cart released

    You have to link stylesheets in the <HEAD> section. Linking them elsewhere is contrary to XHTML specs.

    You could create an override file for html_header.php and add the stylesheet link there.




    Moving this part of your discussion to a separate thread since it's not directly related to the checkout module.
    .

    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
    Jan 2006
    Posts
    22
    Plugin Contributions
    0

    Default Re: added Google Acceptance logo -- busted site validation

    Awesome! Im gonna go do that now and next time I will start a new thread so I dont hijack another topic. Thanks for the help ... I will post the results.

    Will

    www.brooksestore.com

  5. #5
    Join Date
    Jan 2006
    Posts
    22
    Plugin Contributions
    0

    Default Re: added Google Acceptance logo -- busted site validation

    Dr. Byte...I can't thank you enough!! That worked like a charm. Thanks for the help and for making my Zen Cart experience pleasurable.

    Thanks again!

    Will
    www.brooksestore.com

 

 

Similar Threads

  1. Facebook, Twitter, Google buttons and W3C validation
    By crazysarah in forum General Questions
    Replies: 0
    Last Post: 6 Sep 2012, 10:49 AM
  2. Validation of Corner Site Seal free addon
    By thedjphat in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 27 Dec 2010, 12:45 PM
  3. Replies: 3
    Last Post: 14 Jan 2008, 11:16 PM
  4. Site busted after trying to edit phpBB settings
    By alhakeem2001 in forum General Questions
    Replies: 17
    Last Post: 12 Jan 2008, 08:29 AM
  5. Google acceptance logo does not cover images
    By willalbro in forum Addon Payment Modules
    Replies: 4
    Last Post: 2 Oct 2006, 11:09 PM

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