Forums / Built-in Shipping and Payment Modules / Adding Paypal logo to payment page

Adding Paypal logo to payment page

Locked

Views: 6,016

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
11 Jul 2006, 4:14 PM
#1
dandownunder avatar

dandownunder

Zen Follower

Join Date:
Jan 2006
Location:
Portugal
Posts:
347
Plugin Contributions:
0

Adding Paypal logo to payment page

Is it possible to add the Paypal logo to the payment page ? I have the credit card logos on there (Visa/Mastercard) and thought it would be good to add the Paypal also where it has the selection for paypal ?
Anyone done this, or where is the setting to activate this in admin ?

Cheers
Dan.

11 Jul 2006, 4:28 PM
#2
dandownunder avatar

dandownunder

Zen Follower

Join Date:
Jan 2006
Location:
Portugal
Posts:
347
Plugin Contributions:
0

Re: Adding Paypal logo to payment page

Ok, I have replaced one of the credit card logos with the paypal one, will I run into problems with this ? so now I have 'Vise. Mastercard. Paypal' along the top of the payment module.
Anyone else done anything different ?

Cheers
Dan.

11 Jul 2006, 5:09 PM
#4
dandownunder avatar

dandownunder

Zen Follower

Join Date:
Jan 2006
Location:
Portugal
Posts:
347
Plugin Contributions:
0

Re: Adding Paypal logo to payment page

Thanks for the Logo, thats a slightly better one than what I have.

Do you know if there is a way to put it down with the paypal selection menu ?
I think it looks ok as I now have it with the credit cards and paypal next to each other.

Cheers
Dan.

11 Jul 2006, 5:21 PM
#5
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Adding Paypal logo to payment page

Without actually seeing layout/page in question,
difficult to comment further

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

11 Jul 2006, 10:00 PM
#6
dandownunder avatar

dandownunder

Zen Follower

Join Date:
Jan 2006
Location:
Portugal
Posts:
347
Plugin Contributions:
0

Re: Adding Paypal logo to payment page

The page is the Payment page where you input your c/c details and or select paypal.
This is an image of it, with my paypal addition at the top, I just wondered if it's possible to move it to the bottom with the paypal selection ?

I think it looks ok as it is, but was just curious if it's possible, or what others have done ?
Cheers for the help
Dan.

12 Jul 2006, 2:49 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Adding Paypal logo to payment page

You could use the templates and overrides on the:
/includes/templates/template_default/templates/tpl_checkout_payment_default.php

And move the code for:

<?php
  if (SHOW_ACCEPTED_CREDIT_CARDS != '0') {
?>

<?php
    if (SHOW_ACCEPTED_CREDIT_CARDS == '1') {
      echo TEXT_ACCEPTED_CREDIT_CARDS . zen_get_cc_enabled();
    }
    if (SHOW_ACCEPTED_CREDIT_CARDS == '2') {
      echo TEXT_ACCEPTED_CREDIT_CARDS . zen_get_cc_enabled('IMAGE_');
    }
?>
<br class="clearBoth" />
<?php } ?>

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

12 Jul 2006, 5:38 AM
#8
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Adding Paypal logo to payment page

As screenshot shows, looks fine to me.
:wink2:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

12 Jul 2006, 8:05 AM
#9
dandownunder avatar

dandownunder

Zen Follower

Join Date:
Jan 2006
Location:
Portugal
Posts:
347
Plugin Contributions:
0

Re: Adding Paypal logo to payment page

Thanks for that, glad you like it Misty.

Linda, what will editing the code do to it ? will it move them ?

Cheers
Dan.

12 Jul 2006, 10:51 AM
#10
dandownunder avatar

dandownunder

Zen Follower

Join Date:
Jan 2006
Location:
Portugal
Posts:
347
Plugin Contributions:
0

Re: Adding Paypal logo to payment page

p.s - anyone know where to get some more up-dated logos for the visa and mastercard ? mine look a bit old ?

Cheers
Dan.

13 Jul 2006, 2:18 AM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Adding Paypal logo to payment page

dandownunder:

Thanks for that, glad you like it Misty.

Linda, what will editing the code do to it ? will it move them ?

If you move the code within the tpl_ file it will display in a different location of the page ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Jul 2006, 5:53 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Adding Paypal logo to payment page

  1. includes/modules/payment/paypal.php
    around line 119 you see:```php
    function selection() {
    return array('id' => $this->code,
    'module' => $this->title);
    }
change to:
```php
  function selection() {
    return array('id' => $this->code,
                 'module' => '<img src="images/paypal.gif" alt="' . $this->title . '" />');
  }
  1. Now put a "paypal.gif" in your /images folder

  2. Now you'll have an IE bug to work around, so do this:
    includes/templates/YOURTEMPLATE/templates/tpl_checkout_payment_default.php
    line 136 has:

<label for="pmt-<?php echo $selection[$i]['id']; ?>" class="radioButtonLabel"><?php echo $selection[$i]['module']; ?></label>

change to:

<label for="pmt-<?php echo $selection[$i]['id']; ?>" class="radioButtonLabel"<?php if (strstr(strtolower($selection[$i]['module']), '<img')) echo ' onclick="document.getElementById(\'pmt-'.$selection[$i]['id'].\').click();"'; ?>><?php echo $selection[$i]['module']; ?></label>

.
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.

13 Jul 2006, 8:22 AM
#13
dandownunder avatar

dandownunder

Zen Follower

Join Date:
Jan 2006
Location:
Portugal
Posts:
347
Plugin Contributions:
0

Re: Adding Paypal logo to payment page

Thanks for that guys, I will give this a play with and see how it comes out.

What is the bug I'll have to deal with ?
Cheers
Dan.

13 Jul 2006, 1:17 PM
#14
wasana avatar

wasana

Zen Follower

Join Date:
Apr 2006
Location:
Chiang Mai
Posts:
203
Plugin Contributions:
0

Re: Adding Paypal logo to payment page

I took a different approach:

/includes/languages/english/modules/payment/paypal.php changed ```
define('MODULE_PAYMENT_PAYPAL_TEXT_CATALOG_TITLE', 'Paypal');
to
define('MODULE_PAYMENT_PAYPAL_TEXT_CATALOG_TITLE', '
<img src="xinha_editor.html/images/image.gif" alt="paypal"/>');


(html validation likes the alt in there)
then put the image in the images folder 
not sure where I snagged that gif maybe right off the paypal site 
However I always view Ajeh and Dr. Byte solves with great attention - they be guru
17 Oct 2006, 5:21 AM
#15
nurseryguy avatar

nurseryguy

New Zenner

Join Date:
Oct 2006
Posts:
6
Plugin Contributions:
0

Re: Adding Paypal logo to payment page

I have tried the above but am getting a red X with the word paypal behind it. I grabbed the paypal logo from their site, but keep getting the same result. Can someone explain why it doesn't display the logo?

Thanks,

NurseryGuy