Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2014
    Location
    United States
    Posts
    10
    Plugin Contributions
    0

    Default Creating Payment Module Logo

    I notice on the checkout page...

    /index.php?main_page=checkout_payment

    ... under payment method, I have the two payment selections available based on my installed modules. For the sake of this task I have the Paypal module installed, and also one called "Wooden Nickels" (theres no such module as wooden nickels).

    So I have two radio buttons...

    (*) Pay with wooden nickels
    ( ) Check out with Paypal

    The Paypal option also has a paypal card logo next to the text, while my wooden nickels option only has text. I delved into the wood nickel module and theres no option or coding for images to appear like there is for the paypal modules. And the paypal modules are much more detailed anyhow.

    http://imgur.com/csUfFy9

    So my question is, is there an easy way to incorporate a logo next to my wooden nickel text like how the paypal text has a logo next to it?

    Thanks for any help!

  2. #2
    Join Date
    Oct 2014
    Location
    United States
    Posts
    10
    Plugin Contributions
    0

    Default Re: Creating Payment Module Logo

    In my PHP payment module file I have this line....

    define('MODULE_PAYMENT_WOODEN_NICKEL_TEXT_TITLE', 'Pay with Wooden Nickels');

    Is there any way to make the text appear bold during checkout?

    Also, is there any way I can add in an image before that text? Unfortunately I dont know my way around PHP very well. I was able to add an image using:

    echo "<image src='/images/woodennickel.png' />";

    Naturally, since this is PHP the image is displayed at the top of the screen, not right in front of the text. Any tricks I can do?

    Thanks!

  3. #3
    Join Date
    Jul 2012
    Posts
    16,739
    Plugin Contributions
    17

    Default Re: Creating Payment Module Logo

    Quote Originally Posted by cryptoreporter View Post
    In my PHP payment module file I have this line....

    define('MODULE_PAYMENT_WOODEN_NICKEL_TEXT_TITLE', 'Pay with Wooden Nickels');

    Is there any way to make the text appear bold during checkout?

    Also, is there any way I can add in an image before that text? Unfortunately I dont know my way around PHP very well. I was able to add an image using:

    echo "<image src='/images/woodennickel.png' />";

    Naturally, since this is PHP the image is displayed at the top of the screen, not right in front of the text. Any tricks I can do?

    Thanks!
    Can bound the newest text with html div tags and then use css, but if the echo is in line with the use of MODULE_PAYMENT_WOODEN_NICKEL_TEXT_TITLE then the image should also be.

    In this case it's not so much being php knowledgeable as understanding how payment modules to an extent are handled. I have had limited experience with them, but have been able to work through the issues presented. In this case my suggestion (as I haven't dug through the code) would be to identify what variable or constant is used to display the text that is being seen then work backwards to see how to insert the code that you have created/used.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,534
    Plugin Contributions
    88

    Default Re: Creating Payment Module Logo

    Here's how PayPal does it, via return from the payment-method's selection function:
    Code:
      /**
       * Display Credit Card Information Submission Fields on the Checkout Payment Page
       */
      function selection() {
        $this->cc_type_check = '';
        /**
         * since we are NOT processing via the gateway, we will only display MarkFlow payment option, and no CC fields
         */
        return array('id' => $this->code,
                     'module' => '<img src="' . MODULE_PAYMENT_PAYPALEC_MARK_BUTTON_IMG . '" alt="' . MODULE_PAYMENT_PAYPALWPP_TEXT_BUTTON_ALTTEXT . '" /><span style="font-size:11px; font-family: Arial, Verdana;"> ' . MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_TXT . '</span>');
      }
    That returns the PayPal icon followed by "Checkout with PayPal. The safer, easier way to pay." to be displayed as the radio-button's selection.

 

 

Similar Threads

  1. v150 Help needed for Creating New Payment Module
    By vkd1980 in forum Addon Payment Modules
    Replies: 9
    Last Post: 12 Sep 2013, 08:00 AM
  2. Creating an Addon Payment module
    By algae in forum Addon Payment Modules
    Replies: 1
    Last Post: 9 Sep 2011, 07:28 PM
  3. Payment module creating 2 orders
    By davew in forum Addon Payment Modules
    Replies: 2
    Last Post: 25 Jun 2009, 03:21 PM
  4. Creating New Payment Module
    By The One in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 12 Jun 2009, 05:07 PM
  5. Creating a new payment module...
    By tehbadseed in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 14 Feb 2008, 01:51 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