Results 1 to 10 of 15

Hybrid View

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

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

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

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

  3. #3
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Adding Paypal logo to payment page

    http://www.zen-cart.com/index.php?ma...ort=20a&page=2
    Could add paypal logo sidebox from above url

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

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

  5. #5
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Adding Paypal logo to payment page

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

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

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

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

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

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

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

 

 

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