Questions tagged [modal]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

html template is not rendering in modal of admin side in Magento 2

I am trying to load the HTML template in the modal of the admin side in Magento 2 but unfortunately, the HTML template is not rendering in the modal but it's working outside the modal. I am loading ...
user avatar
0 votes
0 answers
36 views

"cacheable = false" not working on a modal

I'm developing a modal that allows the user to select a car model, and, when it is selected, it loads the different variations of rims that the user can fit in their car. It is working as intended so ...
user avatar
0 votes
1 answer
108 views

How to add popup Modal in scandipwa?

I want to create popup modal in scandi. Code is tried is s follows- Popup.js import React from "react"; const Popup = props => { return ( <div className="popup-box"&...
user avatar
0 votes
0 answers
13 views

Get value from modal popup to form

it have modal popup with grid. In my action column in grid use button. I need when click to this button, modal popup will close and value fill in my form field. Anybody who can help me? <modal ...
user avatar
1 vote
0 answers
22 views

Row click - make checkbox selected in a modal grid issue on Magento 2.4.2

I have a modal, listing a product grid. Same as it is for related products when you add a product. My problem is that beside that I have the pointer cursor, when I click on a row the checkbox from my ...
user avatar
  • 3,575
0 votes
0 answers
25 views

Integrate zoom in product Photos modal in Magento2

How Can I integrate zoom in product sheet modal in magento 2
user avatar
0 votes
2 answers
168 views

How to create modal in Magento 2 admin?

I have a button in cms_page_listing.xml file, I expect opens a modal window with a slide effect, when clicked on it. what should i do, please help
user avatar
0 votes
1 answer
156 views

Can't get module to show in static block

Using Magento 2 I created a cms static block that points to {{block class="Inchoo\ModalOverlay\Block\etc" template="modal_overlay.phtml"}} I followed this guide on how to create ...
user avatar
  • 47
0 votes
0 answers
203 views

Magento 2: How to open admin edit page in modal popup

To edit or create my data, I use the ui_component form as default. Now I try to open the admin edit page in a modal window, but unfortuantely I HAVE NO IDEA how to do this :-( Please help! Christian
user avatar
1 vote
2 answers
287 views

In this Model what they are mentioning as getTypeId()

In this Model they had mentioned the getTypeId() but for what they mentioned as type id i can't understand can anyone please explain me. $orderItem->getProduct()->getTypeId() what will be the ...
user avatar
  • 298
0 votes
1 answer
949 views

Youtube video still playing after modal is closed--and I've tried every fix known to man with no luck!

I'm having an issue with Youtube continuing to play after closing a modal. I know this is not a unique problem and I have done exhaustive research to find answers. Unfortunately nothing has worked. I ...
user avatar
  • 1
1 vote
1 answer
175 views

How to setup a modal popup login form when click on login rather rendiring into a login page

I am new to magento2. I want a pop login form modal when I click on the login button. please help in achieving it.
user avatar
0 votes
1 answer
1k views

Magento 2: show list of all customers in custom grid

I created modal window similar functionality of when click on Add related products on product edit page, now in the modal window I need a list of all customers in grid. Currently its showing Error: ...
user avatar
0 votes
1 answer
321 views

Magento2 + modal confirmation popup after page load

I want to open modal confirmation dialogue and based on that I'm operating some database operation as my need. So please suggest me the best way to open modal confirmation popup that should work even ...
user avatar
2 votes
1 answer
497 views

Magento 2 Popup Modal give errors into the iphone(safari)

I am using the Magento 2.3.2 Version. I have set the popup modal but it is not working into the iPhone safari browser. They give the following error: TypeError: undefined is not an object (...
user avatar
0 votes
1 answer
1k views

Bootstrap modal for magento 2

Is bootstrap modal working in magento 2? I have already added my code but it is not working. here is my code HTML: <div class="button-addcart"> <button type="button" class="green-btn btn-add-...
user avatar
1 vote
1 answer
390 views

Add Custom JS to Modal Insert Widget Admin Form

I am wanting to do custom javascript to manipulate the Widget Options when adding a widget (using the WYSIWYG editor) in the Admin panel. I have found that the layout handle adminhtml_widget_index is ...
user avatar
1 vote
1 answer
38 views

PHP if statement not working - AB testing

I've been working on a new modal design to be AB tested against the old version. However, I don't want to dive into third party AB testing code/frameworks so I have opted for a simpler approach. ...
user avatar
  • 143
0 votes
2 answers
484 views

Magento 2 Edit wishlist modal footer

The site I'm working on has changed the wishlist popup to a free samples popup. I'm trying to edit the modal footer but I cannot find a template for it. The developer before me has created a module ...
user avatar
  • 143
0 votes
0 answers
36 views

block executing before modal click

I have a modal with 2 buttons that have a click function. Inside of each of these click functions is a block that's supposed to only be executed when clicked. However, the block seems to be executed ...
user avatar
0 votes
0 answers
96 views

Magento 2 : How to use Modal Slide for CRUD Operation using custom module in Admin side?

I am trying to create a CRUD operation using Modal Slide in Magento 2 Admin Area like below. Please refer the below screenshot. I'm spending the last 3 days on this. Please assist if anybody knows ...
user avatar
3 votes
0 answers
270 views

Magento 2.3.1 modals-wrapper causing errors

Is anyone else having an issue of late errors showing up in Magento 2.3.1? I stopped all extensions, and reverted back to the Magento Luma theme, and I'm getting this error: misc.js:181 Uncaught ...
user avatar
2 votes
1 answer
1k views

How to use ajax in alert modal magento 2?

I have this ajax code and i want to use alert modal of magento 2. <script> require(['jquery'],function($){ $(document).ready(function() { $("#vendor_search").on('click',...
user avatar
1 vote
1 answer
927 views

Modal error in checkout

In default magento checkout page, mobile version, clicking the minicart icon opens a modal containing cart contents. When checkout page is loaded for the first time, clicking that minicart icon gives ...
user avatar
  • 581
3 votes
1 answer
415 views

Referrer URL in modal login form

I currently have a login form which opens when a customer clicks a link in the header (instead of going off to /customer/login). Apart from a few field ID's, it's pretty much unchanged from customer/...
user avatar
1 vote
4 answers
4k views

Modal Window with Youtube video stop video playing

I am having issues with Youtube video playing in Magento 2.2 store using modal popup to display video. Here is what I am using to for modal window: <div id="video-modal" style="display:none;"> ...
user avatar
  • 103
0 votes
1 answer
752 views

Modal popup not working after clearing browser cache

I am using the bootstrap modal popup to show some content on site on click. First time when I click a link the modal popup works fine, but when I clear my browser cache and click on again on the same ...
user avatar
2 votes
2 answers
791 views

How to remove modal.js and its related files

I need to remove modal.js and it's related files all over the website. It is available in vendor directory and I need to remove it from DOM. I found similar question, but no one answered it: How to ...
user avatar
  • 8,828
2 votes
0 answers
687 views

How to select values in parent grid magento 2 from ui component modal?

I have a custom product listing grid, on clicking add products, I have created a (slider) modal, Where I check the products from another grid and click add selected products, then the selected items ...
user avatar
0 votes
1 answer
627 views

How to use several Modal in the same page

i'm trying to find a way to use several modals on the same page, could you help me ? Here is the code I use, and only the first modal works : <script> // Modals require( ['...
user avatar
  • 1
3 votes
1 answer
7k views

Adding a modal after adding to cart [duplicate]

What would be the best way to create a modal after adding a product to cart (Showing "continue shopping" or "checkout")? I though about using just JS with event. But, I don't know how to concile this ...
user avatar
0 votes
0 answers
525 views

Hide modal while loading

We had the third party create a website for us and on one of the pages, as the page content is loaded, the content from one of the modals is visible. Once the page has finished loading it disappears ...
user avatar
  • 263
9 votes
1 answer
15k views

How to create popup in magento 2?

Sometimes it is required like to show promotional popup for the first time when customer visits the site. How to create popup based on cookie in magento 2? Like I want to display any CMS static block ...
user avatar
1 vote
1 answer
2k views

Video keeps playing in background after closing popup

I have a button that when clicked, pops up a video content that can be played. The problem is that if I close the popup while the video is playing, it does not stop and keeps playing in the background....
user avatar
  • 13
0 votes
0 answers
367 views

An Error while add a complex component modal as insertlisting for add dynamic row in my ui-component admin form

Facing an Error while add a complex component modal as insertlisting for add dynamic row in my ui-component admin form: Error is as below: "Warning: DOMDocument::loadXML(): xmlParseEntityRef: no ...
user avatar
  • 1,208
3 votes
1 answer
983 views

Add Video button not working on product page

I'm having issues with the add video button on the product pages in Magento 2.2.1. The button doesn't open the modal window even though I have added my Youtube api key and its enabled. I've done ...
user avatar
  • 161
1 vote
1 answer
3k views

Change button text in modal popup minicart

When I remove an item in the Minicart, a modal popup pops up. This popup has two buttons: Cancel and OK. I want to change these strings to No and Yes, but I can't find the code where the modal is ...
user avatar
0 votes
1 answer
922 views

Magento 2: Set custom class on modal background

How do I add a custom class to the background of a modal widget in Magento 2? I'm able to change the class for the main modal <aside> with the modalClass config property but want to change the ...
user avatar
0 votes
1 answer
1k views

How Can I Open the Modal Dialog Box in Checkout Authentication?

I want to make it so that when any User buys a product, when checkout is clicked on then the first modal dialog box opens to either login or use a guest account to purchase the product.
user avatar
0 votes
1 answer
1k views

Magento 2: Detect Closed Event On Modal JS [duplicate]

I have created a modal popup using the modal UI component. See below: require( [ 'jquery', 'Magento_Ui/js/modal/modal' ], function( $, modal ) { ...
user avatar
1 vote
0 answers
795 views

Magento 2 Modal pop up close button not working after print action [closed]

I have enabled a modal pop up on clicking an image. The popup is showing a set of gallery images. The pop up has two buttons:one for close and other for print(to print the contents in pop up). When ...
user avatar
  • 1,355
7 votes
6 answers
19k views

magento 2 js modal popup close event

require( [ 'jquery', 'Magento_Ui/js/modal/modal' ], function( $, modal ) { var options = { ...
user avatar
  • 1,645
4 votes
1 answer
4k views

Magento 2 :Embed youtube video in modal pop up

I am using a modal pop up. I want to embed a youtube video and a field to enter the code in the pop up. I ahve already dispalyed some content in the pop up. This is my phtml file <?php /** * ...
user avatar
  • 1,355
1 vote
2 answers
2k views

Magento 2.1 popup modal

I have a popup modal which onclicks opens , I want this modal to be closed when I submit the form and get the ajax success request. I tried with success: function(data) { //console.log('...
user avatar
  • 1,712
1 vote
0 answers
269 views

Magento 2 - Enable the authorisation login popup modal

How do I activate the authorize Login popup modal for Magento 2? Like shown below. Is this a Extension or can I activate this by configuration or by edits in my Theme?
user avatar
  • 11
6 votes
2 answers
2k views

remove unsecure content from modals-wrapper

Out of the box Magento 2 adds <div class="modal-content" data-role="content"> div at the end of the code. I am not sure what it is supposed to do. But it contains a login form with password ...
user avatar
  • 348
2 votes
1 answer
2k views

I would like to remove the login pop up from the checkout(Magento 2)

I would like to remove the login pop up from the checkout: The login appears on the checkout page(like this) I wanna remove this option from the checkout page. What is the best way to achieve this?
user avatar
  • 731
4 votes
1 answer
2k views

Is there a way to completely destroy a modal in Magento 2

I have created a modal with some dynamic content (input fields) and a save button to save input field data in database and I'm opening that modal on a button click. Now when I fill all the input ...
user avatar
  • 1,474
6 votes
1 answer
1k views

How to dynamically load phtml file on a button click in Magento 2

I have a phtml file view.php and its block class View.php. I need to show that phtml on a modal on checkout page and to do that I'm pre-loading phtml file using following code : <div id="modal-...
user avatar
  • 1,474
11 votes
2 answers
8k views

How to create a Magento 2 Modal popup that cannot be closed?

I'm trying to create a modal popup that cannot be closed. It has a button that takes you to the next page by clicking on it, but I don't want users to be able to close it. The modal popup can be ...
user avatar
  • 7,352