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

Customize checkout
 
fenix
Jr. Member
 
Total Posts:  23
Joined:  2008-02-18
 

Hello people,

I would like to delete two required fields in the checkoutpage.
that is: State/Province
and:  Country

and add my own custom fields for image uploads.

Just deleting them in the template file is not working.

What i really want to know is: where are the fields defined to be shown in checkout-billing step (and also the other sections).

The different steps in the page are setup in:

E:\Programme\Apache Group\Apache2\htdocs\wwwroot\magento\app\code\core\Mage\Checkout\Block\Onepage.php

public function getSteps()
    
{
        $steps 
= array();

        if (!
$this->isCustomerLoggedIn()) {
            $steps[
'login'$this->getCheckout()->getStepData('login');
        
}
        $stepCodes 
= array('billing''shipping''shipping_method''payment''review');

        foreach (
$stepCodes as $step{
            $steps[$step] 
$this->getCheckout()->getStepData($step);
        
}
        
return $steps;
    
}

    
public function getActiveStep()
    
{
        
return $this->isCustomerLoggedIn() ? 'billing' 'login';
    
}

Removing ‘shipping’ in the array for example removes this step in the frontend
Adding “upload files” shows a new step with no content, (by the way: this step is skipped automatically)
But what if I wanted to add my own step or fields?

Ok I still did not assign a template file to it. I could do that too, but then how to integrate/ associate the atached files or other input with the current order?

Hope I made myself clear....

by

 
Magento Community Magento Community
Magento Community
Magento Community
 
leetaylordoes
Sr. Member
 
Total Posts:  227
Joined:  2008-02-05
San Diego, CA
 

Yes, I’m interested and am looking into this as well.

I believe the following things may need modified:

1. The file you presented (app\code\core\Mage\Checkout\Block\Onepage.php)
2. Additional db fields (if you intend to add anything not yet implemented)
3. The frontend UI (where the fields will show up in the frontend)
4. The backend UI (where the fields will show up in the backend)

Am I missing anything?

I’ll dig into this more. Let’s continue to discuss.

Thanks,
- Lee

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

You will have to edit also skin/interface/theme/js/opcheckout.js and create new controller actions to process your additional steps.

 
Magento Community Magento Community
Magento Community
Magento Community
 
kaulik
Jr. Member
 
Total Posts:  4
Joined:  2008-05-09
 

I wann to add functionality in Payment Method of Checkout.
plz find the attached pic.

i also wann to put this selected value into DB.

things i have done:

<input name=”cc_add” id="cc_add" type="radio" value="yes" CHECKED>Yes</input
<
input name=”cc_add” id="cc_add" type="radio" value="no" >No</input>

savePaymentAction() {
....
$CC_add $this->getRequest()->getPost(’cc_add‘‘’); 
$result $this->getOnepage()->savePayment($data,$CC_add); 
.....
}

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

but i dont knw how to proceed from here.

correct me if i am wrong.
thanx in advance.

Image Attachments
aaa.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
leetaylordoes
Sr. Member
 
Total Posts:  227
Joined:  2008-02-05
San Diego, CA
 

Hi @kaulik,

What problems are you experiencing?

Also, how do you want to display this within the ADMIN? If I understand you correctly, you want to save it to the DB - which means you’ll have to have somewhere inside the ADMIN to view it.

Once pursuing that, you’ll need to get make sure you have access to the table and appropriate fields wherever you place the field inside the ADMIN.

Keep us updated on your progress and we’ll figure out what works.

Thanks,
- Lee

 
Magento Community Magento Community
Magento Community
Magento Community
 
kaulik
Jr. Member
 
Total Posts:  4
Joined:  2008-05-09
 

Hey @ Lee,
I want to use a new attribute ‘cc_add’ (credit card address) having value either yes/no in sales order object.
This attribute stores value of “Whether Credit Card Billing Address is same as Biling address ?”
For that i have added new radio btn in Payment method of CheckOut Methods as shown in attached image in previous post.
i want to use that attribute just as i use other like shipping / billing address.
I should be able to see this attribute in Sales Order in ADMIN through info.php .
Also i wann to update CheckOut Progress Panel with this value

What are the required changes to be made.
such as :
add new attribute Id in env_attribute table .
changes in savePaymentAction() { . . } of OnePageController,php.
changes in savePayment($data){. . } of Onepage.php .

plz guide me.
thanx.

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