Results 1 to 7 of 7
  1. #1

    Default Credit card sidebox problem

    Hi there,

    I use the credit card sidebox by Kuroi http://www.zen-cart.com/index.php?ma...roducts_id=156
    but its seems to be causing a problem with the w3c validator. When I view page source it gives me;

    <!--// bof: ccaccept //-->
    <div class="leftBoxContainer" id="ccaccept" style="width: 150px">
    <h3 class="leftBoxHeading" id="ccacceptHeading">We Accept ...</h3>
    <div id="ccacceptContent" class="sideBoxContent">
    </div>
    <img id="ccVisa" class="cc_img" src="images/cc_logos/logo_ccVisa.gif" />
    <img id="ccAmex" class="cc_img" src="images/cc_logos/logo_ccAmex.gif" />
    <img id="ccMC" class="cc_img" src="images/cc_logos/logo_ccMC.gif" />
    <div id="ccacceptContent" class="sideBoxContent">
    </div>


    </div>
    <!--// eof: ccaccept //-->

    The fact that the highlighted div id appears twice causes problems for the validator. Apparently "an "id" is a unique identifier. Each time this attribute is used in a document it must have a different value."

    I've looked through the files which make up the mod but can't see where it's all coming from. Can anyone more knowledgable than me tell me what I need to do?

    Many thanks

  2. #2

    Default Re: Credit card sidebox problem

    Below is what is in my tpl_cc_accept.php

    I don't understand how this could turn into the page source html that I have posted above. What is going on!

    $content = '';
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
    $content .= '<img id="ccVisa" class="cc_img" src="images/cc_logos/logo_ccVisa.gif" alt="Visa" />' . "\n" .
    '<img id="ccAmex" class="cc_img" src="images/cc_logos/logo_ccAmex.gif" alt="American Express" />' . "\n" .
    /**'<img id="ccDiscover" class="cc_img" src="images/cc_logos/logo_ccDiscover.gif" />' . "\n" .**/
    '<img id="ccMC" class="cc_img" src="images/cc_logos/logo_ccMC.gif" alt="Master Card" />' . "\n" .
    /**'<img id="ccPaypal" class="cc_img" src="images/cc_logos/ppslv2.gif" />' . "\n";**/
    $content .= '</div>' . "\n";
    ?>

  3. #3
    Join Date
    Oct 2006
    Location
    Euroa, Victoria, Australia
    Posts
    27
    Plugin Contributions
    0

    help question Re: Credit card sidebox problem

    Now here's the funny thing; I was pondering exactly the same thoughts as barricades was here... Albeit, a few months after...

    The Credit Card Sidebox is doubling up on the id="ccacceptContent" div. I cant see how the php code is producing this. It seems pointless to have neither of these duplicate div's actually "wrapping" the image html.

    Any ideas Zenners? Would love to hear it...

    Would be one extra "issue" to tick-off and include in the [solved] files on the ZC forums for future reference.
    Zencart Web Hosting on lightning fast Australian Servers!
    Free Zencart installation with all new hosting accounts.



  4. #4
    Join Date
    Jul 2007
    Location
    Roseville, Michigan
    Posts
    188
    Plugin Contributions
    0

    Default Re: Credit card sidebox problem

    Has any one found the fix for this error yet?

  5. #5
    Join Date
    Oct 2006
    Location
    Euroa, Victoria, Australia
    Posts
    27
    Plugin Contributions
    0

    Default Re: Credit card sidebox problem

    Doesn't appear so... Might be something that I will have to program myself when I get the time, the urge and again have the need to do so...

    Perhaps you could email the module developer as well and make a request?
    Zencart Web Hosting on lightning fast Australian Servers!
    Free Zencart installation with all new hosting accounts.



  6. #6
    Join Date
    Apr 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: Credit card sidebox problem

    To add to this, it seems to create 1 sets of divs with the ccbox id and class (for styling) to the sidebox and then populate the content, then add another open and closed div with the same id - so the content is effectively populated outside of both sets of divs, too!

  7. #7
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Credit card sidebox problem

    The code within this sidebox looks like it should. There doesn't seem to be any issues with that.

    Is this the only box that does that on your site?

    I looked it up for other users with that and their sites all seem to work just fine. Here is one example I found (just Googled "ccacceptContent" and looked at the sites using it.):

    http://www.mysalon.biz/

    http://www.endlesssonata.com/catalogue/


    Here is another forum link that may help if there are issues.

    https://www.zen-cart.com/forum/showthread.php?t=105422


    Looks like it could be something wrong with the way it was placed on the page on your end?
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

 

 

Similar Threads

  1. problem with PayPal Credit Card Sidebox V1.0
    By irishshopper in forum Addon Sideboxes
    Replies: 1
    Last Post: 24 Apr 2011, 12:40 PM
  2. Credit Card Image in sidebox
    By joemind in forum Basic Configuration
    Replies: 1
    Last Post: 11 Jun 2009, 04:55 PM
  3. credit card sidebox
    By ronron in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Apr 2009, 10:25 AM
  4. credit card sidebox
    By moksha in forum Basic Configuration
    Replies: 5
    Last Post: 8 Jun 2008, 05:17 AM
  5. Credit Card Sidebox
    By Ozibob in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 15 Oct 2007, 12:09 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