Free web analytics, website statistics Statistics

Show full credit card number in VirtueMart Backend. PDF Print E-mail
Written by Administrator   
Tuesday, 07 November 2006
  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. 
 
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.
Go to httpdocs/administrator/components/com_virtuemart/html/order.orderprint.php.

Look around line 535. You will find code that resembles the image below.

order_print_org

 

Modify the first line to match the image below:  Change the 4 to a 0.

order print  

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 ( Monday, 20 November 2006 )
 
< Prev   Next >

Login Form






Lost Password?