3

I want to change my new added payment method title in the order details page. There is a dynamic type which I get via my payment gateway.

It has to be like {my payment method title} /{that variable}. Which in my case would be like a {my payment Method} / wallet. I am getting the value of that variable in my controller file of my extension.

  • you need to change only in order detail page? – Dhiren Vasoya Jul 4 '18 at 13:10
  • @SukumarGorai i want to append that dynamic variable to my Title via code – Subhan Sunny Jul 4 '18 at 13:39
  • only for order view page? – Sukumar Gorai Jul 4 '18 at 13:40
  • @DhirenVasoya yes sir only at that page – Subhan Sunny Jul 4 '18 at 13:40
  • @SukumarGorai yes ... – Subhan Sunny Jul 4 '18 at 13:41
1

Goto the below location:

/app/design/adminhtml/default/default/template/sales/order/view/tab/info.phtml

You will find the Payment Information there which is called on order details page. You can edit this according to your requirement and logic.

Also there are some more files where this information will shown like:

app/design/adminhtml/default/default/template/sales/order/creditmemo/create/form.phtml

app/design/adminhtml/default/default/template/sales/order/creditmemo/view/form.phtml

app/design/adminhtml/default/default/template/sales/order/invoice/create/form.phtml

app/design/adminhtml/default/default/template/sales/order/invoice/view/form.phtml

app/design/adminhtml/default/default/template/sales/order/shipment/create/form.phtml

app/design/adminhtml/default/default/template/sales/order/shipment/view/form.phtml

Hope this helps!

  • sir thanks a lot, but i gotta do this through the extension i've made for my added payment method. I can't make any change files the core files of magento – Subhan Sunny Jul 4 '18 at 18:08
  • You can manage it through layout XML by setting up the template for that particular block – Sukumar Gorai Jul 4 '18 at 18:13
  • can we have a chat please ??? – Subhan Sunny Jul 5 '18 at 6:27
  • Sure give me 10 mins – Sukumar Gorai Jul 5 '18 at 6:51

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.