0

In Magento 1

/var/www/html/xxx/app/design/frontend/base/default/template/checkout/onepage/payment/methods.phtml.

In Magento 2

What is the equivalent file for the above one in magento 2 and how to override it. Please provide me a solution

1 Answer 1

1

Just your informed Magento2.x using knockout js MVC structure.

In Magento 2

Checkout page payment methods list display in list.html and this file available at location /xxx/vendor/magento/module-checkout/view/frontend/web/template/payment-methods/list.html

If need to override this file in your theme then copy core file at location

/xxx/app/design/frontend/{Your-Theme}/theme/Magento_Checkout/web/template/payment-methods/list.html

After run below commands:

php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento cache:flush
8
  • I wish to add new payment methods and wish to customize its look in checkout page
    – Jaisa
    Commented Apr 21, 2018 at 11:27
  • Yes if your add new payment methods It is is display on checkout page
    – Abdul
    Commented Apr 21, 2018 at 11:28
  • But it is KO template, I did't know how to override it, Can you suggest
    – Jaisa
    Commented Apr 21, 2018 at 11:30
  • Have you created custom payment method? There are two files for eg \app\code\AR\Newpayment\view\frontend\templates\form\Newpayment.phtml \app\code\AR\Newpayment\view\frontend\web\template\payment\newpayment.html
    – Abdul
    Commented Apr 21, 2018 at 11:32
  • I have created system configuration for my payment method in backend
    – Jaisa
    Commented Apr 21, 2018 at 11:37

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.