Timeline for Magento 2 - mage/url is not working in module. Uncaught ReferenceError: url is not defined
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 14, 2019 at 6:20 | comment | added | Garry | updated please check | |
Nov 14, 2019 at 6:09 | comment | added | Rakesh Varma | update question with your code | |
Nov 14, 2019 at 6:08 | comment | added | Garry | I got a button on placeOrder on checkout page. | |
Nov 14, 2019 at 6:04 | comment | added | Rakesh Varma | update your question with html code. where you trigger click event | |
Nov 14, 2019 at 5:53 | comment | added | Garry |
And when i trigger click on transfer. It says Uncaught ReferenceError: transfer is not defined
|
|
Nov 14, 2019 at 5:52 | comment | added | Garry |
This is my file at vendor/magento/module-offline-payments/view/frontend/web/js/view/payment/method-renderer/checkmo-method.js ` define( [ 'Magento_Checkout/js/view/payment/default', 'jquery', 'mage/url' ], function (Component) { 'use strict'; return Component.extend({ defaults: { template: 'Iostpay_Iostpaymagento/payment/iostpay' }, transfer: function() { console.log(url.build); }, }); } );
|
|
Nov 14, 2019 at 5:24 | history | answered | Rakesh Varma | CC BY-SA 4.0 |