Skip to content

Commit

Permalink
https://github.com/tradefurniturecompany/site/issues/259
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jul 3, 2023
1 parent b8f615d commit 2075923
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@
# «Cannot read properties of undefined (reading 'forEach') at Object.isValidStreet»:
# https://github.com/tradefurniturecompany/site/issues/239
!/vendor/realexpayments/hpp/view/frontend/web/js/model/validation.js
# 2023-07-03 Dmitrii Fediuk https://www.upwork.com/fl/mage2pro
# 1) A temporary quick and dirty workaround for the problem:
# «Property "DisableTmpl" does not have accessor method "getDisableTmpl" in class "Magento\Quote\Api\Data\PaymentInterface"»:
# https://github.com/tradefurniturecompany/site/issues/259
# 2) https://github.com/PayboxByVerifone/Magento-2.3.x/issues/4#issuecomment-598288973
!/vendor/magento/module-checkout/view/frontend/web/js/action/select-payment-method.js
app/code/Amasty
/dev
/vendor/codeception
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'Magento_Checkout/js/model/quote'
], function (quote) {
'use strict';

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

0 comments on commit 2075923

Please sign in to comment.