| Show full credit card number in VirtueMart Backend. |
|
|
|
| Written by Administrator | |
| Tuesday, 07 November 2006 | |
|
* **Notice: As of Joomla 1.0.12+ https is included in the admin. Just log in using https://***
This article explains how to secure the Joomla backend using SSL so it
is safe to show the full credit card number in VirtueMart. No more
checking your email for the last for digits. Just login and have
everything you need to process orders. I am using Joomla 1.0.11 and VirtueMart 1.0.7, but I am sure it will work on most versions. As of Joomla 1.0.12 do not install the .htaccess file. Just change the code in your order.orderprint.php file.
First you will want to force Joomla's Backend to use SSL. (Must be on an Apache server)
create a .htaccess in httpdocs/administrator containing:
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://%{ SERVER_NAME}/administrator/$1 [R=301]
Sometimes the third line will not work. If you get a server error use
the following line replacing www.yousite.com with your url.
RewriteRule ^(.*)$ https://www.yoursite.com/administrator/$1 [R=301]
Now it is time to hack the order.order_print.php file. Look around line 535. You will find code that resembles the image below.
Modify the first line to match the image below: Change the 4 to a 0.
Save it and thats it. You can now view the full credit card number securely. By Ron - with the help of VirtueMart forums |
|
| Last Updated ( Thursday, 07 June 2007 ) |
| < Prev |
|---|
Login Form |