Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Adding Credit Card logos on Payment

Adding Credit Card logos on Payment

Views: 7,935

Results 1 to 7 of 7
31 Dec 2006, 3:03 PM
#1
hnchew avatar

hnchew

New Zenner

Join Date:
Dec 2006
Posts:
11
Plugin Contributions:
0

Adding Credit Card logos on Payment

Under **Configuration>Credit Cards>Credit Card Enabled - Show on Payment, **there is this note "images and text must be defined in both the database and language file for specific credit card types."

How do I add in the logo for the various credit cards?

31 Dec 2006, 7:03 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,695
Plugin Contributions:
56

Re: Adding Credit Card logos on Payment

Get them off the web and put them in includes/templates/custom/images/icons
Their names should be cc1.gif, cc2.gif, cc5.gif for visa, mastercard, discover.

Scott

21 Mar 2007, 7:40 AM
#3
taxidermy_smile avatar

taxidermy_smile

New Zenner

Join Date:
Jun 2005
Location:
KY - USA
Posts:
23
Plugin Contributions:
0

Re: Adding Credit Card logos on Payment

Hi,

I know this is an old post, but...

Get them off the Internet and ftp them to your:

catalog/includes/templates/your_template/images/icons/

Filenames

cc1.gif = Visa
cc2.gif = Mastercard
cc3.gif = American Express
cc4.gif = Diners Club
cc5.gif = Discover
cc6.gif = JCB
cc7.gif = Australian Bankcard

Look in your:

catalog/includes/languages/your_language/credit_cards.php

With the image names and text for each card.:thumbsup:

Good luck!

21 Mar 2007, 8:36 AM
#4
taxidermy_smile avatar

taxidermy_smile

New Zenner

Join Date:
Jun 2005
Location:
KY - USA
Posts:
23
Plugin Contributions:
0

Re: Adding Credit Card logos on Payment

Optional edit:

In your catalog/includes/languages/your_language/icon_names.php

Add alt tag information like this...

find before the last ?>

// cc enabled image
define('IMAGE_CC_ENABLED_VISA', zen_image($template->get_template_dir('cc1.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc1.gif'));
define('IMAGE_CC_ENABLED_MC', zen_image($template->get_template_dir('cc2.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc2.gif'));
define('IMAGE_CC_ENABLED_AMEX', zen_image($template->get_template_dir('cc3.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc3.gif'));
define('IMAGE_CC_ENABLED_DINERS_CLUB', zen_image($template->get_template_dir('cc4.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc4.gif'));
define('IMAGE_CC_ENABLED_DISCOVER', zen_image($template->get_template_dir('cc5.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc5.gif'));
define('IMAGE_CC_ENABLED_JCB', zen_image($template->get_template_dir('cc6.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc6.gif'));
define('IMAGE_CC_ENABLED_AUSTRALIAN_BANKCARD', zen_image($template->get_template_dir('cc7.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc7.gif'));

and change it to:

// cc enabled image
define('IMAGE_CC_ENABLED_VISA', zen_image($template->get_template_dir('cc1.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc1.gif', 'Visa'));
define('IMAGE_CC_ENABLED_MC', zen_image($template->get_template_dir('cc2.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc2.gif', 'Mastercard'));
define('IMAGE_CC_ENABLED_AMEX', zen_image($template->get_template_dir('cc3.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc3.gif', 'American Express'));
define('IMAGE_CC_ENABLED_DINERS_CLUB', zen_image($template->get_template_dir('cc4.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc4.gif', 'Diners Club'));
define('IMAGE_CC_ENABLED_DISCOVER', zen_image($template->get_template_dir('cc5.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc5.gif', 'Discover'));
define('IMAGE_CC_ENABLED_JCB', zen_image($template->get_template_dir('cc6.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc6.gif', 'JCB'));
define('IMAGE_CC_ENABLED_AUSTRALIAN_BANKCARD', zen_image($template->get_template_dir('cc7.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc7.gif', 'Australian Bankcard'));

Post window wrapped the code
Good luck!

4 Jun 2007, 11:31 PM
#5
ashton0603 avatar

ashton0603

Zen Follower

Join Date:
May 2007
Posts:
109
Plugin Contributions:
0

Re: Adding Credit Card logos on Payment

I am trying to figure out how to change the "my card" credit card logos and replace them with visa, mastercard, etc. I read this post and mentions going to catalog/includes/templates/your_template/images/icons/

and I guess changing the code info there. I don't know how to get to these pages. It doesn't show in define pages at all. I don't even know how to figure out the names of these pages to know that they exist. I know I had a similar problem with the shopping cart page. It has text there but I have no idea how to get to that page and remove the sample text there either. Can someone assist me with walking me through finding pages like the one above and other pages that are not listed in define pages or ez pages.

Thanks

16 Aug 2010, 3:13 PM
#6
captainpicard avatar

captainpicard

New Zenner

Join Date:
Aug 2010
Posts:
8
Plugin Contributions:
0

Re: Adding Credit Card logos on Payment

How can I edit the sizes of the logos because the VISA icon is smaller than the rest. When I inspect the images with Opera it shows that I would need to edit the HTML because it's coded to a smaller width and height than the rest????

:frusty:

27 Nov 2011, 4:51 PM
#7
l3akuuu avatar

l3akuuu

New Zenner

Join Date:
Nov 2011
Posts:
1
Plugin Contributions:
0

Re: Adding Credit Card logos on Payment

You are absolutely right. Thanks.