Magento – How to remove street city field from billing address in checkout

addressbilling-addresscheckoutmagento-1

Is it possible to remove the address street city field from billing information in checkout page in magento?

As already try in abstract page but it's not done, then to try in database to change eav_attribute but not done. Would you please give some information how to remove these particular compulsory field from this billing information? Please give me suggestion

Best Answer

You have to remove the required-class from each of this field.you can you jquery

jQuery(document).ready(function(){
    jQuery('#billing\\:street1').removeClass('required-entry');
    jQuery('#billing\\:city').removeClass('required-entry');
    jQuery('#billing\\:country_id').removeClass('required-entry');
    jQuery('#billing\\:country_id').removeClass('validate-select');
}

in the billing.phtml from checkout/onepage/

Related Topic