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)
-   -   Credit card images on payment method (https://forum.x-cart.com/showthread.php?t=20125)

vixnfox 02-23-2006 07:34 PM

Credit card images on payment method
 
Hi,
I'm not a big fan of the radio buttons on the payment methods page. I would like to replace the buttons with images. What template do I edit for that?
And if you reply, how did you find that out?!?!?

thanks
vixnfox

pauldodman 02-23-2006 11:15 PM

If you use webmaster mode from Admin, you will be able to find each and every template you need to edit for whatever changes you want to make.

Now you should be able to answer your own question!

(if you don't find it, let me know and I will have a look as I often make that change)

vixnfox 02-24-2006 01:36 AM

Oh *sheepish grin* so THATS what webmaster mode is all about.

*mental note... RTFM*

thank you :oops:

vixnfox

vixnfox 02-24-2006 02:17 AM

Hi Paul,
I found lots of goodies to play with, but the payment options info reads:
(checkout.tpl)
<FORM method="get" action="cart.php" name="checkout_form">
<TABLE border="0" align="center" width="400">
{section name=payment loop=$payment_methods}
<TR>
<TD><INPUT type="radio" name="paymentid" value="{$payment_methods[payment].paymentid}"{if $payment_methods[payment].is_default eq "1"} checked{/if}></TD>
{if $payment_methods[payment].processor eq "ps_paypal_pro.php"}
<TD colspan="2">
<TABLE border="0" cellpadding="0" cellspacing="0"><TR>
<TD>{include file="payments/ps_paypal_pro_express_checkout.tpl" paypal_express_link="logo"}</TD>
<TD></TD>
<TD>{include file="payments/ps_paypal_pro_express_checkout.tpl" paypal_express_link="text"}</TD>
</TR></TABLE>

Is it in there somewhere?

vixnfox

pauldodman 02-24-2006 02:23 AM

Well the short answer is yes.

The long answer is that having found the right template, you now need to test your html and smarty skills.

Basically what you have there is a loop that creates a radio button for each payment option you have. Depends on how many payment options you have how you approach this and whether they may change.

You may just want to place the images in a table to the left of the loop, or you may want to replace the loop with an input for each one of your options, or you may want to recode the whole loop to look how you want.

It is up to you, your options and your skillset now.

vixnfox 02-24-2006 01:56 PM

Thank you very much Paul. I shall have to play around with Smarty until I become more proficient, but I can see how it woud work now. Thanks again.


vixnfox


All times are GMT -8. The time now is 06:20 PM.

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