Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How do I put a copy of the credit card number in the info.phtml in Admin orders pannel? 
 
psy
Jr. Member
 
Total Posts:  27
Joined:  2008-12-09
 

Hi,

Im trying to get fraudlabs to work with Magento and need to get a copy of the credit card number into the info.phtml template.  Every time I try to copy the following code from ccsave.phtml and put it in the info.phtml file I get an error

<?php echo Mage::helper('payment')->__('Credit Card Number: xxxx-%s'$this->htmlEscape($this->getInfo()->getCcLast4())) ?><br/>

The error states :

PHP Fatal error:  Call to a member function getCcNumber() on a non-object

....

Any help greatly appreciated.  I have not yet got my head around the way functions work in magento.  An aswer to this will no doubt put it in perspective.

Your help would be greatly appreciated.

Dan

 
Magento Community Magento Community
Magento Community
Magento Community
 
psy
Jr. Member
 
Total Posts:  27
Joined:  2008-12-09
 

I know bumping isn’t cool, but hey I could really do with some help here.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top