> For the complete documentation index, see [llms.txt](https://docs.ottpay.com/payment-plugins/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ottpay.com/payment-plugins/magento-plugin/magento-issue-fix.md). Agents can also search and read this documentation through its [MCP server](https://docs.ottpay.com/payment-plugins/~gitbook/mcp).

# Magento Issue Fix

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

## :white\_check\_mark: Modification of  **select-payment-method.js**

:ballot\_box\_with\_check: **Go to Magento path, find the file:**

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

:ballot\_box\_with\_check: 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);
    };
});
```

:ballot\_box\_with\_check: **Under magento system root folder, run the following magneto commands**

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

:ballot\_box\_with\_check: **Restart the web server as below,**

```
$ sudo systemctl restart httpd
```
