Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Posts
    20
    Plugin Contributions
    0

    Default Credit card side box

    I am using Zen Cart 1.3.8a and added the credit card side box.

    I removed the google checkout logo since I dont use google.

    My problem is the cards are not centered in the box.

    My site www.dalespuzzles.com

    According to the install instructions I can add some coding to fix this.

    Add the following line to your stylesheet and tweak as needed
    #ccacceptContent {text-align:center; padding:10px 20px; line-height:1.5em;}
    IDs and a class for the card icons are also available for fine tuning the look
    of this box

    This is my style sheet info:
    <?php
    /**
    * tpl_cc_accept.php
    *
    * Loaded automatically by index.php?main_page=account_edit.<br />
    * Displays information related to a single specific order
    *
    * @package templateSystem
    * @copyright Copyright 2003-2008 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * $Id: tpl_cc_accept.php v 1.2.1 2008-04-10
    * Originally copied from featured.php and modified by Carter Harris
    * Upgraded to work with Zen Cart 1.3.8 by kuroi
    * Modified with Google Checkout and Paypal CC_Logos by WebSkipper
    */

    /**
    Delete this line- Download the previous version and follow the
    */

    $content = '';
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
    $content .= '<img id="ccMC" class="cc_img" src="images/cc_logos/logo_ccMC.gif" />' . "\n" .'<img id="ccVisa" class="cc_img" src="images/cc_logos/logo_ccVisa.gif" />' . "\n" .
    '<img id="ccAmex" class="cc_img" src="images/cc_logos/logo_ccAmex.gif" />' . "\n" .
    '<img id="ccDiscover" class="cc_img" src="images/cc_logos/logo_ccDiscover.gif" />' . "\n" .
    '<img id="ccEcheck" class="cc_img" src="images/cc_logos/logo_ccEcheck.gif" />' . "\n".
    '<img id="ccPaypal" class="cc_img" src="images/cc_logos/PayPal_mark_37x23.gif" />' . "\n".
    $content .= '</div>' . "\n";
    ?>


    Where do i put the code so I can get my credit cards looking centered?

    Thank you for the help
    Dale

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Credit card side box

    That's not your stylesheet - it is in includes/templates/rustic/css

    Try adding this to stylesheet.css at the bottom if you don't need the padding, etc.:

    #ccaccept {text-align:center;}

  3. #3
    Join Date
    Jan 2009
    Posts
    20
    Plugin Contributions
    0

    Default Re: Credit card side box

    Thank you that worked out just fine!

 

 

Similar Threads

  1. Incorrect credit card acceptance side box
    By audiografix in forum Addon Sideboxes
    Replies: 2
    Last Post: 23 Nov 2010, 11:02 AM
  2. Replies: 1
    Last Post: 26 Oct 2009, 03:30 AM
  3. Why do I have credit card fields when the credit card module is not enabled?
    By RayDube in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 8 Jan 2009, 07:39 PM
  4. Credit Card Side Box Centering Problem
    By chris32882 in forum Addon Sideboxes
    Replies: 6
    Last Post: 18 Nov 2008, 08:54 AM
  5. Adding Verified and credit card logos each side of logo
    By chris32882 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 21 Oct 2008, 05:11 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