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.

6
  • you need to change only in order detail page? Commented Jul 4, 2018 at 13:10
  • @SukumarGorai i want to append that dynamic variable to my Title via code Commented Jul 4, 2018 at 13:39
  • only for order view page? Commented Jul 4, 2018 at 13:40
  • @DhirenVasoya yes sir only at that page Commented Jul 4, 2018 at 13:40
  • @SukumarGorai yes ... Commented Jul 4, 2018 at 13:41

1 Answer 1

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!

4
  • 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 Commented Jul 4, 2018 at 18:08
  • You can manage it through layout XML by setting up the template for that particular block Commented Jul 4, 2018 at 18:13
  • can we have a chat please ??? Commented Jul 5, 2018 at 6:27
  • Sure give me 10 mins Commented Jul 5, 2018 at 6:51

Your Answer

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

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