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-popup]

The tag has no usage guidance.

1
vote
0answers
26 views

Dropdown dialog position not working

I have integrated google's dialogflow in my store. Dialogflow provides iframe. I created a dropdowndialog magento ui widget. My footer phtml contains the following code. Now the issue is with the ...
0
votes
1answer
22 views

How to open a popup after a page loaded only once for a customer in magento 2

I wish to open a popup after a page loaded in magento 2. The popup should show only once to a customer in a day. I have opened a popup on page load, But How do i avoid the popup,if it already seen by ...
2
votes
2answers
73 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 ...
0
votes
0answers
20 views

Magento 2 First Load Data When Modal Opens?

I have made a function to display all customers on a modal popup. This is working fine. The problem is it loads customers even the link to the modal popup is not clicked. Which means this feature is ...
0
votes
0answers
14 views

Magento 2.1.0 checkout modals only show once in bespoke theme

I am creating a bespoke theme (not based on any existing theme, or parented on an existing theme) and for some reason the 'New Address' modal only shows up once on the checkout page. The first time ...
0
votes
0answers
22 views

Show Model PoPuP after executing massAction in Magento 2?

I have a custom massAction after executing the function I need to show the model popup. In my case, I am sending the multiple requests to web service and storing the array of messages if I use below ...
0
votes
1answer
38 views

in Magento 2 how to Open Modal popup with dynamic value for dynamic click button?

When I click on item "edit link" modal popup is open but when i edit other product it will show previous product data. Can anyone help to get dynamic popup with dynamic data in per different products?...
0
votes
2answers
43 views

Validtaion is not triggers in custom form in magento 2

I have created custom form inside the popup. without filling the form, i am trying to submit,immediately it submits the data instead of validating the fields. Plaese provide me a solution. form.phtml ...
0
votes
1answer
44 views

Magento 2, how to add 'textbox' into 'cancel modal'?

Using magento 2.2, admin. I need to add textbox into dialog when confirm Cancel status in sale order.
0
votes
1answer
98 views

Display frontend errors in popup modal

If there's a problem on the checkout, the error is displayed near the top, for 5 seconds and then it goes away. Most customers don't even see the message. Often, on smaller devices, the message isn'...
1
vote
0answers
65 views

How to add “Add To Cart” Pop Up Magento 2 Custom theme? [closed]

Here i am trying to add a pop-up once product added to cart using custom theme magento 2?? I tried this link
1
vote
0answers
17 views

Replace instant purchase message with popup (2.2)

I'm using a custom theme I wrote that derives from magento-blank and was wondering how I might go about replacing the instant purchase message at the top with a popup. Currently, on a mobile device, ...
0
votes
0answers
20 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
109 views

Magento 2: Open custom options in modal/popup

How can we show custom options in modal dialog or popup in the product detail page? For example, when the user clicks one button, custom options of that product will be shown in modal dialog or popup.
0
votes
1answer
232 views

How to remain modal popup open by clicking outside the modal-content in Magento 2.6

When I tried to click outside of the modal area modal getting closed how to prevent that and modal should not be closed when the user clicks outside of modal. define([ "jquery", "...
1
vote
0answers
22 views

Magento 2 Modal Pop up from exception

I have an observer that rejects this save of orders conditionally and throws a message. Instead of the message I would like to trigger a modal. How can I get this done? $message = “We were unable to ...
0
votes
0answers
26 views

How to get Return value from magento modal js

I am just created a popup on click. var insurance_popup = { type: 'popup', responsive: true, ...
0
votes
1answer
74 views

Show popup when clicking on custom mass action on sales order grid

I am new to Magento 2. I have managed to add a new mass action on sales order grid following some guides that exist out there. What I want to do next is when clicking on the custom mass action to show ...
0
votes
0answers
14 views

Modal widget test 'is open'?

Is there any easy way to test if a given modal is open using the build in modal widget? I see event triggers for on opened and on closed, and the existing buttons seem to close the competing window, ...
0
votes
2answers
487 views

Need to trigger javascript modal on homepage only once

We want to have the registration popup come up on (only) our homepage whenever a customer has not visited before. I think I can chase down the information on setting a cookie for the one-time behavior,...
0
votes
0answers
193 views

Contact Form Modal and Ajax Submit

I need to pop up the standard Magento 2 contact form in a modal but also submit it and show a static block without reloading the page or taking the user away from the page they are on. It's not quite ...
0
votes
1answer
351 views

Magento 2. Call .phtml (modal) from observer

I have created a custom .phtml file that contains a modal popup. I can successfully call this .phtml by adding it to default.xml in layout. <?xml version="1.0"?> <page xmlns:xsi="http://www....
0
votes
1answer
306 views

Magento 2: Modal opens only once

Here is my HTML and JS: <div id="mybutton" class="button"> click </div> <div id="testcontent"> blah </div> <script> // <![CDATA[ require([ '...
1
vote
1answer
379 views

Magento (1.x) : How to show bootstrap modal popup

Is their a way to open bootstrap modal popup in Magento 1.x. Like: https://www.w3schools.com/bootstrap/bootstrap_modal.asp I also had a look by ctrl+u but didn't find any bootstrap.min.js (or) ...
1
vote
1answer
152 views

Adding a Cookie policy Popup message

I was wondering would anybody be able to assist me. I want to add a pop up on my magento 1 website that tells the user about our cookie policy. I know there is a setting in magento already but it ...
0
votes
2answers
89 views

Magento 2 custom Model in Component not Working

Ive created a custom component with a template in Magento_Checkout summary : this is my modal-custom.html: <div id="modal-content">TEST</div> <button id="example-modal-button" data-...
0
votes
1answer
309 views

Magento 2 can't translate modal's title

I'm using a modal to show conditions for subscribing to a newsletter list. But I'm having trouble translating the title when initializing the modal inside a phtml file. The modal opens normally, but ...
0
votes
2answers
2k views

How to remove header or footer from modal popup in magento 2?

I have created popup on href click and on click popup is opening fine. But I want to remove Continue button from modal-footer which is just used to close the popup. Want to remove it. Any idea? modal-...
5
votes
1answer
2k 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 ...
1
vote
0answers
55 views

How to remove modal.js from all pages in magento 2.2

because of this file modal.js define([ 'jquery', 'underscore', 'mage/template', 'text!ui/template/modal/modal-popup.html', 'text!ui/template/modal/modal-slide.html', 'text!ui/...
0
votes
1answer
256 views

How to pass a value to modal while opening

Is it possible to pass a value while opening a modal(js component of magento)? If the answer is yes, then how can i do it?
0
votes
0answers
99 views

Magento 2 : How to remove the menu bar for an admin form pop-up?

I am trying to show a custom admin form in a pop-up, and remove all unnessecary elements like header, footer etc. I removed various elements by editing my modules layout file, the following code works ...
0
votes
0answers
422 views

Magento 2: Popup on `Add to Cart` Button

I have been trying to add pop on 'Add to Cart' button. My file looks like <?php /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ // @...
0
votes
0answers
140 views

Magento 2 Widget Modal Scroll top

I'm using Magento 2 Widget Modal. The contents of my modal are pretty long and require scrolling. The issue I'm having is when the modal pops on mobile for some reason the user ends up in the middle ...
0
votes
0answers
128 views

Show popup on cart page suggesting product. Auto add to cart if clicked

I'm using a modal popup and would like to create button images. Basically buttons that say "No Thanks" and "Add To Cart". If Add to Cart is clicked it would add that product to cart. The product isn't ...
0
votes
1answer
1k views

Sending variable to a bootstrap modal

I have seen this asked before but a lot of the answers I found where people looking to get a variable into a modal to query a database. However thats not what I want. I just want to send a variable ...
0
votes
1answer
662 views

Magento 2 FancyBox Implementation for youtube videos

Am implementing fancybox in magento 2, which has been implemented in magento 1 but in M2.2x shows a require js implementation and I have done that so but still the issue persist. Guide me to implement ...
0
votes
2answers
109 views

How to remove cache for Modal?

I created modal in homepage when user logged in. This is my Phtml. Everything working fine but data updates only when I flush cache. How to clean cache on load page. <?php $money = $block->...
1
vote
0answers
275 views

Magento 2 modal-popup not opening second time

I am calling my modal widget from an external .js file on link click which is working fine for the first time but when I cancel the modal and click the same link again it is not opening. Also when I ...
1
vote
2answers
5k views

Magento2 creating and calling modal widget

I want to create custom modal popup widget and call on my .phtml file. How can I do that? What will be the whole procedure for creating modal and accessing it from the .phtml file?
1
vote
2answers
2k views

How to close the popup modal after showing the success message in magento2

I need to close the popup modal in magento 2, In my js I have given button as false, I can open the popup, but falied to close it after showing the response messagePlease provide me a solution to ...
2
votes
0answers
90 views

Magento 1.x popup confirmation modal in admin panel

I'm wondering if there's any way to set up a popup confirmation message or an alert message under certain settings on my products in back-end panel. Thanks a lot
2
votes
3answers
302 views

Failed to close the popup modal form in magento 2

I have created Popup modal form, the form is successfully submitted and showing response, but after showing response I need to close the popup modal but failed to close the popuup modal js file ...
1
vote
0answers
234 views

Magento 2: Place an Order Checkout button popup box

Merry Christmas everyone. I have a question guys can you please teach me how to add a popup or modal upon clicking the "Place an Order" Button on the checkout page? Just correct me if I'm wrong ...
0
votes
1answer
1k 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 ...
1
vote
0answers
159 views

Magento2: How to add custom mass action with pop up though UI

I need to add custom mass action , but when you click on mass action option i need one pop up instead of redirecting to action url that is custom js for my custom mass action can any one help me on ...
2
votes
0answers
248 views

popup is not displayed in in magento2 admin grid

I'm a beginner on Magento and I'm stuck at the pop-up level, so I did the add action button and it works fine <actionsColumn name="actions" class="Managys\Pricing\Ui\Component\Listing\Column\...
0
votes
2answers
56 views

How to empty the form before loading in magento 2

I have created popup modal using ajax and it works successfully. But once the form submitted, it saves in DB. But if I click again to perform action, It simply shows prefilled message instead of new ...
0
votes
1answer
1k views

Magent2 Modal Widget - change width and height

I am interesting in all the options that are available for the Magento Ui modal popup widget. Like: var options = { type: 'popup', responsive: false, innerScroll: false, ...... } Mainly for the ...
5
votes
2answers
2k views

Submit custom form using Popup modal in Magento 2

I have created a modal popup and I have added my custom fields inside that popup. Now, that popup and fields are coming and it's working fine. But the form is not showing inside that Popup. I want to ...