Question

I want to be able to replace "Purchase Order Number" to just "Order Number", I couldn't find the right phtml file that handles this.

enter image description here

Does anyone know what is the right phtml or html file, so I can change the wordings? Thank you.

No correct solution

OTHER TIPS

You can use translation i18n to change the label. Please follow this link

In your i18n/en_US.csv file translate the purchase order number with your required label.

"Purchase Order Number", "Your Custom Label"

After this run setup upgrade, compile and deploy your setup.

The original template can be found on below path

vendor/magento/module-purchase-order/view/frontend/web/template/payment/companycredit-form.html

The default text should be "Custom Reference Number".

But possibly in your case template is already overridden or text is being changed using translation csv. Check is there any override or translation already exists in your case. And update accordingly.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top