Magento Issue Fix

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

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);
    };
});

☑️ Under magento system root folder, run the following magneto commands

$ sudo php bin/magento setup:upgrade
$ sudo php bin/magento setup:di:compile

☑️ Restart the web server as below,

$ sudo systemctl restart httpd

Last updated

Was this helpful?