Free web analytics, website statistics Statistics

Show full credit card number in VirtueMart 1.1+ Backend. PDF Print E-mail
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.5 and VirtueMart 1.1, 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.order_print.php file. 
 
To force https access so that the creditcard number is always encrypted in the admin go to Admin > Configuration > Security. Make sure to highlight admin as in the picture below. 

order print  

 

To edit the file httpdocs/administrator/components/com_virtuemart/html/order.order_print.php i had to install NinJoomla. I Prefer eXtplorer but i have been unable to get it working with Joomla 1.5.

Now it is time to hack the order.order_print.php file.
Go to httpdocs/administrator/components/com_virtuemart/html/order.order_print.php.

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

 

558. echo ps_checkout::asterisk_pad( $dbaccount->f("account_number"),

4, true );
559. if( $dbaccount->f('order_payment_code')) {
560. echo '<br/>(' . $VM_LANG->_('VM_ORDER_PAYMENT_CCV_CODE')

. ': '.$dbaccount->f('order_payment_code').') ';

561. }
 

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

 

558. echo ps_checkout::asterisk_pad( $dbaccount->f("account_number"),

0, true );

559. if( $dbaccount->f('order_payment_code')) {

560. echo '<br/>(' . $VM_LANG->_('VM_ORDER_PAYMENT_CCV_CODE')

. ': '.$dbaccount->f('order_payment_code').') ';

561. }
 

  

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 ( Tuesday, 20 May 2008 )
 
Next >

Login Form






Lost Password?
No account yet? Register