Questions tagged [jquery]
Denotes questions related to the use of jQuery library in Magento.
802 questions
0
votes
0
answers
46
views
getting different response for javascript and jQuery ajax
i have written one aja in jQuery , which is folowing
settings = $.extend({
method: 'GET',
url: decodedUrl,
dataType: 'json',
...
0
votes
1
answer
59
views
Magento Date Range Picker on CMS page
I'm facing a problem when try to set the min and max date
and this is my js
how can i set my min and max date on this date range , i want to calendar only can select 28-10-2025 till 31-10-2025
0
votes
2
answers
219
views
Owl carousel show double image in responsive settings items:1 in mobile
Owl carousel show double image in responsive settings items:1 in mobile
<div class="owl-carousel owl-theme pt-16 xxl:pt-20 h-full" id="carousel8">
<div class="...
0
votes
1
answer
132
views
Magento 2.4.6 Preselect Magento 2 Product Custom Options based on URL Parameters
I have a product with custom options like Color and Size.
When users visit a product page with a URL like https://example.com/product.html?color=Red&size=Small, I want the Color option to be ...
0
votes
1
answer
45
views
Magento 2 How to create order on user demand
Hi I have one requirement where user visit on the website and upload their product image(Like some tool image, Some kind of machinery part etc.) and select some attribute like size,colour,material etc ...
0
votes
3
answers
145
views
How to hide admin product form tabs for specific admin user?
I want to have an admin user who would only be able to view the 'Images And Videos' and 'Search Engine Optimiation' in the admin product edit form.
I tried the following.
Created app/code/Vendor/...
1
vote
1
answer
196
views
How to retain line breaks when reading text from within <td></td>
With the jQuery below, I'm able to copy the content into clipboard but not to retain the line breaks.
HTML:
<td width="700" id="message_id2">
We are sorry you are ...
1
vote
0
answers
67
views
Add Custom Field to Braintree Credit Card Payment Method in Magento 2.4
I want to add the custom field i.e. po_number in the braintree credit card method in the payment page. Here is the code which I have added for field.
<?xml version="1.0"?>
<page ...
0
votes
1
answer
214
views
Magento 2.4.4: Attach event handler to Province dropdown to reload the checkout page
We developed a custom shipping module that displays shipping methods and the rates in Firecheckout page. The issue is the Shipping Method block in the firecheckout page doesn't refresh if one changes ...
0
votes
1
answer
1k
views
How to add Custom JS in admin side?
I want to add custom JS on product edit page in admin side. After doing some R&D, i found a solution but that didn't work. What I have done so far,
app/code/Vendor/Module/view/adminhtml/layout/...
1
vote
1
answer
459
views
Add Success Message in Custom Popup for Add to Compare in the listing or Category Page in Magento 2
I want to add custom pop-up in category page for showing success or error message for add to compare button.
Any help is appreciated.
Thanks in Advance !!!
0
votes
1
answer
1k
views
Magento 2 : can I upgrade jQuery versions?
I opened the developer console and executed jQuery.fn.jquery and I get 1.12.4.
Why does Magento 2 uses the old version even though the latest version is 3.6.0?
I am running a pagespeed report on ...
0
votes
1
answer
170
views
how to pass javascript variable to php in template
I am creating admin form using template I have multiple select dropdown. I want to filter dropdown based on the value of other but problem is how i can assign the javascript value to php variable so ...
1
vote
1
answer
1k
views
Magento2.4.5 google brower console display jquery-migrate.js:100 JQMIGRATE: jQuery.fn.bind() is deprecated
Magento CE 2.4.5 I install some theme after google brower console display follow info ,how to fix?
JQMIGRATE: jQuery.fn.click() event shorthand is deprecated
JQMIGRATE: jQuery.fn.resize() event ...
7
votes
2
answers
11k
views
Uncaught Error: Mismatched anonymous define() module
I'm trying to use jquery in an adminhtml js file...but it seems not to be working and can't get to understand why...any help would be appreciated !
Layout is like
<head>
<script src="...
1
vote
0
answers
333
views
How we get an element from second tab of ui component on edit magento 2.4
I have an Admin UI form with two tabs. There is a dropdown field on first tab .Based on this dropdown value I want to show or hide an another field which appeared on the second tab. But we could not ...
0
votes
1
answer
270
views
i want to get data from attribute data-post
<a href="#" class="action towishlist btn-round pink" title="Add to Wish List" aria-label="Add to Wish List" data-post="{"action":&...
-1
votes
1
answer
2k
views
How to Create a Dynamic Owl Carousel
Using code below you can create a fully responsive dynamic owl carousel.
The same way you can implement this carousel in magento2 as well.
0
votes
1
answer
159
views
Custom js Script not working . when magento upgraded 2.3.3 into 2.4
category-map.js
define(
[
'underscore',
'jquery',
'mage/template',
"prototype",
"mage/adminhtml/form"
], function (_,JQuery) {
// <![CDATA[...
0
votes
0
answers
124
views
Jquery code doesn't work when deployed but runs fine in the browser console in Magento cart page
We're trying to just display the text in the code below if the page is the cart page so that visitors are aware that they can add a gift message to their order. Code works fine by displaying the text ...
-2
votes
1
answer
490
views
How to solve this error ? menuAim is not a function
Error:
at HTMLDocument.<anonymous> (mega-menu.js:41:28)
at fire (jquery.js:3238:32)
at Object.fireWith [as resolveWith] (jquery.js:3368:8)
at Function.ready (jquery.js:3588:14)
...
0
votes
1
answer
70
views
Owl Carsouel in Magento2
I am creating owl carsouel for compare products
<div class="main-padding">
<div class="message-container"> </div>
<div class="compare-inner-block "&...
0
votes
0
answers
52
views
How to show thanku popup only, if user alredy submitted the form in magento 2 untill user leaves page
I have custom popup form, when the user click on 'get in touch' button i am showing popup to fill the form, once user submitted the form i am showing thanku popup.So if the user again click on 'get in ...
0
votes
0
answers
1k
views
How to show success message in popup modal after submitting the form in magento 2
here i did this to show popup modal
<div id="popup-modal" style="display:none;">
<form class="form contact"
action="<?= $block->getUrl(...
0
votes
0
answers
769
views
Get Mini Cart Update Cart Button Event
I want to obtain the event during which this Mini cart update cart button is clicked
I want to observe when and how many the amount of it being clicked
I try to put below code inside app/design/...