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 Instead of Text in checkout.tpl (https://forum.x-cart.com/showthread.php?t=28568)

neaisha 02-04-2007 09:11 AM

Credit Card Images Instead of Text in checkout.tpl
 
Hi,

I was wondering if someone could answer this or at least point me to post or search term.

I'm using the standard checkout, not the Fast Lane mod. On the page where the customer chooses their payment method (checkout.tpl), I'd like to have credit card images appear instead of the "Credit Card" text. With paypal, the image already appears. I'd just like to know how to go about doing this for other methods.

Thanks

inebriate 02-04-2007 01:10 PM

Re: Credit Card Images Instead of Text in checkout.tpl
 
in skin1/customer/main/checkout.tpl look for
Code:

        <TD nowrap><B>{$payment_methods[payment].payment_method}&nbsp;&nbsp;&nbsp;</B></TD>
        <TD>{$payment_methods[payment].payment_details|default:"&nbsp;"}</TD>

if all you have is paypal and credit card as your payment methods then you can change the above to something like <TD colspan=2><img src="creditcardimages.jpg"></TD> and upload the image

if you have more than those 2 payment methods you will have to use if statements

neaisha 02-04-2007 02:21 PM

Re: Credit Card Images Instead of Text in checkout.tpl
 
thanks, i didnt quite understand what you suggested i do.

but i found a solution in this post.

http://forum.x-cart.com/showthread.php?t=22197&page=4&highlight=sexy

either way, thanks!

Scrapbooker 03-20-2007 10:32 PM

Re: Credit Card Images Instead of Text in checkout.tpl
 
Hi,
probably a basic question but thought I'd ask it anyway as I am having trouble locating the answer... I have reduced the amount of credit cards we accept to two (MCard and Visa) and would like to be able to do two things:
a) Add these logos to the checkout process as neaisha and co have asked. I have read through the other thread but still not certain how to get this to work.
b) In the CC information section in the checkout, it has the option for selecting the credit card type. Need to reduce the options from the 4 cards that are there to only the two. Though I could track this down via /customer/main/payment_cc.tpl but can't seem to see what to do.
Any ideas? Thanks.

# Amendment # have since found that I had to actually delete the credit cards I did not want to use from the admin menu rather than just 'uncheck' them. Still wondering how to add logos though...


All times are GMT -8. The time now is 12:50 PM.

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