Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2008
    Posts
    29
    Plugin Contributions
    0

    Default add cc logos img next to PayPal Express Checkout button

    I wanted to add logo of credit card next to PayPal Express Checkout buttons on the shopping cart page. I have created a new image combining the standard PP express checkout and some small cc images. Can't find the correct php file to modify to call this new image hosted on my server rather then the PP image hosted on paypal server. If this is somehow violation of PP terms then please advise. If it is violation then how can I just place the cc img next to the pp button?

    I read another forum post but it was referring to file that does exist but not being read ... trial and error method is failing me.

    the /store/includes/languages/english/modules/payment/paypal.php line 19 definition is not working? Must be another file? I'm new to ZenCart. Actually, the option of accessing PayPal "larger" image is fine too ... just I can't change this if I can't find the right PHP file.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: add cc logos img next to PayPal Express Checkout button

    You'll want to be careful to use PayPal-approved logos.

    So, in the language file you mentioned, you'll see the following:
    Code:
      // to show the PayPal logo as the payment option name, use this:  https://www.paypal.com/en_US/i/logo/PayPal_mark_37x23.gif
      // to show CC icons with PayPal, use this instead:  https://www.paypal.com/en_US/i/bnr/horizontal_solution_PPeCheck.gif
      define('MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_IMG', 'https://www.paypal.com/en_US/i/logo/PayPal_mark_37x23.gif');
    Why not just follow the instructions provided?
    .

    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. #3
    Join Date
    Mar 2008
    Posts
    29
    Plugin Contributions
    0

    Default Re: add cc logos img next to PayPal Express Checkout button

    I saw that and tried it. But it didn't change the image at all. I right click on the image and still calling the same on as before making the switch. So what I said in last reply is "which file" since the file I was modify didn't effect the page.

  4. #4
    Join Date
    Mar 2008
    Posts
    29
    Plugin Contributions
    0

    Default Re: add cc logos img next to PayPal Express Checkout button

    I found the file that controls the PayPal Express Checkout image definition. It is not paypal.php, but rather it's paypalwpp.php

    This was changed like this, but the actual effect is kinda ugly. I think I will keep the original button and just find a way to stick some small credit card images next to it using other files & CSS.

    Code:
    // EC buttons -- Do not change these values:
    //  define('MODULE_PAYMENT_PAYPALWPP_EC_BUTTON_IMG', 'https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif');
      define('MODULE_PAYMENT_PAYPALWPP_EC_BUTTON_IMG', 'https://www.paypal.com/en_US/i/bnr/horizontal_solution_PPeCheck.gif');
      define('MODULE_PAYMENT_PAYPALWPP_EC_BUTTON_SM_IMG', 'https://www.paypal.com/en_US/i/btn/btn_xpressCheckoutsm.gif');
      define('MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_IMG', 'https://www.paypal.com/en_US/i/logo/PayPal_mark_37x23.gif');
    I don't know why you explicitely coded the note "Do not change these values". The discussion about TOS makes me think you are hinting strongly the TOS necessitates those, and only those, settings for PayPal Express Checkout?

  5. #5
    Join Date
    Mar 2008
    Posts
    29
    Plugin Contributions
    0

    Default Re: add cc logos img next to PayPal Express Checkout button

    Found it! Kinda tough searching for the correct file to modify. Think I'm learning.

    It's includes/modules/payment/paypal/tpl_ec_button.php

    In that file I just added an image "cc_fo_PP.gif" (just 4 small CC logo images that PayPal accepts, mine measures 73px by 46px) and chose to place it in folder
    /includes/templates/classic/images/

    It it added to the tpl_ec_button.php code like this:
    Code:
    <div id="PPECbutton" class="buttonRow">
      <?php // Modification START ?>
      <img src="http://www.mydomain.com/store/includes/templates/classic/images/cc_for_PP.gif" alt="PayPal Accepts Credit Cards" />
      <?php // Modification END  ?>
      
      <a href="<?php echo zen_href_link('ipn_main_handler.php', 'type=ec', 'SSL', true, true, true); ?>"><img src="<?php echo MODULE_PAYMENT_PAYPALWPP_EC_BUTTON_IMG ?>" alt="<?php echo MODULE_PAYMENT_PAYPALWPP_TEXT_BUTTON_ALTTEXT; ?>" /></a>
    </div>
    I can't imagine this is violating PayPal's TOS as it's not modify anything. It's an adjacent image ... like a style ... like background color or text size. If I'm wrong about this please advise. It looks pretty good too!

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: add cc logos img next to PayPal Express Checkout button

    Quote Originally Posted by PingPing View Post
    I don't know why you explicitely coded the note "Do not change these values". The discussion about TOS makes me think you are hinting strongly the TOS necessitates those, and only those, settings for PayPal Express Checkout?
    PayPal is quite explicit about their branding identity.
    And they do chase down people who are doing things contrary to their TOS.
    That's partly why they provide images to use as alternatives if you desire ... and they prefer that you use the images they supply.
    .

    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.

  7. #7
    Join Date
    Nov 2005
    Posts
    53
    Plugin Contributions
    0

    Default Re: add cc logos img next to PayPal Express Checkout button

    following the instructions in the code did not work for me either

    the same, simple 'paypal' icon kept showing up.

    when i replaced the tag " . MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_IMG . "

    with the hard link to the gif of the horizontal paypal CC icon bar, it showed up fine.

    i'm not sure why the tag didn't work, and i wish it did b/c it makes it less likely to break on the next update. but i'm glad to have found out a way to make it work!
    zencart installation is at http://oyinhandmade.com/shop

 

 

Similar Threads

  1. Cart not showing on paypal express Check after click on express checkout button
    By magic.solve in forum PayPal Express Checkout support
    Replies: 5
    Last Post: 2 Aug 2011, 06:58 PM
  2. No Paypal Express Checkout Button
    By justinhunt in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 19 Dec 2008, 03:14 PM
  3. There is no PayPal Express Checkout button next to Checkout button!!! Please help!
    By atomic_s in forum PayPal Express Checkout support
    Replies: 10
    Last Post: 7 Oct 2008, 08:00 PM
  4. Odd messages next to PayPal Express checkout...
    By steveo3279 in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 3 Dec 2007, 01:04 PM
  5. Paypal Express checkout don't show button after installing Google Checkout
    By jgarabot in forum PayPal Express Checkout support
    Replies: 9
    Last Post: 2 Apr 2007, 07:59 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR