Unanswered Questions
815 questions with no upvoted or accepted answers
11
votes
3
answers
5k
views
Magento 2 : Validate form fields that are loaded with Knockout on blur-event
I have a form that is generated through a .phtml file, and in this form various fields are loaded with KnockOut (using the uiComponent javascript-object).
.phtml:
<form action="#" class="form ...
8
votes
3
answers
2k
views
SSL Installed Checkout and Account Area Still Using HTTP and not HTTPS
I am running magento 2 ver 2.0.7 I have an HTTPS issue. I'm not quite sure why this is happening but in Stores -> Config -> Web. I have my secure base url set to https://mystore.com/ but when I ...
6
votes
1
answer
1k
views
Is it possible to drastically reduce the number of JS files being served from Magento without merging/bundling?
Currently my almost-new Magento 2.3.1-based website with a lightly modified theme is sending 170 JavaScript files to the browser, just to serve the home page. To me, this is not remotely acceptable.
...
6
votes
1
answer
3k
views
Magento 2.2.1 Checkout page broken and Js fail to load error
I have installed Magento 2.2.1 and set up my custom theme but checkout page looks broken and consoles showing errors:
Not sure how to resolve this issue. Need help how can this be resolved.
How ...
6
votes
1
answer
514
views
Overriding Magento 2 core js function
I need to override the 'loadArea' and 'loadAreaResponseHandler' magento core js functions in the file module-sales/view/adminhtml/web/order/create/scripts.js.
I tried to use mixin property. Following ...
6
votes
1
answer
742
views
Magento 2: What is the proper format for a javascript widget's _bind() method?
Using 2.1.3, I've been trying to bind page elements to internal javascript widget methods, and have been unsuccessful - the docs (http://devdocs.magento.com/guides/v2.0/coding-standards/code-standard-...
6
votes
1
answer
594
views
Magento 2.4 deploy command does not creating minify file when I am in production mode
Magento 2.4.0: The static content deployment command does not create minify file when I am in production mode.
Getting error on below file. It's not creating so Magento cannot read it.
pub/static/...
5
votes
0
answers
2k
views
Magento2: Local-Storage Mage-Storage and Mage-Cache Empty on every Reload
Many features in my web page break as when I investigated, I found out that
many local storage keys don't even exist now which used to exist before.
list of keys that don't exist:
lo_session
mage-...
5
votes
0
answers
342
views
Magento2.3: Display Custom text on Shipping Address
I would like to add custom text whenever shipping country is Sweden, Ive created Magento_Checkout module in my custom theme and added a phtml file
<div class="free-shipping-info" data-bind="...
5
votes
0
answers
546
views
Magento2 : How to create a basic progress bar with ajax, when I click on add to cart button?
I try to make a basic progress bar with ajax , when I click button add to cart, but I don't know how catch the xhr on console,to put on alert() or prepend()function
I follow a video example in ...
5
votes
1
answer
4k
views
how to extend default javascript
I try to extend standard magento javascript configuration but I just get nothing.
I'm following this:
http://devdocs.magento.com/guides/v2.1/javascript-dev-guide/javascript/custom_js.html
and this:
...
5
votes
0
answers
337
views
Magento : WYSIWYG in custom widget
I have tried adding a WYSIWYG editor to custom widget I have created using the approach outlined at: http://behrendtio.github.io/2013/04/12/using-a-wysiwyg-editor-in-a-magento-widget/
However, when I ...
4
votes
0
answers
182
views
How to use Youtube Player API with jQuery in in Magento 2?
I'm using Magento 2.4 and i'm trying to use Youtube player API with jQuery in Magento 2 .phtml file like this first:
<script>
require(['jquery'], function($){
var tag = document....
4
votes
1
answer
2k
views
Magento 2 Uncaught TypeError Cannot read property 'done' of undefined
Uncaught TypeError: Cannot read property 'done' of undefined
at UiClass.continueToPayPal (paypal-express-abstract.js:80)
at HTMLButtonElement.<anonymous> (knockout.js:4245)
at ...
4
votes
1
answer
679
views
Custom JS is not include undefined error magento 2
requirejs-config.js file path isCodility/Customers/view/frontend/requirejs-config.js` and code is
var config = {
paths: {
'customhighcharts': 'Codility_Dashboard/js/customhighcharts'
},
...