Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Adding Paypal logo to payment page

    Quote Originally Posted by 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!

  2. #12
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Adding Paypal logo to payment page

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

    2. Now put a "paypal.gif" in your /images folder



    3. 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:
    HTML Code:
    <label for="pmt-<?php echo $selection[$i]['id']; ?>" class="radioButtonLabel"><?php echo $selection[$i]['module']; ?></label>
    change to:
    HTML Code:
    <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.

  3. #13
    Join Date
    Jan 2006
    Location
    Portugal
    Posts
    377
    Plugin Contributions
    1

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

  4. #14
    Join Date
    Apr 2006
    Location
    Chiang Mai
    Posts
    405
    Plugin Contributions
    0

    Default Re: Adding Paypal logo to payment page

    I took a different approach:

    /includes/languages/english/modules/payment/paypal.php changed
    Code:
    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

  5. #15
    Join Date
    Oct 2006
    Posts
    6
    Plugin Contributions
    0

    Default 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

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 Adding Paypal Verified Logo
    By idopjes in forum Addon Sideboxes
    Replies: 3
    Last Post: 20 May 2012, 07:05 PM
  2. Paypal Checkout adding 30% on to Paypal payment
    By Trinity in forum PayPal Website Payments Pro support
    Replies: 1
    Last Post: 30 Sep 2010, 12:28 PM
  3. Paypal Checkout adding 30% on to PP payment
    By Trinity in forum Addon Payment Modules
    Replies: 1
    Last Post: 30 Sep 2010, 11:12 AM
  4. Change Paypal Express Logo on Payment Page
    By Razor_Emporium in forum PayPal Website Payments Pro support
    Replies: 3
    Last Post: 12 Sep 2010, 07:05 AM
  5. Paypal TEXT instead of Logo at Payment Page in checkout
    By Best Price Accessori in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 31 Mar 2009, 05:49 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