Payment Plugins
  • Payment PlugIns
  • Word Press PlugIns
  • OpenCart PlugIns
  • Magento PlugIns
    • Magento Issue Fix
    • Plugin for Magento 1 setup
  • ECSHOP PlugIns
  • > Back to Top Page
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Magento PlugIns

Magento Issue Fix

for version 2.3.3 to version 2.3.5, here is our approach to fix the issue, just for reference.

PreviousMagento PlugInsNextPlugin for Magento 1 setup

Last updated 4 years ago

Was this helpful?

Modification of select-payment-method.js

Go to Magento path, find the file:

vendor/magento/module-checkout/view/frontend/web/js/action/select-payment-method.js

Open select-payment-method.js and Change file as below,

 vi /var/www/magento/vendor/magento/module-checkout/view/frontend/web/js/action/select-payment-method.js

Original:

define([
    '../model/quote'
], function (quote) {
    'use strict';

    return function (paymentMethod) {
        if (paymentMethod) {
            paymentMethod.__disableTmpl = {
                title: true
            };
        }
        quote.paymentMethod(paymentMethod);
    };
});

New:

define([
    '../model/quote'
], function (quote) {
    'use strict';

    return function (paymentMethod) {
        /*if (paymentMethod) {
            paymentMethod.__disableTmpl = {
                title: true
            };
        }*/
        quote.paymentMethod(paymentMethod);
    };
});
$ sudo php bin/magento setup:upgrade
$ sudo php bin/magento setup:di:compile
$ sudo systemctl restart httpd

Under magento system root folder, run the following magneto commands

Restart the web server as below,

✅
☑️
☑️
☑️
☑️