10/29/2013

Default Magento doesn't have this card in his payment gateway. If you want to add then follow the below steps, I have describe here in core file you need to override all core files before doing any changes

Go to app/code/core/Mage/Payemtn/etc/Config.xml then go to line number 56 you can find there are already some card has defined, you need to add your code there

You can copy paste this section in your custom module to add the Diners Club card else Copy from <DC> to </DC> and paste it after the </OT>

Now you successfully added the card in to Credit card Dropdown.

Next you have to validate the card, Magento use two types of validation one Javascript validation another PHP validation You have to validate both way.

1) Javascript Validation
Go to magento root directory then js/prototype/validation.js then go to end of the page you will find there already all card validation added, The code will be something like this

2) PHP validation
Go to app/code/core/Mage/Payment/Model/Method/Cc.php
there you can find the validation line number near about 111$ccTypeRegExpList = array(
//Solo, Switch or Maestro. International safe
'SO' => '/(^(6334)[5-9](\d{11}$|\d{13,14}$))|(^(6767)(\d{12}$|\d{14,15}$))/', // Solo only
'SM' => '/(^(5[0678])\d{11,18}$)|(^(6[^05])\d{11,18}$)|(^(601)[^1]\d{9,16}$)|(^(6011)\d{9,11}$)|(^(6011)\d{13,16}$)|(^(65)\d{11,13}$)|(^(65)\d{15,18}$)|(^(49030)[2-9](\d{10}$|\d{12,13}$))|(^(49033)[5-9](\d{10}$|\d{12,13}$))|(^(49110)[1-2](\d{10}$|\d{12,13}$))|(^(49117)[4-9](\d{10}$|\d{12,13}$))|(^(49118)[0-2](\d{10}$|\d{12,13}$))|(^(4936)(\d{12}$|\d{14,15}$))/',

4/05/2013

In Magento You can print your log in Exception.log using Mage::logException($e->getMessage());
If you want to put the log to your custom log file, then you can use write below lineMage::log('Your Query', Zend_Log::DEBUG, custom.log);
But the problem is that , It will not print any Array data, If you want to print Array data in to log file then you can use any one of the below methodMage::getModel('core/log_adapter', 'custom.log')->log($arrayvariable);
or
Mage::log('Your Data :'.print_r($arrayvariable, true), Zend_Log::DEBUG, 'custom.log');

If you’re contemplating buying a new smartphone in Australia, you need to take the time to research your product. Just like buying a new car, you need to be sure what you’re buying is reliable and serves your needs completely. Find all the latest smartphones and reviews online through Mobileciti and be confident you’re buying the best product. The best smart phone is often not the most popular, so it pays to research and read mobile phone reviews.

In-depth smart phone reviews and comparisons

You can find everything you need to conduct your smartphone comparison online at Mobileciti. Smartphones Australia wide are selling at a rapid pace so keep up to date with the latest developments by reading mobile phone reviews. Be it an Android smart phone or the latest Windows mobile you’re after, Mobileciti can provide detailed reviews and comparisons on all makes of smart phones so you can be sure you’re buying the best and most suitable product for you.

Conduct your smart phone review today and find the perfect mobile phone for you needs to make your telecommunications easier and more efficient. Read below for all the mobile phone reviews and smart phone comparisons from Mobileciti.