How to override the payment methods template while display in checkout page in magento 2
-
07-01-2021 - |
سؤال
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
المحلول
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
لا تنتمي إلى magento.stackexchange