cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying Onepage checkout

Modifying Onepage checkout

Hi

 

 

I am using Magento 1.9.4.2 CE.

Can I use the textField given for Company or Fax for other purpose like Area.

Also I like to shift the choosen textField either Company or Fax, after/before (any place will work) zip code textField.

Refer this image

 

Shipping Address and Billing Address will be same, if billing address can be removed then that will be much better because I have only COD payment method. How can I do this and from where ?

 

 

Kindly guide me. Thanx

Tags (2)
1 REPLY

Re: Modifying Onepage checkout

Hi Vishalonnet,

Please Check below code

**Magento: Skip Shipping Method from onepage checkout**

First override following files(i.e. in local directory) rather than changing the core:
1) app/code/core/Mage/Checkout/Block/Onepage/Onepage.php
2) app/code/core/mage/checkout/controller/Onepagecontrollers.php
3) app/code/core/Mage/Sales/Model/Service/Quote.php
4) app/design/frontend/base/default/template/checkout/onepage/progress.phtml
5) app/code/core/Mage/Sales/Model/Service/Quote.php

Once done follow the below steps:

**Step 1: app/code/local/Mage/Checkout/Block/Onepage.php**

Change the line:
$stepCodes = array('billing', 'shipping', 'shipping_method', 'payment', 'review');

In Magento 1.7+ you will find $stepCodes in for each just replace with below code 
with:
$stepCodes = array('billing', 'shipping', 'payment', 'review');


**Step 2: app/code/local/Mage/Checkout/controller/Onepagecontrollers.php**

Change the line:
protected $_sectionUpdateFunctions = array(
'payment-method' => '_getPaymentMethodsHtml',
'shpping-method' => '_getShippingMeghtoHtml',
'review' => '_getReviewHtml',
);

with:
protected $_sectionUpdateFunctions = array(
'payment-method' => '_getPaymentMethodsHtml',
'review' => '_getReviewHtml',
);