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 firstname.lastname@example.org.
i am customizing checkout method.
How do i add new functionalities in Payment Method of Checkout as shown in attached image.
In attached image, i have added 2 radio button to get an input from user about
“whether an Credit card Address is same as shipping address” ? Yes / No.
i have added 2 checkbox in template/paypal/standard/form.phtml
<input name=”cc_add” id="cc_add" type="radio" value="yes" onClick="” CHECKED>Yes</input>
<input name=”cc_add” id="cc_add" type="radio" value="no" onClick="">No</input>
i have added below lines:
$CC_add = $this->getRequest()->getPost(’cc_add‘, ‘’);
$result = $this->getOnepage()->savePayment($data,$CC_add);
public function savePayment($data,$CC_add)