Jump to content

How to add images for gateway payments?


eunarede

Recommended Posts

  • 1 year later...

Thanks to the tips above I was able to accomplish that and place the payment logos on my cart. Here's how I did it:

 

File: templates/orderforms/default/viewcart.php

 

Around line 165:

<p align="center">{foreach key=num item=gateway from=$gateways}<input type="radio" name="paymentmethod" value="{$gateway.sysname}" id="pgbtn{$num}"{if $selectedgateway eq $gateway.sysname} checked{/if} /><label for="pgbtn{$num}">{$gateway.name}</label> {/foreach}</p>

 

Add the following code right after <label for="pgbtn{$num}">{$gateway.name}

<br />{if $gateway.sysname}<img align="center" src="images/{$gateway.sysname}.gif" />

{/if}

<br />

 

So it will look like:

<p align="center">{foreach key=num item=gateway from=$gateways}<input type="radio" name="paymentmethod" value="{$gateway.sysname}" id="pgbtn{$num}"{if $selectedgateway eq $gateway.sysname} checked{/if} /><label for="pgbtn{$num}">{$gateway.name}<br />

{if $gateway.sysname}<img align="center" src="images/{$gateway.sysname}.gif" />

{/if}

<br /></label> {/foreach}</p>

 

Now upload your payment images to the whmcs/images folder. Name them according to the payment gateway name: paypal.gif, banktransfer.gif and so on.

 

That's it! :-P

 

Here's what mine looks like:

payment.gif

Edited by Patty
Link to comment
Share on other sites

  • 5 months later...
  • 2 years later...
  • 8 years later...

Join the conversation

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

Guest
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated