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

customizing CheckOut
 
kaulik
Jr. Member
 
Total Posts:  4
Joined:  2008-05-09
 

Hi,
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>

In savePaymentAction():
i have added below lines:
$CC_add = $this->getRequest()->getPost(’cc_add‘, ‘’);
$result = $this->getOnepage()->savePayment($data,$CC_add);

In Onepage.php
public function savePayment($data,$CC_add)
{....}

i dont know how to proceed from here..

Plz correct me if i m wrong.

Refer attached file.

Image Attachments
aaa.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
kaulik
Jr. Member
 
Total Posts:  4
Joined:  2008-05-09
 

s

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