Magento 2 : Payment Method Title not showing in Order view in admin





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







2















I made a custom online payment method. All things are going proper, but in order view page in Admin I am Not getting Payment Method Title. We already set the configuration for title and its same like another payment method also in DB we are getting the payment method code in sales_order_payment table. Also getting payment method in order grid but not in Order View. Please give me some suggestion on this.










share|improve this question
















bumped to the homepage by Community 7 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • How about your current issue?

    – Khoa TruongDinh
    Sep 12 '16 at 2:28


















2















I made a custom online payment method. All things are going proper, but in order view page in Admin I am Not getting Payment Method Title. We already set the configuration for title and its same like another payment method also in DB we are getting the payment method code in sales_order_payment table. Also getting payment method in order grid but not in Order View. Please give me some suggestion on this.










share|improve this question
















bumped to the homepage by Community 7 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • How about your current issue?

    – Khoa TruongDinh
    Sep 12 '16 at 2:28














2












2








2








I made a custom online payment method. All things are going proper, but in order view page in Admin I am Not getting Payment Method Title. We already set the configuration for title and its same like another payment method also in DB we are getting the payment method code in sales_order_payment table. Also getting payment method in order grid but not in Order View. Please give me some suggestion on this.










share|improve this question
















I made a custom online payment method. All things are going proper, but in order view page in Admin I am Not getting Payment Method Title. We already set the configuration for title and its same like another payment method also in DB we are getting the payment method code in sales_order_payment table. Also getting payment method in order grid but not in Order View. Please give me some suggestion on this.







magento2 payment-methods






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 7 '16 at 12:27









Khoa TruongDinh

22.4k64187




22.4k64187










asked Sep 7 '16 at 10:49









Ashish JagnaniAshish Jagnani

4,61721956




4,61721956





bumped to the homepage by Community 7 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 7 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • How about your current issue?

    – Khoa TruongDinh
    Sep 12 '16 at 2:28



















  • How about your current issue?

    – Khoa TruongDinh
    Sep 12 '16 at 2:28

















How about your current issue?

– Khoa TruongDinh
Sep 12 '16 at 2:28





How about your current issue?

– Khoa TruongDinh
Sep 12 '16 at 2:28










2 Answers
2






active

oldest

votes


















0














in [vendor]/[module]/etc/adminhtml/system.xml make sure you have something like this (label element)



<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Config/etc/system_file.xsd">
<system>
<section id="payment">
<group id="my_custompayment" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Title for my custom payment</label>
<comment>
<!-- comment -->
</comment>
<!-- fields -->
<field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>





share|improve this answer


























  • This relates to the configuration page, not the order view page. The question was asking where the text for the order view page is specified.

    – DanJAB
    Oct 29 '16 at 13:05



















0














Simple way to get Payment title any where:



<?php 
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$order = $objectManager->get('MagentoSalesModelOrder')->loadByIncrementId($block->getOrderId());
echo $payment = $order->getPayment()->getMethodInstance()->getTitle();
?>


:)






share|improve this answer



















  • 1





    You should never use the ObjectManager directly in your code, always inject dependencies in your constructor. Read more about dependency injection in the DevDocs.

    – Danny Nimmo
    Apr 12 '17 at 10:55












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f135158%2fmagento-2-payment-method-title-not-showing-in-order-view-in-admin%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














in [vendor]/[module]/etc/adminhtml/system.xml make sure you have something like this (label element)



<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Config/etc/system_file.xsd">
<system>
<section id="payment">
<group id="my_custompayment" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Title for my custom payment</label>
<comment>
<!-- comment -->
</comment>
<!-- fields -->
<field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>





share|improve this answer


























  • This relates to the configuration page, not the order view page. The question was asking where the text for the order view page is specified.

    – DanJAB
    Oct 29 '16 at 13:05
















0














in [vendor]/[module]/etc/adminhtml/system.xml make sure you have something like this (label element)



<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Config/etc/system_file.xsd">
<system>
<section id="payment">
<group id="my_custompayment" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Title for my custom payment</label>
<comment>
<!-- comment -->
</comment>
<!-- fields -->
<field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>





share|improve this answer


























  • This relates to the configuration page, not the order view page. The question was asking where the text for the order view page is specified.

    – DanJAB
    Oct 29 '16 at 13:05














0












0








0







in [vendor]/[module]/etc/adminhtml/system.xml make sure you have something like this (label element)



<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Config/etc/system_file.xsd">
<system>
<section id="payment">
<group id="my_custompayment" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Title for my custom payment</label>
<comment>
<!-- comment -->
</comment>
<!-- fields -->
<field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>





share|improve this answer















in [vendor]/[module]/etc/adminhtml/system.xml make sure you have something like this (label element)



<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Config/etc/system_file.xsd">
<system>
<section id="payment">
<group id="my_custompayment" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Title for my custom payment</label>
<comment>
<!-- comment -->
</comment>
<!-- fields -->
<field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>






share|improve this answer














share|improve this answer



share|improve this answer








edited Sep 7 '16 at 11:23









Bilal Usean

5,19044093




5,19044093










answered Sep 7 '16 at 11:02









AndyAndy

566




566













  • This relates to the configuration page, not the order view page. The question was asking where the text for the order view page is specified.

    – DanJAB
    Oct 29 '16 at 13:05



















  • This relates to the configuration page, not the order view page. The question was asking where the text for the order view page is specified.

    – DanJAB
    Oct 29 '16 at 13:05

















This relates to the configuration page, not the order view page. The question was asking where the text for the order view page is specified.

– DanJAB
Oct 29 '16 at 13:05





This relates to the configuration page, not the order view page. The question was asking where the text for the order view page is specified.

– DanJAB
Oct 29 '16 at 13:05













0














Simple way to get Payment title any where:



<?php 
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$order = $objectManager->get('MagentoSalesModelOrder')->loadByIncrementId($block->getOrderId());
echo $payment = $order->getPayment()->getMethodInstance()->getTitle();
?>


:)






share|improve this answer



















  • 1





    You should never use the ObjectManager directly in your code, always inject dependencies in your constructor. Read more about dependency injection in the DevDocs.

    – Danny Nimmo
    Apr 12 '17 at 10:55
















0














Simple way to get Payment title any where:



<?php 
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$order = $objectManager->get('MagentoSalesModelOrder')->loadByIncrementId($block->getOrderId());
echo $payment = $order->getPayment()->getMethodInstance()->getTitle();
?>


:)






share|improve this answer



















  • 1





    You should never use the ObjectManager directly in your code, always inject dependencies in your constructor. Read more about dependency injection in the DevDocs.

    – Danny Nimmo
    Apr 12 '17 at 10:55














0












0








0







Simple way to get Payment title any where:



<?php 
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$order = $objectManager->get('MagentoSalesModelOrder')->loadByIncrementId($block->getOrderId());
echo $payment = $order->getPayment()->getMethodInstance()->getTitle();
?>


:)






share|improve this answer













Simple way to get Payment title any where:



<?php 
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$order = $objectManager->get('MagentoSalesModelOrder')->loadByIncrementId($block->getOrderId());
echo $payment = $order->getPayment()->getMethodInstance()->getTitle();
?>


:)







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 12 '17 at 10:08









KSMKSM

414




414








  • 1





    You should never use the ObjectManager directly in your code, always inject dependencies in your constructor. Read more about dependency injection in the DevDocs.

    – Danny Nimmo
    Apr 12 '17 at 10:55














  • 1





    You should never use the ObjectManager directly in your code, always inject dependencies in your constructor. Read more about dependency injection in the DevDocs.

    – Danny Nimmo
    Apr 12 '17 at 10:55








1




1





You should never use the ObjectManager directly in your code, always inject dependencies in your constructor. Read more about dependency injection in the DevDocs.

– Danny Nimmo
Apr 12 '17 at 10:55





You should never use the ObjectManager directly in your code, always inject dependencies in your constructor. Read more about dependency injection in the DevDocs.

– Danny Nimmo
Apr 12 '17 at 10:55


















draft saved

draft discarded




















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f135158%2fmagento-2-payment-method-title-not-showing-in-order-view-in-admin%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

What other Star Trek series did the main TNG cast show up in?

Berlina muro

Berlina aerponto