Stack Exchange Network

Stack Exchange network consists of 175 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 [modal]

The tag has no usage guidance.

34
votes
2answers
2k views

How can I change an existing modal in Magento 2?

I'm trying to change the behaviour of a Modal (not Model) in Magento 2. The modal in question is advanced_inventory_modal, declared in module-catalog-inventory/view/adminhtml/ui_component/product_form....
4
votes
1answer
1k views

Magento 2 - Dynamic rows based on related products modal grid on custom form with tabs

I am working on magento 2.1 backend module. Basically backend part is a form that contain tabs. I ahve here some standard inputs but also some dynamic rows etc. Everything is working fine except the ...
2
votes
1answer
446 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 ...
2
votes
1answer
844 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 ...
0
votes
1answer
147 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 ...
0
votes
1answer
152 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( ['...
0
votes
1answer
67 views

How to check if user entered wrong credentials?

I've edited tm/firecheckout/checkout/link.phtml to display a modal window in shopping cart when the user is not logged in. I've set it up that when a user enters the wrong credentials (...
0
votes
1answer
1k views

Trigger modal after placing a product in minicart on Magento 2

I need to show a modal after a product is placed inside cart. This is what i have so far. This is my default.xml <body> <referenceContainer name="content"> <block ...
5
votes
0answers
692 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 preloading that phtml file using following command <div id="...
1
vote
0answers
109 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 ...
1
vote
0answers
228 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?
0
votes
0answers
9 views

How to create modal popup to confirm on add to cart on view page in magento 1.9

I need to display a pop-up with custom fields and validations. After the data validation successful then product goes to cart if not stays in the same product details page.
0
votes
0answers
18 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 ...
0
votes
0answers
8 views

How to open a slide-in modal with a block button adminhtml

Would be possible to have a block button, like the Add Attribute, open an XML modal. XML Modal Example namespace Magento\Catalog\Block\Adminhtml\Product\Edit\Button:AddAttribute I've attempted to ...
0
votes
0answers
36 views

Create modal admin without losing content at closing

I created a modal in the backend with the object ´Window ({})´ the problem and that creating it so I create a modal that must necessarily reload the content via ajax. My code: Window....
0
votes
0answers
60 views

Load ajax after using observer

I have added this JS code inside catalog-add-to-cart.js : var popup = $('<div class="add-to-cart-dialog ajoutPanierModal"/>').html('<span>Le produit a été ajouté au panier.</span>')...
0
votes
0answers
40 views

Magento 2 adding textbox to modal widget

I want a text box in my modal widget in custom js file and get the value of that text box on button click of that modal. require([ 'jquery', 'jquery/ui', 'Magento_Ui/js/modal/modal' ], ...
0
votes
0answers
25 views

How to trigger Admin Backend UiComponent Modal Implementation

I have modal configured in my listing page xml as below <listing> .... <modal name="dispatch_email_modal"> <argument name="data" xsi:type="array"> <...
0
votes
0answers
40 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 ...
0
votes
0answers
189 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 ...