0

I want to ask how to remove tax, company, middle name, zip postal code from checkout one page

Magento 1.9

3

You can remove fax,company and zip/postal code from below phtml file.

app\design\frontend\base\default\template\checkout\onepage\billing.phtml

middle name from -

app\design\frontend\base\default\template\customer\widget\name.phtml

Best way to do it is first copy all phtml template files to your custom theme then remove it.

  • Are you sure that it works? you thought a little about a validations ?, you risk to have a downvotes with this solution ! – PЯINCƏ Sep 24 '17 at 21:04
  • you mean remove the company code from the file? – muzramn Oct 1 '17 at 16:55
  • yes remove Company field from file. And make query in table as Prince said. Update eav_attribute table where attribute_code = 'postcode' to set is_required to 0 instead of 1 – Sarvesh Ahuja Oct 1 '17 at 17:02
  • thanks for your help, but it didn't remove :( – muzramn Oct 2 '17 at 17:43
  • make sure you are changing in your custom theme file. – Sarvesh Ahuja Oct 2 '17 at 18:36
0

For the Company and Fax, you have to comment the fields in :

app/design/frontend/{your_package}/{your_theme}/template/checkout/onepage/billing.phtml
app/design/frontend/{your_package}/{your_theme}/template/checkout/onepage/shipping.phtml
app/design/frontend/{your_package}/{your_theme}/template/persistent/checkout/onepage/billing.phtml

For Zip: you comment the zip field in the three paths mentionned above plus this :

Update eav_attribute table where attribute_code = 'postcode' to set is_required to 0 instead of 1

  • Sorry, what do you mean by comment? – muzramn Oct 1 '17 at 16:54
  • You put it in a comment <?php /* the field */ ?> instead of remove – PЯINCƏ Oct 1 '17 at 17:15
  • thanks for your help, but it didn't remove :( – muzramn Oct 2 '17 at 17:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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