Questions tagged [jquery]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
11 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
20 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
35 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
29 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
27 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
21 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
33 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
52 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
23 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
22 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
43 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
36 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
32 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....
6
votes
1answer
846 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
20 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
42 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
55 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
81 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 ...
0
votes
2answers
79 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
40 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
29 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
42 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
32 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. ...
0
votes
0answers
33 views

How to speed up the magento 2.2.5 website in production mode

How to speed up the Magento 2.2.5 website in production mode I have tried all default options but still its very slow website url : [https://www.thedottedi.in/] please help me out on this Thanks ...
0
votes
2answers
310 views

I am getting Uncaught ReferenceError: require is not defined

please anyone can help me here, I am getting the require undefined in js, below is my code. Thank you <script> require([ "jquery", "mage/...
1
vote
0answers
56 views

Magento 2: Autoplay product video when video icon on left panel is clicked?

I want to autoplay video when video icon on the left panel is click. Once the video icon is click the video on the container will automatically play. Here is the current classes on the video icon: ...
0
votes
0answers
20 views

How to resolve require is undefined issue (caught ReferenceError: require is not defined)

I am getting an issue on a single page (caught ReferenceError: require is not defined) on the below code. Please help me to resolve this issue. I am not sure where I am getting this issue I inspected ...
0
votes
1answer
33 views

Magento 1 - Jquery datepicker error with merged JS

In magento 1 when merged javascript files is set to "yes" I encountered this error : When merged javascript files is set to "No" there was no problem with jquery datepicker. Do you have any idea ...
0
votes
2answers
26 views

Magento2: How to include js library + assets into static cms page via template?

i have a static page which was created via cms -> page. I include a custom phtml template within the cms page {{block class="Magento\Framework\View\Element\Template" name="test_file" template="...
1
vote
1answer
86 views

Custom Javascript is not working in my core HTML file. Magento2

I'm trying to add some Javascript and Jquery in the core theme file which is located in magento\pub\static\frontend\magento\luma\en_US\Magento_Checkout\template\payment+methods\list.html <!-- /** ...
0
votes
0answers
8 views

How to style given HTML with css to style like the screenshot attached below?

<div data-role="content" class="filter-options-content Size opt_id_3" role="tabpanel" aria-hidden="false" style="display: block;"> <ol class="items"> <li class="item"> ...
0
votes
0answers
22 views

Magento default tab panel is not working on PDP (Product Description Page) in Magento Enterprise Version

I want magento default tab panel in PDP page. Please refer my tab panel Screens Link: https://i.imgur.com/XxnH0Gp.png I want that tab panel as per Magento Standards. I am using Magento Enterprise ...
0
votes
0answers
76 views

Error while using croppie.js library in magento 2

Trying to use the croppie library on product detail page and sometime it works perfectly but most of the time it throws one of these errors. TypeError: priceBoxes.priceBox is not a function ...
0
votes
1answer
132 views

Magento 2 - Using jQuery on HTML page

I have a custom offline payment module and I am trying to use jQuery to hide a div in frontend/web/template/payment.html: <script> require([ 'jquery' ], function($){ if ( $('#payroll-form'...
3
votes
1answer
155 views

Magento 2 : Service worker not loading in PWA

I have added the below script to my header to load service worker on load .When I load my website and check applications tab from inspect on browesr it shows nothing . <?php $ajaxUrl = $block-...
0
votes
2answers
25 views

Magento 2 .focus() not working in template

I have this template: CODE PHTML: <div> Content // this line is OK </div> <script type="text/javascript"> require(['jquery'],function($){ $(window).load(function()...
0
votes
1answer
58 views

I am getting Cannot read property 'sectionLoadUrl' of undefined in particular form in magento 2.3.0

This getting this error on a particular form in Magento 2.3.0. I think this error causes invalid form key sometimes when submitting the form. How to solve this following error. Uncaught TypeError: ...
0
votes
1answer
158 views

Checkout error on magento 2.3.2 after upgrade

i had upgraded magento version to 2.3.2 and on checkout page i am getting following error payment.js:50 Uncaught ReferenceError: getPaymentInformation is not defined at UiClass.navigate (payment....
0
votes
1answer
20 views

How to add classes input focused on checkout and product review forms?

If an input is in focus or has a value, I want to add a class to all inputs parent .field div. For example on the product page review form or on the checkout page shipping form. If the input is in ...
1
vote
0answers
24 views

How do I get text value for span that is populated with KO?

inside a js file I need to get the value for $('.modal-custom.opc-sidebar.opc-summary-wrapper.custom-slide span.cart-price span.price').text() The probles is that span.cart-price span.price is ...
3
votes
1answer
47 views

Magento 2: Ajax without effect

My problem is as follow, my script except ajax in working (no problem with giving value or console.log) but my ajax doesn't give me the result expected (remove hidden class and fill a drop list with ...
0
votes
0answers
15 views

Weltpixe Jsbundling Extecnesion Magento2

i added js Bundling Weltpixel Extension after configure the extension i am getting error Uncaught TypeError: $(...).unveil is no a function jquery.unveil.js showing in network but getting this error ...
1
vote
0answers
85 views

Magento 2 : unveil is not function

I am getting below error: Uncaught TypeError: $(...).unveil is not a function stuck in this. <script type="text/javascript"> require([ 'jquery', 'jquerypopper', '...
0
votes
1answer
58 views

Cannot validate email - MAGENTO api - how

I've been trying without success to validate the email from my website against the MAGENTO customers API and throw a message (exist or not exist) I mean, i have a website where customers are created; ...
0
votes
1answer
23 views

Toggle show more btn is automatically close itself in magento 2 layered navigation

I tried this jqery code and try to put "li" instead of "a"...but sometimes button works with this error in console"Uncaught error jquery is not defined" but most of the times it's not working with no ...
0
votes
2answers
357 views

Bug Uncaught TypeError: Cannot read property 'lang' of undefined on product page

I'm using Magento 2.3.2. But I found I have this bug Uncaught TypeError: Cannot read property 'lang' of undefined on the product page. Do you have any idea why?
1
vote
1answer
45 views

How to use Javascript in Magento 2.3 [duplicate]

I want to use JavaScript in my own custom Magento Module. Unfortunately I do not have any clue how I can access it. Another important thing to note is that I need to have access to JQuery.
0
votes
1answer
29 views

How to upgrade a jQuery library version?

The version of jQuery in lib is 1.14.0. I want to upgrade to 3.0.0.Tried making changes in theme require.js and keeping the new version file in web/js folder of theme, but, it's affecting other js ...
0
votes
3answers
31 views

Know if user are logged in with Jquery

I'm doing a custom JS code but i wanna know if user are logged in with Jquery.