Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [jquery]

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

1
vote
1answer
19 views

Magento 1.9 - Add custom zipcode validation on Home page

Validate a zip code field on a home page popup in Magento 1.9 style might be using jquery button click.
4
votes
0answers
57 views

Megamenu issue - Clicking menu opens category page for that menu in mobile in Magento2

I need to resolve issue of responsive megamenu for mobile. The issue is when I click on the subcategory to opens its child sub-categories the link gets clicked and gets redirected because of which ...
1
vote
0answers
18 views

Uncaught TypeError: $.initNamespaceStorage is not a function magento2

Some functionality is not working properly and it shows some errors in console Any help will be appreciated.
0
votes
1answer
23 views

Magento 2 : Access the DOM from custom module?

I want to have some jQuery within my custom module to detect whenever a navbar item is clicked on the website. Is there any way of detecting jQuery events? Any help appreciated.
0
votes
2answers
33 views

ReferenceError: jQuery is not defined Magento 2

I created a countdown using JS. For that i need jQuery so I created requireJs file. var config = { paths: { 'countDown': "ABC_CoundDown/js/countDown" }, shim: { 'countDown': { deps: ['...
0
votes
1answer
39 views

Magento 2 read more and read less in description product page

I want to add a read more and read less button in the description on the product page. I do not want to cut the entire text and onclick of the read more show another div with the entire content. I ...
0
votes
2answers
27 views

Magento 1.9 - How to get price format in javascript or jquery?

I am trying to get magento price format in php file using jquery / javascript function but facing problem. What I have tried .... <script> var price = 10; var priceFormat = '<?php echo Mage:...
0
votes
1answer
22 views

js merge carousels sliders are breaking when js merge

After js merge carousels sliders are breaking in the site, followed no-conflict and other solutions, also in the console this is showing Uncaught TypeError: jQueryowlCarousel is not a function ...
0
votes
1answer
31 views

Controller redirect on jquery post request from phtml template

I want to redirect user on button click from .phtml template file, however, really struggle to find a working solution. Here is my controller with path of /batchorder/index/addtocart: public ...
1
vote
0answers
34 views

I am getting jquery error while adding custom field in payment method in magento 2?

I am trying to add custom fields in magento 2 but it is not working. I am getting JQMIGRATE: jQuery.browser is deprecated jquery-migrate.js:41:4 console.trace() jquery-migrate.js:43:5 ...
0
votes
1answer
44 views

Can not Place Order, Is it Migrate JS Error at Magento 2.2.7 Error?

I have installed Magento ver. 2.2.7 for A MarketPlace Site also Purchased MarketPlace Extension and Installed it Successfully. Before Order Place was working, But Now click on Order Place Button, The ...
0
votes
3answers
61 views

Magento 2 How can I hide the price and total from cart and checkout summary?

I want to hide price and totals from cart/checkout Summary. You can see in below image. How can I achieve this functionality with a custom module? Is there any common file from I can hide the price? ...
0
votes
1answer
39 views

Use of non-amd jquery plugins with requirejs without modifying them?

I recently searched a lot on use of non-amd jquery code with requirejs but couldn't find a proper way to do it. To be more specific, I want to use pana-accordion.js found at below mentioned url. ...
0
votes
0answers
11 views

Project results change event in JS

In Javascript or Jquery is there an event that can be watched to see if the product results set has been changed or filtered because sometimes the window does not reload and my plugin login does not ...
0
votes
1answer
47 views

jquery plugin error “Uncaught TypeError: $(…).[plugin function] is not a function”

I am using Magento 2.2.6 and I am trying to include a jquery plugin (stickybits, in this case). The jquery plugin file is successfully called in my requirejs-config.js file and I can see that the file ...
0
votes
0answers
7 views

Integrating Magicsearch(autosearch) plugin into Magento 2 but getting Magicsearch JS error in console

I'm integrating "jQuery Magicsearch" plugin into Magento 2,you can get Magicsearch plugin from here:- https://www.jqueryscript.net/form/Dynamic-Autocomplete-Multi-select-Plugin-With-jQuery-...
1
vote
1answer
141 views

Fresh Magento 2.3 Resource Files Not Working After Installed in Windows

Fresh Magento 2.3 installed in windows, after resource check and completed everything successfully installed, then if i open my website i am getting error like,
0
votes
0answers
19 views

How can I increase the speed of my Magento website?

I have a system in magento ready and running, but the speed of the web is not very good. Here you can see a sample of how the web works: https://developers.google.com/speed/pagespeed/insights/?url=...
0
votes
0answers
37 views

Issue when Full page cache enable in magento2

I have found issue related to full page cache enable. I am not able to remove the label on document ready in magento2 <script type="text/javascript"> require(['jquery'], function ($) {...
1
vote
1answer
215 views

JQuery how to remove tr in table which are display none in CSS [closed]

how to remove tr in a table which is display:none in CSS
0
votes
1answer
87 views

Magento 2 : frontend calendar localization

I'm becoming crazy with the frontend translation of the mage/calendar widget in m2. Does somebody know how to localize it? I have a calendar that's showing up on the front (from a bought module that ...
1
vote
0answers
27 views

New security threat to Magento caused by it using jQuery-File-Upload?

Magento 2 uses the Blueimp jQuery File Upload Plugin v5.16.4 which has recently been identified at posing a security risk to web applications which use it. Is this an issue for Magento and should ...
0
votes
1answer
20 views

The number of “Requests” is very large

I tested my website performance with Gtmetrix. I found that my website performance seems to be good, but the number of “Requests” is very large. I want to know if the impact of this problem is big? If ...
0
votes
1answer
25 views

How to add custom js file for PDP page in magento 2

I wish to include custom js file in PDP page in magento 2. I wish to do some action while product has some options. Please provide me a solution to add custom js in PDP page
0
votes
2answers
26 views

How to add class if a product have Customizable Options in Product Details Page in magento 2

I have two types of products in my site Type 1 :products with Customizable Options Type 2 :products without Customizable Options I wish to add one custom class(for css purpose) to the products which ...
1
vote
1answer
69 views

Magento 2: AJAX POST to AdminHTML

I have an AJAX POST setup within my template file currently that has 3 values, which I want to POST to my Index.php within my Block. However, my module is an AdminHTML module and this cannot be ...
0
votes
0answers
21 views

Magento 2: I found my site's checkout page loading become more slowly?

Previously my Magento 2.2.1 website used nexcess service ($19.95/1 month), when my website's /checkout page loaded quickly. I recently switched to the A2 host server ($32.99/1 month), but I found ...
0
votes
0answers
39 views

Magento 2| How to add “Add to cart” Button functionality in jQuery?

I am adding "Add to cart" button functionality in jQuery function for calculated product quantity. I have add simple button yet. I have doing it as: My function is: $(document).ready(function(){ ...
0
votes
0answers
10 views

Magento 2 opens the product page sometimes reminds error?

Magento 2 opens the product page and sometimes prompts [Identifier "" not exist.] This error sometimes does not prompt. Is this what is the reason?
0
votes
1answer
34 views

SetTimeOut not working

I need to remove message after 2 sec but its not working $.ajax({ 'method': 'post', 'url': $form.attr('action'), 'dataType': '...
0
votes
2answers
35 views

Insert before in jquery [closed]

I have create a ajax call for form submit. But it returns error .......h.insertBefore is not a function define( [ 'jquery', 'uiComponent', 'mage/validation'], ...
0
votes
2answers
41 views

Jquery function call issue Magento 2

I am attempting to create a basic text slider, which works perfectly well on a plain html page. However, when I move it to my Magento 2 site, I get an undefined error for this piece of javascript. ...
4
votes
2answers
222 views

Magento 2 : How to call text/x-magento-init on Ajax success

I am in need to trigger some script with "text/x-magento-init" on ajax call but I am unable to do so. trigger('contentUpdated') contentUpdated is also not working in my case. I am using ...
1
vote
1answer
266 views

Magento 2 How to set value to UI component hidden field using Jquery or Javascript

I want to fill value in to ui component hidden field using Jquery or Javascript. Below is my code. Namespace/Modulename/view/adminhtml/ui_component/sampleimageuploader_image_form.xml <field ...
0
votes
2answers
83 views

How to use third party jquery libraries in magento along with requirejs?

I am bit new to requirejs and currently learning AMD pattern in requirejs.I want to use custom third-party jquery libraries in magento. I have two questions: How to use jquery scripts that are ...
1
vote
1answer
30 views

Magento 1.9.3 International Phone prefixes

Hello I would like to get help on adding the country code as prefix (+44, +234, +233 etc) in magento. I am currently using 1.9.3.2 version.Thanks
0
votes
1answer
36 views

How get Parent child div valule

want to get <span class="price">Rs.5,190.00</span> using jquery, below is html <div id="checkout-review" class="onepagecheckout_block"> <div class="op_block_title"><i ...
0
votes
0answers
100 views

How to get active slide id in jQuery

How to get active slide id in jQuery. <?php /** * Copyright 2016 aheadWorks. All rights reserved. * See LICENSE.txt for license details. */ // @codingStandardsIgnoreFile /** @var $block \...
0
votes
1answer
130 views

Change Product Page Fotorama On Element Click

I'm trying to change to a specific image in the product gallery when the user clicks a button to customize their item. So far I have the following code: require( ['jquery', 'jquery/ui', 'mage/...
0
votes
2answers
34 views

Inline call of jQuery tabs doesn't work

Here's my problem. I have a tabs block which load perfectly when I put this script in phtml require([ 'jquery', 'jquery/ui' ], function($) { $("...
2
votes
1answer
115 views

Magento 2.2.6: Product collection does not apply the filter

EDIT: I have seen that in magento 2 the ListProduct page is cached, for this reason once loaded it does not enter. Is there any way to modify the query returned by ListProduct? I extend the class: ...
0
votes
0answers
32 views

Magento 2 How to set dropdown attribute value on product page using JS Frontend

Please see the attached screenshot: Here, How can I set the value of SIZE while loading page? Do we have to initialize any configurable swatches option JS? Please suggest & guide me if you face ...
0
votes
1answer
32 views

How can scroll screen to clicked div in mobile view

Open link in mobile or in >600px device : http://dev.mpex.com/ee14/team-2018 Click on any team image. after open description cursor goes to top. we need to keep on clicked image. when I click to this ...
0
votes
1answer
175 views

Magento 2 How to add custom validation rules and apply them?

I'm trying to modify some validation rules for the State input in shipping address. I want to add an error message if user selects 'Texas'. I created a mixin for Magento_Ui/js/lib/validation/rules in ...
0
votes
2answers
108 views

jQuery multiple input types in one form

I got multiple input types in my form based on positions. <input type="file" name="file" id="file" data-positionid="<?php echo $positionId; ?>" class="inputfile" /> Now i want on change ...
2
votes
1answer
127 views

Magento 2 TypeError Undefined products images not displaying / js not loading

At home page, product category view and product detailed view page images are not loading / displaying at firefox and less frequently at chrome. I am using magento 2.2.6 upgraded from 2.2.2 and porto ...
1
vote
0answers
26 views

Toggle switch to change between Incl. and Exc. TAX with ajax continious loading

I've coded up a quick toggle switch which will change the price display between Including and Excluding tax using "display: none" with jQuery hide and show but i'm having problems with an Ajax ...
0
votes
1answer
26 views

using javascript in .html form Magento2

i have a custom form.html that displays at checkout. i want to have a javascript tag - when the form load just show an alert testing purposes. code i used below, "<script type="text/javascript"&...
0
votes
1answer
42 views

call custom phtml with Ajax or Knockout in magento admin order detail page

anyone know how we can call custom phtml in order detail page admin side.
4
votes
0answers
87 views

Knockout.js in magento2

How to change the jquery into ko? define([ 'jquery' ], function ($) { "use strict"; $.widget('xxx.homePage', { options: { bindSubmit: true, ...