Post by helenmarie » Thu Jun 17, 2010 4:00 am

Hello, I have searched the forum and cant find this question being answered anywhere else, but forgive me if it has been asked before and I have missed it :-) but....

Which files do I edit so I can add the paypal and sagepay logos to the payment checkout pages next to the radio check buttons instead of the text 'Paypal' and 'Credit/Debit Card (Sagepay)'?

or maybe add the logos underneath the text?

Thank you

Helen

User avatar
New member

Posts

Joined
Sat Nov 07, 2009 1:05 am

Post by dada » Thu Jul 08, 2010 10:45 pm

Also I need to find a solution for this problem. Anyone?

Newbie

Posts

Joined
Fri Jul 02, 2010 1:08 am

Post by eccorals » Thu Jul 07, 2011 7:20 am

Has this been answered?

Newbie

Posts

Joined
Thu Jul 07, 2011 7:19 am

Post by nyltak » Tue Aug 16, 2011 8:07 am

am searching for an answer to this as well, I would like to put the UPS logo on the shipping page also.

New member

Posts

Joined
Wed Jul 20, 2011 9:56 am

Post by SamNabz » Tue Aug 16, 2011 11:56 am

Go to 'catalog/language/english/payment' and edit the desired payment file. For this example, I will be editing the bank_transfer.php file.

Find:

Code: Select all

$_['text_title']       = 'Bank Transfer';
And replace the title with the link to the image - example below:

Code: Select all

$_['text_title']       = '<img src="http://www.domain.com/image/data/anz.gif" width="120" />';
And here is the result:
Image

Cheers, Sam


Active Member

Posts

Joined
Wed Jul 06, 2011 7:32 am
Location - Sydney, Australia

Post by fourgood » Fri Oct 07, 2011 5:45 pm

thanks, that works. but unfortunately it places the logo also on the invoice and confirmation mails, which is not what i want.

any resolution for that?

Active Member

Posts

Joined
Wed Oct 20, 2010 9:49 pm

Post by fourgood » Fri Oct 07, 2011 6:09 pm

Ok, got it:

goto
/catalog/model/payment/pp_standard.php for example and change

Code: Select all

'title'      => $this->language->get('text_title')
to this

Code: Select all

'title'      => $this->language->get('img_title')
then goto
/catalog/language/english/payment/pp_standard.php

and add

Code: Select all

$_['img_title']			= '<img src="' . HTTPS_SERVER . 'catalog/view/theme/default/image/payment/your_paypal_logo.png" alt="PayPal.com" title="PayPal.com" /></a>';

Active Member

Posts

Joined
Wed Oct 20, 2010 9:49 pm

Post by rwalker » Fri Oct 14, 2011 1:39 am

Thank you!!

Discount Golf Clubs and Golf Equipment - Powered by Opencart


New member

Posts

Joined
Fri Jul 01, 2011 8:14 am

Post by BionicBill » Thu Feb 07, 2013 10:26 am

Found a better solution works for 1.5.4

Go to
In 'catalog/controller/language/payment/your payment method.php' and add the following:

Find:

Code: Select all

 $_['text_title']               = 'credit cards (PayPal Advanced)'
Add below:

Code: Select all

$_['pay_icon']                  ='<img src"' . HTTPS_SERVER . 'catalog/view/default/image/your_payment_logo.png" alt="payment text goes here" title-"payment title" /></a>';
Next find: 'catalog/model/payment/your payment type.php

Find:

Code: Select all

'title'                =>  $this->language->get('text_title')
Add below that :

Code: Select all

'p_logo'              => $this->language->get('pay_icon')
Next in: 'catalog/view/theme/default/template/payment/your payment method.tpl'

Replace :

Code: Select all

<label for="<?php echo $payment_method['code']; ?>" style="cursor: pointer;"><?php echo $payment_method['title']; ?></label></td>
With this:

Code: Select all

<label for="<?php echo $payment_method['code']; ?>" style="cursor: pointer;"><?php echo $payment_method['p_logo']; ?></label></td>

New member

Posts

Joined
Tue Dec 04, 2012 4:08 am

Post by sunster » Fri Feb 15, 2013 6:30 am

Has anyone tried the above method and is this the best method?

Thanks

New member

Posts

Joined
Thu Sep 27, 2012 3:25 am

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by sunster » Fri Feb 15, 2013 12:08 pm

Lol, adding a logo for free is way better than $70 bucks.

New member

Posts

Joined
Thu Sep 27, 2012 3:25 am

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by preto » Sat Jun 01, 2013 4:49 am

I had to change some things to make it work
BionicBill wrote:Found a better solution works for 1.5.4

Go to
In 'catalog/controller/language/payment/your payment method.php' and add the following:

Find:

Code: Select all

 $_['text_title']               = 'credit cards (PayPal Advanced)'
Add below:

Code: Select all

$_['pay_icon']                  ='<img src"' . HTTPS_SERVER . 'catalog/view/default/image/your_payment_logo.png" alt="payment text goes here" title-"payment title" /></a>';
Next find: 'catalog/model/payment/your payment type.php

Find:

Code: Select all

'title'                =>  $this->language->get('text_title')
Add below that :

Code: Select all

'p_logo'              => $this->language->get('pay_icon')
Next in: 'catalog/view/theme/default/template/payment/your payment method.tpl'

Replace :

Code: Select all

<label for="<?php echo $payment_method['code']; ?>" style="cursor: pointer;"><?php echo $payment_method['title']; ?></label></td>
With this:

Code: Select all

<label for="<?php echo $payment_method['code']; ?>" style="cursor: pointer;"><?php echo $payment_method['p_logo']; ?></label></td>
Go to
In 'catalog/controller/language/payment/your payment method.php' and add the following:
actulally the correct path is:
'catalog/language/controller/YOULANGUAGE/payment/your payment method.php'


and in
Next in: 'catalog/view/theme/default/template/payment/your payment method.tpl'

Replace :

Code: Select all

<label for="<?php echo $payment_method['code']; ?>" style="cursor: pointer;"><?php echo $payment_method['title']; ?></label></td>
With this:

Code: Select all

<label for="<?php echo $payment_method['code']; ?>" style="cursor: pointer;"><?php echo $payment_method['p_logo']; ?></label></td>
I went to 'catalog/view/theme/default/template/checkout/payment_method.tpl'

and change the line:

Code: Select all

   	<td><label for="<?php echo $payment_method['code']; ?>"><?php echo $payment_method['title']; ?></label></td>
for this:

Code: Select all

<td><label for="<?php echo $payment_method['code']; ?>"><?php if(isset($payment_method['p_logo'])){ echo $payment_method['p_logo'];}else{echo $payment_method['title'];} ?></label></td>

Newbie

Posts

Joined
Wed Mar 07, 2012 4:25 am

Post by meistralf » Thu Jun 25, 2015 11:39 am

how can i add multiple logo?

Newbie

Posts

Joined
Tue Mar 24, 2015 4:07 pm

Post by artcore » Fri Jun 26, 2015 5:00 am

Here's how I did it.
In template/checkout/payment_method.tpl use the name of the payment method in the 'template/payment' folder as the array key (left) and the name of the preferred image on the right. If the name of your payment method matches it will use the chosen image.

before

Code: Select all

<?php foreach ($payment_methods as $payment_method) { ?>
add

Code: Select all

<?php $logos = array(
              'bank_transfer'      => 'banktransfer.png',
              'cod'                => 'post-nl.png',
              'direct_ebanking'    => 'direct-ebanking.png',
              'free_checkout'      => 'free.jpg',
              'idealcheckoutideal' => 'ideal.png',
              'mistercash'         => 'mistercash.png',
              'moneybookers'       => 'moneybookers.png',
              'pp_standard'        => 'paypal.png',
              'pp_express'         => 'paypal.png',
              'sofort'             => 'sofort.png',
             ); ?>
This is an example, add more method+image to suit your needs.

before

Code: Select all

<?php echo $payment_method['title']; ?>
add

Code: Select all

<?php foreach ($logos as $method=>$logo) {
              if ($payment_method['code'] == $method) {
               echo '<img src="'.HTTP_SERVER.'image/payment-icons/' . $logo . '" height="24">';
              }
          } ?>
I can't attach a file(zip) to this post. I'll try again tomorrow or add it to the extension store for free :)

User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by artcore » Sat Jul 04, 2015 2:44 am

A free vQmod for all versions can be downloaded here:
http://www.opencart.com/index.php?route ... n_id=22915

User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by sitedeveloper999 » Fri Oct 20, 2017 9:35 am

Hey artcore, the link to the VQMod doesn't work anymore :(

Do you happen to have a copy somewhere, or better yet, an updated version for 3.0.2.0?

Thanks in advance if you do, thanks anyway for the manual solution :)

New member

Posts

Joined
Tue Aug 09, 2016 2:09 am

Post by IP_CAM » Sat Oct 21, 2017 10:13 am

Some free Solutions for different OC Versions on this ! ;)
Exept for latest Versions, those usually don't yet come for free ! :laugh:
Ernie
---
Payment/Shipping Images 151 free, OC v.1.5.1.x:
https://www.opencart.com/index.php?rout ... on_id=2851
---
Payment Logo free, OC v.1.5.3.x - 1.5.6.x:
https://www.opencart.com/index.php?rout ... n_id=16173
---
Payment Logo free, OC v.1.5.5.x - 1.5.6.x:
https://www.opencart.com/index.php?rout ... n_id=14358
---
Checkout Payment Logos free, OC v.2.0.0.0 - 2.3.0.2:
https://www.opencart.com/index.php?rout ... n_id=29551
---
add icon checkout and payment icons free, OC v.2.0.1.0 - 2.1.0.1:
https://www.opencart.com/index.php?rout ... n_id=28125
---
Image
---

Ernie's OpenCart v.1.5.6.5 LIGHT + OpenShop Admin v.1.75 Test Sites
http://www.ebikes.li - http://www.evelo.li - http://www.openshop.li
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 19 guests