Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Customize checkout
 
fenix
Jr. Member
 
Total Posts:  16
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
 
timothyleetaylor
Sr. Member
 
Avatar
Total Posts:  162
Joined:  2008-02-05
New Zealand
 

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

 Signature 

Elias Interactive
Web Design & Development
http://www.eliasinteractive.com
Skype: leetaylor.elias

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1771
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.

 Signature 

- I would love to change the world, but they won’t give me the source code -

 
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
 Signature 

When God solves your problems, You have faith in his abilities.. when God doesn’t solve your problems he has faith in your abilities..

 
Magento Community Magento Community
Magento Community
Magento Community
 
timothyleetaylor
Sr. Member
 
Avatar
Total Posts:  162
Joined:  2008-02-05
New Zealand
 

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

 Signature 

Elias Interactive
Web Design & Development
http://www.eliasinteractive.com
Skype: leetaylor.elias

 
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.

 Signature 

When God solves your problems, You have faith in his abilities.. when God doesn’t solve your problems he has faith in your abilities..

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
52811 users|830 users currently online|106544 forum posts