1

Is there any way to make purchase order optional in checkout page??

0

You can edit below file to make Purchase Order Number optional

copy

mage2root/vendor/magento/module-offline-payments/view/frontend/web/template/payment/purchaseorder-form.html

to

app/design/frontend/{Package}/{theme}/Magento_OfflinePayments/web/template/payment/purchaseorder-form.html

in the above file, you need to remove data-validate="{required:true}" from input box.

After that you need to clear cache, Remove static content and if in production module, deploy content

  • I tried this but it's not working – gill May 14 at 14:48
  • what is not working ? template overriding working ? can see your changes on front ? – Pawan May 14 at 17:00
  • Overriding is working but purchase order still showing required. – gill May 14 at 18:40

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.