0

Invalid template file: 'RW_CustomPaymentMethod::info/custompaymentmethod.phtml' in module: 'RW_CustomPaymentMethod' block's name: 'info\custompaymentmethod_0'

Should we declare this template somewhere else too. And also in view folder, i have only adminhtml folder no frontend folder as this payment method has to be only from admin panel.

0

You have to create custompaymentmethod.phtml at frontend folder.As you have trying to build for both and frontend.

3
  • No, i don't want the payment method to be used for customer from storefront. Still should i create frontend folder?
    – sahana
    Sep 20 '18 at 13:23
  • yes, you have to use
    – Amit Bera
    Sep 20 '18 at 13:24
  • How do I store this value in a database?
    – sahana
    Sep 21 '18 at 4:15
0

Kindly create the phtml file into below location.

app/code/RW/CustomPaymentMethod/view/frontend/templates/info/custompaymentmethod.phtml

Note : if you do not want to offer customer for frontend, then you can leave this phtml file blank.

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.