Questions tagged [jquery]

Denotes questions related to the use of jQuery library in Magento.

Filter by
Sorted by
Tagged with
0
votes
1answer
14 views

Magento 2.3.3 -Load Custom Jquery after the Shipping Form load

I have added jquery on other click events they are working fine but when i am trying load jQuery after the Shipping page load. I want to hide my custom added fields in shipping page but they are not ...
0
votes
1answer
44 views

Magento2 - How to clear data from jQuery modal popup after closing modal?

Here am using jQuery popup in my .phtml file on the first run it sending data properly, on send time it fetching old data as-swell as new data. So how to prevent this condition. Code: <div ...
0
votes
0answers
21 views

Magento2: Override issue for lib/web/jquery.js

I am trying to override below file in my custom theme. lib/web/jquery.js Seems it been override. But It stop other jquery from working. Due to this a lot of console error arise. Here is my code ...
0
votes
1answer
15 views

dial codes with phone number in magento2

How can I put an option to choose country dial codes with the phone number in magneto 2.3.2.
2
votes
1answer
52 views

Magento 2 - Understanding text/x-magento-init

I try to better understand the concept of text/x-magento-init. I understand that it allows us to define script components that do a certain task, which we then can use as often as we like in any ...
1
vote
1answer
21 views

How to Override jquery widget method in Magento 2?

I'm trying to override Magento_Checkout/js/sidebar.js _initContent method. I need to delete two events from it and create my own events instead. Is it possible without copying the full method from the ...
0
votes
2answers
38 views

how to refresh a part of the page when configurable variation is selected in magento 2.3

I want to reload a div section on the product detail page of the configurable product when the configurable variation is selected. How do I achieve that? require(['jquery','jquery/ui'],function($){ ...
0
votes
0answers
22 views

Magento2.3.3 - Autocomplete select function not working

We used the autocomplete(UI) Js to list the products on our site. It works up to version Magento2.2.x, When changing the version to Magento2.3.3 It doesn't function properly, for dynamic input field, ...
0
votes
0answers
47 views

Jquery ui widget implementation instead of just jquery code

I have code that performs the function of interactivity. When you click on the checkbox, the block is cloned and added to another block. Here is an example on codepen: https://codepen.io/annbin/pen/...
0
votes
1answer
14 views

How to show and hide select box field in adminhtml form in backend

By default, Footer group select box should not be displayed. And when clicked on position select box footer it should display Footer group select box $Lastfield = $fieldset->addField( ...
0
votes
1answer
15 views

Jquery To get substring from a long string within two specific sub strings

I have a long string as - " https://example.com/js-form-name-62682.html?ref=https%3A%2F%2Fstaging.example.com%2sample%3Fsku%3D40567&referrer=embeddedtype-and-somemortext " I want to get the value ...
0
votes
0answers
24 views

How to rewrite jquery code in jquery ui widget

How to remake this code in ui jquery widget? There is such jquery code. When you select an item using the checkbox, the item is cloned and added to another block. Tell me how to rewrite it in jquery ...
1
vote
0answers
30 views

Magento 2.3: How to hide only free shipping method if postal code 2nd index is 0

I want to hide only the free shipping method on the checkout page if the postal code 2nd index is 0. I tried this but it's not removing from shipping methods. require(['mage/url', 'jquery','domReady!'...
0
votes
0answers
15 views

Update Magento 2 jquery-ui.js version in Custom Theme

Is there a way to override Magento 2 lib\web\jquery\jquery-ui.js version in my Custom Theme? I want to upgrade it to version 1.12.1.
0
votes
2answers
43 views

Help in remaking the code on the widget

The challenge is that I have checkboxes on the page. This code finds all the checkboxes on the page and if the checkbox is selected, it adds it to a separate block. I want to limit the amount that can ...
0
votes
0answers
27 views

Non - AMD Module - JSPDF - Magento 2

We are trying to implement JSPDF on our product pages. We have created a module to load the JS on these pages but we are coming up short. We are getting constructor errors or not defined errors ...
0
votes
0answers
23 views

JS Problem in magento 2

I have a problem with magento 2 and I can not even mehcer in the administrative area of ​​the site .. so any editing would have to be by ssh or direct file editing PS: I'm very beginner
0
votes
2answers
59 views

How to add Isotope jQuery in Magento 2

I have added and configured the Isotope jQuery in Magento 2.3.3. But, its working and showing error as below: Uncaught TypeError: $(...).isotope is not a function I have tried all the solutions but ...
1
vote
0answers
51 views

How to add selected items on a page to a separate block in Magento 2?

Please help with the implementation of this functionality. I have a separate module with a separate route. There will be elements on the page (picture and checkbox under it) as in the screenshot. ...
0
votes
0answers
19 views

Magento 2 : Load more in my order

I want to make a function load more in my order(may not be used ajax) here is description image How can I do it? Any help? Thank in advance.
0
votes
0answers
30 views

Javascript problem When changing production mode

I have this console error that occurs only when setting to production and nothing works as expected in storefront view. It works fine when the mode is set to the developer and no console errors are ...
0
votes
1answer
34 views

How to update JQuery in magneto 1? [closed]

i am trying to update JQuery on mageneto 1 but i don't know complete steps can someone guide me for that
2
votes
2answers
102 views

Magento 2 would like to override configurable.js method form custom module

Here I would like to override the configurable.js there is a method _fillSelect The below method is working for preselecting the first children. I would like to override from my custom module what ...
0
votes
1answer
48 views

Why is Magento 2 using the old jQuery 1?

I opened the developer console and executed jQuery.fn.jquery and I get 1.12.4. Why does Magento 2 uses that old version, even though the latest version is 3.4.1?
1
vote
0answers
26 views

https://www.stormboy.com.au JQuery Conflict [closed]

https://www.stormboy.com.au/ Check Website Console There is Jquery Conflict Error. Can anyone help me to solve the same
0
votes
1answer
27 views

Execute code after “text/x-magento-init” code finished loading

I need to call a piece of code right after my fotorama gallery loaded. The gallery is called like this in vendor\magento\module-catalog\view\frontend\templates\product\view\gallery.phtml: <div ...
1
vote
1answer
28 views

Data-Toggle CMS Page Magento 2

Okay, so I just want a CMS page that has toggled content, but there seems to be some conflict. How would I resolve this code to work for Magento 2 CMS? <div class="container"> <h2>...
0
votes
0answers
24 views

Magento2.3: How to make a sticky header?

I have tried to make a sticky header but no success. I have followed many posts regarding this but none of them is working for my case. I have followed below link. Fixed Headers in Magento Any help ...
0
votes
1answer
44 views

Restrict double click on delete in minicart in magento 2

In minicart of magento 2, when click on delete icon, confirm popup is open. after confirm, it take sometime time to delete. till the time we are able to click multiple time. and popup will come ...
0
votes
2answers
97 views

jquery ajax sort response

I am showing ajax response in select options as below code. I want to sort the select options in alphabetical order of values. Please provide a solution to sort below data on values basis. My data ...
1
vote
0answers
33 views

How to hijack a button's click event with my own ajax get function? Magento 2

I am tying to add a new button to an existing admin page. I want to call an ajax get() function on this button click. I created a main.js script file which I see is loading on this page since when I ...
0
votes
0answers
22 views

Magento 2 show availability date and time

I am trying to create a page with a calendar and show time where customers can pick. https://github.com/Roomify/bat I was looking here but wasn’t sure how to implement it. Is there any other way or ...
0
votes
1answer
39 views

I can't add success message on the popup frontend

I am trying to use: Magento_Ui/js/model/messageList messageList.addSuccessMessage({ message: 'You have subscribed Successfully' }); But its not working . I tried adding success message in the ...
0
votes
1answer
279 views

Uncaught TypeError: Cannot read property 'innerHTML' of null

We have tried to do a checkout on our website but its not working. When looking into the console, it says the below error Uncaught TypeError: Cannot read property 'innerHTML' of null and its ...
0
votes
1answer
25 views

my js has some problems, it is jumping from $.widget to return $.devall.popupmanager and fail function is getting called at the end

define([ 'jquery', 'Magento_Ui/js/modal/modal', 'mage/cookies' ], function ($, modal) { 'use strict'; if(!$.cookie('popup_cookie') ) { $.widget('devall.popupManager', { ...
0
votes
1answer
38 views

Magento2.3: Javascript is not loading in server but working in localhost

I'm facing a strange issue. I have main.js file in my theme (that is extended luma theme), there I have included javascript and jquery of megamenu, add to compare, etc. Now, the issue I'm facing is ...
0
votes
1answer
140 views

upgrade javascript library versions in Magento 2

Recently we have made pen-test on Magento 2.3.3 version. We have received the following issues. Vulnerable Javascript Library Versions In Use adminhtml/Magento/backend/en_US/jquery/jquery-ui-1.9....
0
votes
1answer
29 views

How to use jQuery in a template?

I tried to use jQuery in a template (app\code\Black\Newsletter2Go\view\frontend\templates\account\dashboard\info.phtml) but I get jQuery is not defined. Does Magento 2 not use jQuery? Do I have to ...
0
votes
0answers
114 views

Magento 2 rewrite widget function with mixin return an error

I have to add few lines on js functions but mixin not working. app/design/frontend/Konect/base/Magento_ProductVideo/requirejs-config.js var config = { config: { mixins: { '...
0
votes
2answers
62 views

Add Custom Validation Rule in existing street field of shipping address form Checkout Magento 2?

Basically I am trying to add custom validation rule in existing street field of shipping address form Checkout in magento 2 where pobox should not be allowed. I tried using mixin with requirejs-config....
9
votes
1answer
3k views

Magento 2 console notice - Fallback to JQueryUI Compat activated

Using Magento 2.3.3 seeing the below notice in our browser console. Fallback to JQueryUI Compat activated. Your store is missing a dependency for a jQueryUI widget. Identifying and ...
0
votes
1answer
23 views

jQuery won't appear Magento 1.9

I sit with a simple issue, but I can't seem to find any simple solutions. I made a file in /skin/frontend/ultimo/default/js called custom.js, included this in the header, all is fine. I then paste in ...
0
votes
1answer
60 views

Magento 2 - How I can made Tabs to be sticky

I have add tabs in the product view page: <referenceBlock name="product.info.details"> <block class="Magento\Catalog\Block\Product\View\Description" name="product.info.description" ...
1
vote
0answers
109 views

Slick Slide After Scroll Slide is Working Magento2

I have used Slick Slider for Product Comparison in Magento 2.3. The issue here is when I scroll alone the slick slider gets activated. But I need to load slider before. Its Like I Am new to ...
2
votes
1answer
324 views

Slick slider is not working properly in Magento2.3

I would like to use slick slider concept for compare products so I have implemented it on my Magento site. But It's not working as expected though the script has been loaded. I'm not sure where am I ...
-1
votes
2answers
123 views

Slick slider is not working in Magento 2

We have integrated the slick slider on Magento 2. But, the slider is not working. I have checked the console and see there is no error. I'm not sure where am i wrong. Code in Template file: <...
0
votes
2answers
54 views

BX-Slider is not working

I have implemented the BX slider to one of my module. After implementing the BX slider, I can see the script and CSS for BX-slider have loaded when i look into the developer tools. However, the Bx ...
1
vote
0answers
37 views

How to use jquery function date time picker in magento 1.9

<script> jQuery(function() { jQuery(document).ready(function() { jQuery(".date").datepicker(); jQuery(".date").datepicker({ onSelect: ...
0
votes
0answers
44 views

How Can I add Any jQuery Plugin in Magento 2.3.0

I am trying to add owl Carousel js file in app/design/frontend/My/theme/web/js/carousel.min.js but I am unable to add it to my site header.
0
votes
0answers
39 views

Create account error on One Page Checkout magento 2.3.3

When we a checkbox to "Create account" on the onestepcheckout page we add the password. As soon as we click on "Place Order" nothing happens. I get the following error in the Chrome Inspector Console. ...

1 2 3 4 5 14