X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How do I add an image next to a payment method? (screenshot) (https://forum.x-cart.com/showthread.php?t=36122)

MattBF 12-12-2007 03:31 PM

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

PhilJ 12-12-2007 04:10 PM

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

carpeperdiem 12-13-2007 04:55 AM

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!


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.