Magento - Show custom data on Order Information page (Customer Account) Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Account Information custom field on Order DetailsRecently product view not workingMagento custom adminhtml template gets overwritten by default templateOrder shows no line items for Bundled ProductMagento: Display custom product attribute in admin Items ordered blockMagento 2 : Problem while adding custom button order view page?Adding QTY+Location to order view page, Demac Magento-Multi-Location-Inventory ExtensionAdd own custom option and display on sales order in magentoOrder: To get comment field details from DB in magento 2Bundle product email template

Dynamic filling of a region of a polar plot

How could we fake a moon landing now?

How often does castling occur in grandmaster games?

What does it mean that physics no longer uses mechanical models to describe phenomena?

Can a sorcerer use careful spell on himself?

Converted a Scalar function to a TVF function for parallel execution-Still running in Serial mode

Google .dev domain strangely redirects to https

Random body shuffle every night—can we still function?

How do I find out the mythology and history of my Fortress?

The test team as an enemy of development? And how can this be avoided?

Intuitive explanation of the rank-nullity theorem

AppleTVs create a chatty alternate WiFi network

Can the Flaming Sphere spell be rammed into multiple Tiny creatures that are in the same 5-foot square?

macOS: Name for app shortcut screen found by pinching with thumb and three fingers

Putting class ranking in CV, but against dept guidelines

Getting prompted for verification code but where do I put it in?

What does this say in Elvish?

Did any compiler fully use 80-bit floating point?

How to compare two different files line by line in unix?

Why does it sometimes sound good to play a grace note as a lead in to a note in a melody?

Drawing spherical mirrors

How does Belgium enforce obligatory attendance in elections?

Is there hard evidence that the grant peer review system performs significantly better than random?

Why weren't discrete x86 CPUs ever used in game hardware?



Magento - Show custom data on Order Information page (Customer Account)



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Account Information custom field on Order DetailsRecently product view not workingMagento custom adminhtml template gets overwritten by default templateOrder shows no line items for Bundled ProductMagento: Display custom product attribute in admin Items ordered blockMagento 2 : Problem while adding custom button order view page?Adding QTY+Location to order view page, Demac Magento-Multi-Location-Inventory ExtensionAdd own custom option and display on sales order in magentoOrder: To get comment field details from DB in magento 2Bundle product email template



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








4















I need to display points earned by customer on Order Information page under customer account.



module.xml



<sales_order_view>
<reference name="order_items">
<action method="addItemRender" ifconfig="mymodule/general/active"><type>default</type>
<block>sales/order_item_renderer_default</block>
<template>namespace/mymodule/sales/order/items/renderer/default.phtml</template>
</action>
</reference>
</sales_order_view>


Copied file from core - sales/order/items/renderer/default.phtml to namespace/mymodule/sales/order/items/renderer/default.phtml and along with default code, I added mine



<!--show points earned on each product-->
<?php $finalPointsEarned = ($_item->getCustomerProductPoints() * $_item->getQtyOrdered()); ?>
<div class="product-cart-sku">
<span style="color: #d4af37; font-weight: bold;"><?php echo $this->__('Points Earned:'); ?>
<?php echo $finalPointsEarned ?>
</span>
</div>
<!--show points earned on each product-->


As shown in below image, this is how points earned are shown



Image



  1. Is this the correct approach/method to show custom data on Order
    Information page ?

  2. If not, how do I override Sales/Order/Item/Rendered/Default block to show the same without copying core file
    in my extension and then adding my code ?

Will it be same for below mentioned files too ?



sales/order/invoice/items/renderer/
sales/order/shipment/items/renderer/
sales/order/creditmemo/items/renderer/


Also, I am showing the same information in admin section by copying files in my extension



adminhtmldefaultdefaulttemplatenamespacemodulenamesalesordertotal.phtml


P.S. The files belongs to community extension



EDIT AS PER CUSTOM BLOCK CREATION



config.xml



<global>
<blocks>
<productpoint>
<class>Namespace_Modulename_Block</class>
</productpoint>
<sales>
<rewrite>
<order_item_renderer_default>Namespace_Modulename_Block_Sales_Order_Item_Renderer_Default</order_item_renderer_default>
</rewrite>
</sales>
</blocks>
</global>


points.xml



<sales_order_invoice>
<reference name="invoice_items">
<block type="core/text_list" name="invoice.productpoints.info" translate="label">
<label>Additional Points Info</label>
</block>
</reference>
</sales_order_invoice>


Sales/Order/Item/Renderer/Default.php



<?php

class Namespace_Modulename_Block_Sales_Order_Item_Renderer_Default extends Mage_Sales_Block_Order_Item_Renderer_Default

public function getInvoiceProductPoints()

parent::getItem();
$_item = $this->getItem();
$finalPointsEarned = ($_item->getCustomerProductPoints() * $_item->getQty());
return $finalPointsEarned;




sales/order/items/renderer/default.phtml



<?php $addInfoBlock = $this->getInvoiceProductPoints(); ?>
<?php if ($addInfoBlock): ?>
<?php echo $addInfoBlock ?>
<?php endif;?>









share|improve this question
















bumped to the homepage by Community 2 days ago


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





















    4















    I need to display points earned by customer on Order Information page under customer account.



    module.xml



    <sales_order_view>
    <reference name="order_items">
    <action method="addItemRender" ifconfig="mymodule/general/active"><type>default</type>
    <block>sales/order_item_renderer_default</block>
    <template>namespace/mymodule/sales/order/items/renderer/default.phtml</template>
    </action>
    </reference>
    </sales_order_view>


    Copied file from core - sales/order/items/renderer/default.phtml to namespace/mymodule/sales/order/items/renderer/default.phtml and along with default code, I added mine



    <!--show points earned on each product-->
    <?php $finalPointsEarned = ($_item->getCustomerProductPoints() * $_item->getQtyOrdered()); ?>
    <div class="product-cart-sku">
    <span style="color: #d4af37; font-weight: bold;"><?php echo $this->__('Points Earned:'); ?>
    <?php echo $finalPointsEarned ?>
    </span>
    </div>
    <!--show points earned on each product-->


    As shown in below image, this is how points earned are shown



    Image



    1. Is this the correct approach/method to show custom data on Order
      Information page ?

    2. If not, how do I override Sales/Order/Item/Rendered/Default block to show the same without copying core file
      in my extension and then adding my code ?

    Will it be same for below mentioned files too ?



    sales/order/invoice/items/renderer/
    sales/order/shipment/items/renderer/
    sales/order/creditmemo/items/renderer/


    Also, I am showing the same information in admin section by copying files in my extension



    adminhtmldefaultdefaulttemplatenamespacemodulenamesalesordertotal.phtml


    P.S. The files belongs to community extension



    EDIT AS PER CUSTOM BLOCK CREATION



    config.xml



    <global>
    <blocks>
    <productpoint>
    <class>Namespace_Modulename_Block</class>
    </productpoint>
    <sales>
    <rewrite>
    <order_item_renderer_default>Namespace_Modulename_Block_Sales_Order_Item_Renderer_Default</order_item_renderer_default>
    </rewrite>
    </sales>
    </blocks>
    </global>


    points.xml



    <sales_order_invoice>
    <reference name="invoice_items">
    <block type="core/text_list" name="invoice.productpoints.info" translate="label">
    <label>Additional Points Info</label>
    </block>
    </reference>
    </sales_order_invoice>


    Sales/Order/Item/Renderer/Default.php



    <?php

    class Namespace_Modulename_Block_Sales_Order_Item_Renderer_Default extends Mage_Sales_Block_Order_Item_Renderer_Default

    public function getInvoiceProductPoints()

    parent::getItem();
    $_item = $this->getItem();
    $finalPointsEarned = ($_item->getCustomerProductPoints() * $_item->getQty());
    return $finalPointsEarned;




    sales/order/items/renderer/default.phtml



    <?php $addInfoBlock = $this->getInvoiceProductPoints(); ?>
    <?php if ($addInfoBlock): ?>
    <?php echo $addInfoBlock ?>
    <?php endif;?>









    share|improve this question
















    bumped to the homepage by Community 2 days ago


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

















      4












      4








      4








      I need to display points earned by customer on Order Information page under customer account.



      module.xml



      <sales_order_view>
      <reference name="order_items">
      <action method="addItemRender" ifconfig="mymodule/general/active"><type>default</type>
      <block>sales/order_item_renderer_default</block>
      <template>namespace/mymodule/sales/order/items/renderer/default.phtml</template>
      </action>
      </reference>
      </sales_order_view>


      Copied file from core - sales/order/items/renderer/default.phtml to namespace/mymodule/sales/order/items/renderer/default.phtml and along with default code, I added mine



      <!--show points earned on each product-->
      <?php $finalPointsEarned = ($_item->getCustomerProductPoints() * $_item->getQtyOrdered()); ?>
      <div class="product-cart-sku">
      <span style="color: #d4af37; font-weight: bold;"><?php echo $this->__('Points Earned:'); ?>
      <?php echo $finalPointsEarned ?>
      </span>
      </div>
      <!--show points earned on each product-->


      As shown in below image, this is how points earned are shown



      Image



      1. Is this the correct approach/method to show custom data on Order
        Information page ?

      2. If not, how do I override Sales/Order/Item/Rendered/Default block to show the same without copying core file
        in my extension and then adding my code ?

      Will it be same for below mentioned files too ?



      sales/order/invoice/items/renderer/
      sales/order/shipment/items/renderer/
      sales/order/creditmemo/items/renderer/


      Also, I am showing the same information in admin section by copying files in my extension



      adminhtmldefaultdefaulttemplatenamespacemodulenamesalesordertotal.phtml


      P.S. The files belongs to community extension



      EDIT AS PER CUSTOM BLOCK CREATION



      config.xml



      <global>
      <blocks>
      <productpoint>
      <class>Namespace_Modulename_Block</class>
      </productpoint>
      <sales>
      <rewrite>
      <order_item_renderer_default>Namespace_Modulename_Block_Sales_Order_Item_Renderer_Default</order_item_renderer_default>
      </rewrite>
      </sales>
      </blocks>
      </global>


      points.xml



      <sales_order_invoice>
      <reference name="invoice_items">
      <block type="core/text_list" name="invoice.productpoints.info" translate="label">
      <label>Additional Points Info</label>
      </block>
      </reference>
      </sales_order_invoice>


      Sales/Order/Item/Renderer/Default.php



      <?php

      class Namespace_Modulename_Block_Sales_Order_Item_Renderer_Default extends Mage_Sales_Block_Order_Item_Renderer_Default

      public function getInvoiceProductPoints()

      parent::getItem();
      $_item = $this->getItem();
      $finalPointsEarned = ($_item->getCustomerProductPoints() * $_item->getQty());
      return $finalPointsEarned;




      sales/order/items/renderer/default.phtml



      <?php $addInfoBlock = $this->getInvoiceProductPoints(); ?>
      <?php if ($addInfoBlock): ?>
      <?php echo $addInfoBlock ?>
      <?php endif;?>









      share|improve this question
















      I need to display points earned by customer on Order Information page under customer account.



      module.xml



      <sales_order_view>
      <reference name="order_items">
      <action method="addItemRender" ifconfig="mymodule/general/active"><type>default</type>
      <block>sales/order_item_renderer_default</block>
      <template>namespace/mymodule/sales/order/items/renderer/default.phtml</template>
      </action>
      </reference>
      </sales_order_view>


      Copied file from core - sales/order/items/renderer/default.phtml to namespace/mymodule/sales/order/items/renderer/default.phtml and along with default code, I added mine



      <!--show points earned on each product-->
      <?php $finalPointsEarned = ($_item->getCustomerProductPoints() * $_item->getQtyOrdered()); ?>
      <div class="product-cart-sku">
      <span style="color: #d4af37; font-weight: bold;"><?php echo $this->__('Points Earned:'); ?>
      <?php echo $finalPointsEarned ?>
      </span>
      </div>
      <!--show points earned on each product-->


      As shown in below image, this is how points earned are shown



      Image



      1. Is this the correct approach/method to show custom data on Order
        Information page ?

      2. If not, how do I override Sales/Order/Item/Rendered/Default block to show the same without copying core file
        in my extension and then adding my code ?

      Will it be same for below mentioned files too ?



      sales/order/invoice/items/renderer/
      sales/order/shipment/items/renderer/
      sales/order/creditmemo/items/renderer/


      Also, I am showing the same information in admin section by copying files in my extension



      adminhtmldefaultdefaulttemplatenamespacemodulenamesalesordertotal.phtml


      P.S. The files belongs to community extension



      EDIT AS PER CUSTOM BLOCK CREATION



      config.xml



      <global>
      <blocks>
      <productpoint>
      <class>Namespace_Modulename_Block</class>
      </productpoint>
      <sales>
      <rewrite>
      <order_item_renderer_default>Namespace_Modulename_Block_Sales_Order_Item_Renderer_Default</order_item_renderer_default>
      </rewrite>
      </sales>
      </blocks>
      </global>


      points.xml



      <sales_order_invoice>
      <reference name="invoice_items">
      <block type="core/text_list" name="invoice.productpoints.info" translate="label">
      <label>Additional Points Info</label>
      </block>
      </reference>
      </sales_order_invoice>


      Sales/Order/Item/Renderer/Default.php



      <?php

      class Namespace_Modulename_Block_Sales_Order_Item_Renderer_Default extends Mage_Sales_Block_Order_Item_Renderer_Default

      public function getInvoiceProductPoints()

      parent::getItem();
      $_item = $this->getItem();
      $finalPointsEarned = ($_item->getCustomerProductPoints() * $_item->getQty());
      return $finalPointsEarned;




      sales/order/items/renderer/default.phtml



      <?php $addInfoBlock = $this->getInvoiceProductPoints(); ?>
      <?php if ($addInfoBlock): ?>
      <?php echo $addInfoBlock ?>
      <?php endif;?>






      magento-1.9 orders sales-order customer-account






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 3 '17 at 7:20









      sv3n

      10k62557




      10k62557










      asked Mar 18 '16 at 8:53









      SlimshadddyyySlimshadddyyy

      62011547




      62011547





      bumped to the homepage by Community 2 days 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 2 days ago


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






















          1 Answer
          1






          active

          oldest

          votes


















          0














          1.) Correct : Well, it largely depends upon the file/situation you are working in. But lot of core templates allow third party extensions to inject their code in a much decent manner, your condition happens to be one of those.



          2.) Instead of copying over the entire core file, take a look at the template and layout files for the same. Inside template, you can see that there is a code block as <?php $addtInfoBlock = $this->getProductAdditionalInformationBlock(); ?>.



          Now, if you search in corresponding block for the same, you'll see, it is calling the handle additional.product.info from layout, and in layout, it is core/text_list type of block. There you have it. You can simply reference your custom code aiming at this handle and Magento will pick up your information for the display and you won't need to copy over the entire template file to your extension.



          Try this approach and see if you get a cleaner extension.






          share|improve this answer























          • Prateek: Would be great if you could post some code snippet for Point #2 you mentioned considering block

            – Slimshadddyyy
            Mar 18 '16 at 11:03











          • See CODE EDIT above. I still do not show core block being called. Do I need to put the core html file and then inject my block ?

            – Slimshadddyyy
            Mar 21 '16 at 6:41











          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%2f106859%2fmagento-show-custom-data-on-order-information-page-customer-account%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          1.) Correct : Well, it largely depends upon the file/situation you are working in. But lot of core templates allow third party extensions to inject their code in a much decent manner, your condition happens to be one of those.



          2.) Instead of copying over the entire core file, take a look at the template and layout files for the same. Inside template, you can see that there is a code block as <?php $addtInfoBlock = $this->getProductAdditionalInformationBlock(); ?>.



          Now, if you search in corresponding block for the same, you'll see, it is calling the handle additional.product.info from layout, and in layout, it is core/text_list type of block. There you have it. You can simply reference your custom code aiming at this handle and Magento will pick up your information for the display and you won't need to copy over the entire template file to your extension.



          Try this approach and see if you get a cleaner extension.






          share|improve this answer























          • Prateek: Would be great if you could post some code snippet for Point #2 you mentioned considering block

            – Slimshadddyyy
            Mar 18 '16 at 11:03











          • See CODE EDIT above. I still do not show core block being called. Do I need to put the core html file and then inject my block ?

            – Slimshadddyyy
            Mar 21 '16 at 6:41















          0














          1.) Correct : Well, it largely depends upon the file/situation you are working in. But lot of core templates allow third party extensions to inject their code in a much decent manner, your condition happens to be one of those.



          2.) Instead of copying over the entire core file, take a look at the template and layout files for the same. Inside template, you can see that there is a code block as <?php $addtInfoBlock = $this->getProductAdditionalInformationBlock(); ?>.



          Now, if you search in corresponding block for the same, you'll see, it is calling the handle additional.product.info from layout, and in layout, it is core/text_list type of block. There you have it. You can simply reference your custom code aiming at this handle and Magento will pick up your information for the display and you won't need to copy over the entire template file to your extension.



          Try this approach and see if you get a cleaner extension.






          share|improve this answer























          • Prateek: Would be great if you could post some code snippet for Point #2 you mentioned considering block

            – Slimshadddyyy
            Mar 18 '16 at 11:03











          • See CODE EDIT above. I still do not show core block being called. Do I need to put the core html file and then inject my block ?

            – Slimshadddyyy
            Mar 21 '16 at 6:41













          0












          0








          0







          1.) Correct : Well, it largely depends upon the file/situation you are working in. But lot of core templates allow third party extensions to inject their code in a much decent manner, your condition happens to be one of those.



          2.) Instead of copying over the entire core file, take a look at the template and layout files for the same. Inside template, you can see that there is a code block as <?php $addtInfoBlock = $this->getProductAdditionalInformationBlock(); ?>.



          Now, if you search in corresponding block for the same, you'll see, it is calling the handle additional.product.info from layout, and in layout, it is core/text_list type of block. There you have it. You can simply reference your custom code aiming at this handle and Magento will pick up your information for the display and you won't need to copy over the entire template file to your extension.



          Try this approach and see if you get a cleaner extension.






          share|improve this answer













          1.) Correct : Well, it largely depends upon the file/situation you are working in. But lot of core templates allow third party extensions to inject their code in a much decent manner, your condition happens to be one of those.



          2.) Instead of copying over the entire core file, take a look at the template and layout files for the same. Inside template, you can see that there is a code block as <?php $addtInfoBlock = $this->getProductAdditionalInformationBlock(); ?>.



          Now, if you search in corresponding block for the same, you'll see, it is calling the handle additional.product.info from layout, and in layout, it is core/text_list type of block. There you have it. You can simply reference your custom code aiming at this handle and Magento will pick up your information for the display and you won't need to copy over the entire template file to your extension.



          Try this approach and see if you get a cleaner extension.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 18 '16 at 10:51









          PrateekPrateek

          1,77911129




          1,77911129












          • Prateek: Would be great if you could post some code snippet for Point #2 you mentioned considering block

            – Slimshadddyyy
            Mar 18 '16 at 11:03











          • See CODE EDIT above. I still do not show core block being called. Do I need to put the core html file and then inject my block ?

            – Slimshadddyyy
            Mar 21 '16 at 6:41

















          • Prateek: Would be great if you could post some code snippet for Point #2 you mentioned considering block

            – Slimshadddyyy
            Mar 18 '16 at 11:03











          • See CODE EDIT above. I still do not show core block being called. Do I need to put the core html file and then inject my block ?

            – Slimshadddyyy
            Mar 21 '16 at 6:41
















          Prateek: Would be great if you could post some code snippet for Point #2 you mentioned considering block

          – Slimshadddyyy
          Mar 18 '16 at 11:03





          Prateek: Would be great if you could post some code snippet for Point #2 you mentioned considering block

          – Slimshadddyyy
          Mar 18 '16 at 11:03













          See CODE EDIT above. I still do not show core block being called. Do I need to put the core html file and then inject my block ?

          – Slimshadddyyy
          Mar 21 '16 at 6:41





          See CODE EDIT above. I still do not show core block being called. Do I need to put the core html file and then inject my block ?

          – Slimshadddyyy
          Mar 21 '16 at 6:41

















          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%2f106859%2fmagento-show-custom-data-on-order-information-page-customer-account%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

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

          Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?