The WorksForWeb Community Forums
Welcome to the WorksForWeb community forums. Here you can discuss WorksForWeb products with others and contribute to the rapidly growing WorksForWeb community. Please note that while WorksForWeb staff try to maintain presence on the forums, this is not the most reliable way to contact WorksForWeb staff. In case you require a timely response from WorksForWeb on an issue, please open a support ticket here. For pre-sales questions, please open a sales ticket here.

Welcome, Guest. Please login or register.
May 22, 2012, 07:27:32 PM

Login with username, password and session length
Search:     Advanced search
Added the iLister-related Boards

Rate My Site Boards Added

Merged iAuto and iRealty Support Forums together

Several new tips in the Tips and Tricks section
1,604 Posts in 625 Topics by 1,179 Members
Latest Member: bobsteam
* Home Help Search Login Register
+  The iAuto/iRealty/iLister Support Forum
|-+  iAuto, iRealty and iLister v.4.x
| |-+  General iAuto Discussions
| | |-+  Help! :)
« previous next »
Pages: [1] Print
Author Topic: Help! :)  (Read 729 times)
cargenie
Newbie
*

Karma: 0
Posts: 23


Car Genie Australia


View Profile WWW
« on: November 26, 2010, 08:58:28 AM »

I was wondering how I can change the buttons on the payment page, e.g: 'PayPal', etc.

I would like these to be images for each different payment gateway instead of the boring grey buttons.

Thanks!
Logged

Arthur
Jr. Member
**

Karma: 2
Posts: 81


View Profile
« Reply #1 on: November 29, 2010, 05:32:01 PM »

Hello Michael,
You can edit page  yoursite.com/system/payment/payment_page/?payment_id=4
in admin area yoursite.com/admin/edit_templates/?module_name=payment&template_name=payment_page.tpl

Code:
<form action="{$gateway.url}" method="post">

{$gateway.hidden_fields}
<input type='submit' value='{$gateway.caption}'style="width:150px; margin-bottom:5px;" />

</form>
As you can see now it shows captions of active Payment gateways which are located in DB payment_gateways table.

Regards
Artur
Logged

cargenie
Newbie
*

Karma: 0
Posts: 23


Car Genie Australia


View Profile WWW
« Reply #2 on: November 29, 2010, 08:21:21 PM »

Hello Arthur,
Thanks for your reply.

I understand how to change what the button says but is their any way to change the button into a clickable image?

I would like to make my own image for the PayPal/Credit Card option.

Thanks again Arthur.
Logged

gvAutoSaver
Newbie
*

Karma: 2
Posts: 12


View Profile WWW
« Reply #3 on: December 02, 2010, 06:08:16 AM »

You got me curious, so I looked it up...

You can do this by changing the code:
Code:
<form action="{$gateway.url}" method="post">

{$gateway.hidden_fields}
<input type='submit' value='{$gateway.caption}'style="width:150px; margin-bottom:5px;" />

</form>

to:
Code:
<form action="{$gateway.url}" method="post">

{$gateway.hidden_fields}
<input {if $gateway.caption eq "paymenttype"}type='image' src="imageurl" alt="paymenttype"{elseif $gateway.caption eq "paymenttype2"}type='image' src="imageurl2" alt="paymenttype2"{else}type='submit'{/if} value='{$gateway.caption}'style="width:150px; margin-bottom:5px;" />

</form>

and replacing "paymenttype" with the payment type ("Cash Payment" for example), and "imageurl" with the image url ("http://www........jpg", etc). Don't forget to change "paymenttype" in both spots so that users will see the correct text if the image doesn't appear for some reason.

"paymenttype2" and "imageurl2" are for a second payment gateway. Repeat everything from "{elseif..." until just before "{else}" for each payment gateway image needed...or delete for only a single gateway image. Anything that doesn't have an image specified will default to the "boring grey buttons."

Hope this helps!  Smiley

- gvAutoSaver
Logged
cargenie
Newbie
*

Karma: 0
Posts: 23


Car Genie Australia


View Profile WWW
« Reply #4 on: December 02, 2010, 06:13:21 PM »

Hello,

You are an absolute champion, thank-you, it worked perfectly.
Much appreciated.

Thanks again!
Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Classified Software by Worksforweb Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!