|
uwskigy
|
 |
« on: 03/June/2009, 10:36:22 PM » |
|
I want to edit the text at the top of the "Secure Payment Form" page which takes the credit card information from the user. Here is the text I'd like to edit, where can I do this? I'd also like to add a visa/mastercard logo to indicate to the user that these are the only two types of cards accepted.
Thanks.
Please verify the information below, and enter your card details. Mandatory fields are marked with an asterisk (*). Before entering your card details, make sure that your browser is displaying a padlock icon, and that the address of this web page starts with https://
|
|
|
|
|
Logged
|
|
|
|
|
uwskigy
|
 |
« Reply #1 on: 04/June/2009, 12:23:04 AM » |
|
Also is there a way to add the order total on the same page? I've received lots of feedback from my customers that they never see an order total anywhere during checkout.
Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
netshine
|
 |
« Reply #2 on: 04/June/2009, 09:49:03 AM » |
|
The text that is output on the card details screen in the authorize.net gateway is held in the language file: /administrator/components/com_netinvoice/admin.gateway/admin.authnet/authnet_english.php.
You can modify the page (eg. to add images etc.) by editing the /administrator/components/com_netinvoice/admin.gateway/admin.authnet/authent_card_capture.php file.
To show a summary including the total amount to pay, make sure your order form has 'show summary' set to 'yes'.
|
|
|
|
|
Logged
|
|
|
|
|
geo-track
|
 |
« Reply #3 on: 27/August/2009, 04:19:00 PM » |
|
How do i get to this file page?
Thanks I'm currently at the same step as he was,
David
|
|
|
|
|
Logged
|
|
|
|
|
netshine
|
 |
« Reply #4 on: 27/August/2009, 04:56:52 PM » |
|
You would typically use an FTP client or perhaps a file manager in your web hosting control panel.
|
|
|
|
|
Logged
|
|
|
|
|
geo-track
|
 |
« Reply #5 on: 27/August/2009, 05:23:56 PM » |
|
ah okay so i did get to the right place,
but i landed on a php file, how do i figure out the code to input to show the total amount on the form?
Thanks DM
|
|
|
|
|
Logged
|
|
|
|
|
netshine
|
 |
« Reply #6 on: 27/August/2009, 07:17:59 PM » |
|
As I said in a previous reply, if you set 'show summary' to 'yes' on the order form, it will show the amount to pay. If you want to add the amount to the card capture page as well, you could insert the following code at line 115 (just before the row containing the submit button):
<tr> <td class="field-title" align="left" valign="top"><strong>Amount to Pay</strong></td> <td class="field-title" align="left" valign="top"><strong>$<?php echo format_number($params['x_amount'], 2); ?></strong></td> </tr>
|
|
|
|
|
Logged
|
|
|
|
|
geo-track
|
 |
« Reply #7 on: 28/August/2009, 06:14:31 PM » |
|
How can i edit the secure page for it to show up in french language when chosen, the form on nbill is french but when we get to the CC info page, it defaults to english,
would i add this settings in /public_html/administrator/components/com_netinvoice/admin.gateway/admin.authnet/??
the .php file?
Thanks David
|
|
|
|
|
Logged
|
|
|
|
|
netshine
|
 |
« Reply #8 on: 28/August/2009, 07:26:41 PM » |
|
You would need to add a new file:
/administrator/components/com_netinvoice/admin.gateway/admin.authnet/authnet_french.php
You can copy the contents of the authnet_english file into that new file, and translate the text into French.
|
|
|
|
|
Logged
|
|
|
|
|
geo-track
|
 |
« Reply #9 on: 28/August/2009, 08:06:28 PM » |
|
.
|
|
|
|
« Last Edit: 28/August/2009, 10:24:14 PM by geo-track »
|
Logged
|
|
|
|
|
geo-track
|
 |
« Reply #10 on: 28/August/2009, 09:43:05 PM » |
|
Okay i was able to change the text, but I can't find the line "Amount to pay" >> Found it in auth_card_capture, how do i allow this to be in french when language chosen,
I tried making a file. fr.php but still doesn't work.
how do i make this work
Thanks David
|
|
|
|
« Last Edit: 28/August/2009, 10:23:39 PM by geo-track »
|
Logged
|
|
|
|
|
netshine
|
 |
« Reply #11 on: 29/August/2009, 08:59:53 AM » |
|
In the sample code, above, I hard-coded that text. If you want it picked up from the language file, you would need to add a new entry for it in both language files and use a constant like this:
<tr> <td class="field-title" align="left" valign="top"><strong><?php echo INV_AUTHNET_AMOUNT_TO_PAY; ?></strong></td> <td class="field-title" align="left" valign="top"><strong>$<?php echo format_number($params['x_amount'], 2); ?></strong></td> </tr>
Then in the authnet_english.php file, add this to the end (before the ?> close tag, if applicable):
define("INV_AUTHNET_AMOUNT_TO_PAY", "Amount to Pay");
...and an equivalent line in the French file.
|
|
|
|
|
Logged
|
|
|
|
|
geo-track
|
 |
« Reply #12 on: 31/August/2009, 09:23:33 PM » |
|
Perfect, That worked great, Thanks a million, David 
|
|
|
|
|
Logged
|
|
|
|
|