2

how to remove street address country city from billing information in checkout page.i want to remove these above compulsory fields at the time of checkout page.as i tried it in abstract page but it not

1 Answer 1

1

You have to remove the required-class from each of this field. You can use 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/

1
  • Hi Pradeep how can we do this for specific country for example if country selected is India then CITY should not be required validation.
    – dhoni7
    Jan 12, 2015 at 10:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.