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.

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
1answer
21 views

M2 Modal Widget - Variable for Link, Title, and Content

I want to have links that activate a modal window with dynamic content and title. I would assume there is a way to do this with variables. I can do it now as a separate script for each modal, but is ...
0
votes
1answer
24 views

Get info from pop-up form into email template

I want to get values from this form fields and put into email template. What I was suppose to do? For every field I need to create custom variable, and bind it on field? Documentation is not too ...
0
votes
0answers
41 views

Magento 2.2 - Uncaught TypeError: this.modal.zIndex is not a function

Am using Venus need theme, on mini cart's delete click and Checkout's Already have an account? Click here to login throws this issue. Uncaught TypeError: this.modal.zIndex is not a function modal....
2
votes
1answer
35 views

Overriding function from the modal.js file

How can I override a function from the modal.js file in the path vendor/magento/module-ui/view/base/web/js/modal/modal.js ? In this file, line 307, is a function with name closeModal() that I want to ...
1
vote
0answers
13 views

Open Model containing Ui Listing

I have Two tables table1 has id and other fields and table2 which has id, foreign key of table1 and other fields. I have create a ui listing for table1 and added a button to go in table2 ui listing. ...
1
vote
1answer
30 views

Magento 2 - How to show configurable product options in a popup

I would like to show the configurable product options in a popup in the mobile version of my store
0
votes
0answers
26 views

Magento 2 - Load knockout content in modal popup

I want to load knockout content in modal popup on the cart page.
3
votes
1answer
43 views

How to display template file in popup model in Magento2?

I want to show phtml file inside popup on click of a button but it shows by default open how to resolve it anyone has an idea ?? I want to open when I click on button <div> <a href="#" ...
3
votes
1answer
47 views

Checkout errors inside modal?

UPDATE June 7, 2019: Thank you to @crashtestxxx With their help, here is the full code I am using and it works well on Desktop and Mobile - file located at app/design/frontend/YOUR/TEMPLATE/...
1
vote
1answer
128 views

Magento 2: Uncaught Error: cannot call methods on modal prior to initialization; attempted to call method 'show' when calling bootstrap modal

I am getting error when I am calling modal like this setTimeout(function() { $('#site-pop-up').modal('show'); }, 2000); Error in console: Uncaught Error: cannot call methods on modal prior to ...
0
votes
0answers
29 views

How to create Modal in adminhtml Grid. Magento2

I want to make PoP-Up Modal in adminhtml in like the core I also write the address of the this pop-up in the image while in the other image when I click on the Check Offer button as shown in the ...
1
vote
0answers
614 views

magento 2 Uncaught TypeError: Cannot read property 'version' of undefined

I got below error randomly in front-end and when all modal popup not working when below error occurs. Uncaught TypeError: Cannot read property 'version' of undefined I have override admin product-...
0
votes
0answers
44 views

magento 2 admin product image detail custom textfield value gone after dialog close

I override app\code\Magento\ProductVideo\view\adminhtml\templates\helper\gallery.phtml file following below steps. 1) Create module name app\code\Hs\Mageenhancement. 2) Create event.xml file under ...
1
vote
0answers
31 views

Custom Button popup modal not open

I need Quick Order button at product page like this website Example Website I have created button at my website using attribute and the following code app/design/frontend/Smartwave/theme/...
1
vote
0answers
35 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
58 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
125 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
35 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
22 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
31 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
271 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
79 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
90 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
181 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
122 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
19 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
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
152 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
396 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
27 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
32 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
0answers
26 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, ...
1
vote
2answers
633 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
269 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
481 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
427 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
522 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
173 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
172 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-...
1
vote
1answer
483 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
3k 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
4k 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
77 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
372 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
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 ...
1
vote
2answers
873 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. NOTE : The issue ...
0
votes
2answers
150 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
321 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
9k 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?