Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal / Credit Card Logos Next to Payment Method


obinet

Recommended Posts

Is there a way to add the Paypal and also maybe Credit Card logos to the left of the text within the Payment Method box? I've searched the forums, but didn't find anything that specifically addresses this and I'm not very good with PHP, so I was hoping to find a piece of code that would accomplish this. Thanks in advance for any suggestions.

Link to comment
Share on other sites

Is there a way to add the Paypal and also maybe Credit Card logos to the left of the text within the Payment Method box? I've searched the forums, but didn't find anything that specifically addresses this and I'm not very good with PHP, so I was hoping to find a piece of code that would accomplish this. Thanks in advance for any suggestions.

 

It's quite easy really. Here's what you do.

1. Go to your directory includes/languages/english/modules/payment

2. Find the file corresponding to paypal/credit card module

3. Find the line that says something like:

 

define('MODULE_PAYMENT_PAYPAL_TEXT_TITLE', 'Paypal');

 

4. Change it to something like:

 

define('MODULE_PAYMENT_PAYPAL_TEXT_TITLE', 'Paypal <img  border=0 src=/shop/images/creditcards.gif>')

 

 

Hope that helps you out

OSC Image Magic

On-the-fly thumbnails, watermarks and image processing

Link to comment
Share on other sites

Just a quick addendum to my last post, I'm no php programmer either, so the solution give might have knock on effect that I don't know about.

 

Anybody else?

OSC Image Magic

On-the-fly thumbnails, watermarks and image processing

Link to comment
Share on other sites

One other tip - to make it look a little nicer on the particular store in question, I altered the code to put the logo to the left and position it at the middle of the text next to it:

 

define('MODULE_PAYMENT_PAYPALIPN_TEXT_TITLE', 'PayPal <img border=0 src=/store/images/paypal.gif align=absmiddle>');

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...