Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How do I add an image next to a payment method? (screenshot)

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-12-2007, 03:31 PM
 
MattBF MattBF is offline
 

Member
  
Join Date: Dec 2007
Posts: 22
 

Post How do I add an image next to a payment method? (screenshot)

http://i18.tinypic.com/85o2esn.gif

I want to put an image and text there. I know how to add the text, by going to Payment Methods on the control panel. But when I add HTML code for an image it doesnt show up
__________________
-Matt
Version 4.1.9
Reply With Quote
  #2  
Old 12-12-2007, 04:10 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: How do I add an image next to a payment method? (screenshot)

Seeing as I was just editing that page...

Look in skin1/modules/Fast_Lane_Checkout/checkout_2_method.tpl

For...

Code:
<td width="20%" nowrap="nowrap" style="padding-right: 15px;"><label for="pm{$payment.paymentid}"><b>{$payment.payment_method}</b></label></td> <td width="80%">{$payment.payment_details}</td>
Do something like this...
Code:
<td width="20%" nowrap="nowrap" style="padding-right: 15px;"><label for="pm{$payment.paymentid}"><b>{$payment.payment_method}</b></label></td> <td width="80%">{$payment.payment_details} &nbsp; {if $payment.paymentid eq "10"}<img src="{$ImagesDir}/visa.gif" border="0" /> {elseif $payment.paymentid eq "11"}<img src="{$ImagesDir}/mastercard.gif" border="0" /> {elseif $payment.paymentid eq "12"}<img src="{$ImagesDir}/paypal.gif" border="0" /> {/if} </td>
or...
Code:
<td width="20%" nowrap="nowrap" style="padding-right: 15px;"><label for="pm{$payment.paymentid}"><b>{$payment.payment_method}</b></label></td> <td width="80%">{$payment.payment_details} &nbsp; {if $payment.payment_details eq "Visa"}<img src="{$ImagesDir}/visa.gif" border="0" /> {elseif $payment.payment_details eq "Mastercard"}<img src="{$ImagesDir}/mastercard.gif" border="0" /> {elseif $payment.payment_details eq "PayPal"}<img src="{$ImagesDir}/paypal.gif" border="0" /> {/if} </td>

Upload your images to /skin1/images
__________________
xcartmods.co.uk
Reply With Quote
  #3  
Old 12-13-2007, 04:55 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: How do I add an image next to a payment method? (screenshot)

Another way: add the image as html tag in payment methods...

This post will get you started... and keep reading.

It works for me!
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:23 AM.

   

 
X-Cart forums © 2001-2020