All Questions
Tagged with magento2 javascript
210
questions
0
votes
0
answers
62
views
Magento 2.4.5-p8 with CSP on scripts inserted by Google Tag Manager
We're updating our Magento from 2.4.5-p7 to 2.4.5-p8.
As you know, in Magento 2.4.5-p8 the CSP on the checkout page is now restrict mode instead of report-only.
We know now that the scripts inserted ...
0
votes
0
answers
23
views
How to remove unused js and css from magento scandi pwa website
In website usually chunk css and js files will be generating while building. how to remove those unused css and js files from our sites to improve site performance.
is there any ways to avoid them and ...
0
votes
0
answers
10
views
Image Edit not workign after upgrade Magento2 with cropper js
In Old website Image edit function working fine, after upgrade of magento2 we are getting error in js console
Uncaught ReferenceError: imageEditor is not defined
Can anyone have idea about this issue.
...
0
votes
0
answers
46
views
Force Magento 2's checkout accordion to be open on first step, closed on second step
This is my Magento_Checkout/web/template/summary/cart-items.html
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<div class="...
0
votes
0
answers
19
views
Magretno 2 how to send the request of place order when user checked on the check box of terms and condtion
i have changed the checkout process into 4 steps
adress
2: shipping
3: payment methods and agreement
4: summary and placeorder button
everything is working fine accept the terms and condtion. i have ...
1
vote
0
answers
31
views
How to add multiple method titles to KnockoutJS ifnot statement in Magento2
I am looking to add multiple shipping method titles to some knockout JS ifnot statement in Magento2. I currently have the following code which works for the method title listed.
<!-- ko ifnot: ...
0
votes
0
answers
54
views
How can I hide too many variants using an expand button
Since my Magento has many selection fields like 20 for some attributes like color, I only want to display 7 and have the rest expand using an expand button.
Is there this function in Magento or an ...
0
votes
0
answers
62
views
magento 2.4 - blocked due to MIME type (“text/html”)
I have a third party module (HK2_Addbootstrap5) that require a on line js file.
Vendor/hk2/addboostrap5/view/frontend/requirejs-config.js
var config = {
"paths": {
"...
1
vote
0
answers
66
views
When min date is set to today, Date field is showing an error "Please enter a value greater than or equal to NaN." on Magento
I am using Magento v2.4.0.
In certain forms, there's a date field with a minimum value set to today using JavaScript. However, when the minimum value is set to today, the form shows an error saying '...
0
votes
0
answers
134
views
accordion on mobile, tabs on desktop in Magento2
in this file from Magento2
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/** @var \Magento\Catalog\Block\Product\View\Details $block */
/**...
0
votes
0
answers
117
views
Magento 2 | Configurable Products: Change default value / title of (size) dropdown
Magento CE 2.4.6.
Configurable Products.
Option dropdowns of configurable products have the following default value:
Choose an Option...
I want to change this to the title of the attribute. I ...
0
votes
1
answer
275
views
Magento 2 Minicart / Knockout.js: Format calculated price / sum
In Magento 2 minicart (CE 2.4.6) I do not only want to show the price of each item in cart, but also the SUM of each item (if there is more than one unit of the same item in cart). I have therefore ...
0
votes
0
answers
225
views
Magento 2: How to open a modal for each related product using UI component?
I need to save product IDs(will be used ono the frontend later) into the extension attribute of the related product.
Idea is that modal with products listing should appear when I click the 'Select ...
0
votes
1
answer
168
views
Google Tag Manager js library sometimes loading sometimes not
We are using Magento 2 CMS and we add a proper script like this -
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'...
1
vote
0
answers
125
views
Google Tag Manager snippet code automatically removed j.src
We are using the Magento 2 website we added a GTM snippet code but when we check in the "view page source" the j.src value shows nothing.
It should show j.src='//www.googletagmanager.com/gtm....