Questions tagged [modal-popup]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
861 views

Uncaught TypeError: Cannot read property 'nodeName' of undefined in custom js admin panel

I loaded custom js in head section of grid ui component in order to open a model dialog box when i click a button. require([ "jquery", 'Magento_Ui/js/modal/modal' ], function($, modal){ var options =...
0
votes
1answer
43 views

Magento 2 - No method named openmodal when bootstrap bundle js is used

I want to display a review form in the modal popup on the click of a button. However, the code gives this error Uncaught TypeError: No method named "openModal" I am using bootstrap.bundle.js in ...
0
votes
0answers
9 views

Magento 2 Resize and draggable modal popup

I want to open a popup with an external site using iframe when a custom link is clicked in addtocart.phtml. I am facing three issues 1> Iframe gets loaded as soon as external site url is dynamically ...
0
votes
1answer
24 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 ...
2
votes
1answer
36 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 (...
0
votes
1answer
24 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-...
1
vote
1answer
26 views

How to make a form and submit datas using popup modal in magento2?

When a user clicks the open modal button the popup modal opened correctly. I want a form in a modal and save the data into the database. please, anyone gives the solution.
0
votes
1answer
23 views

How to add language switcher in popup on loading Magento2 homepage for first time

I am creating a website with 2 store views - English and Arabic. I would like to add the language switcher inside a popup when a user opens the homepage. But the popup need to display only once (...
0
votes
0answers
32 views

How to open UI Grid Modal on a UI Grid row column button action?

Note: After searching a lot, I have tried myself and came up with a working solution. Kindly check the answer at https://magento.stackexchange.com/a/292029/59216 I am not removing my question ...
2
votes
3answers
13k 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?
0
votes
2answers
135 views

how to create a form popup-modal in magento2.3

here I want to create a modal pop up when the button was a click, by using block file how can I pass the modal link through this below code... public function getMainButtonsHtml() { $html = ...
1
vote
1answer
2k 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
33 views

Override modal-popup.html file Magrnto 2.3.2

Override vendor/magento/module-ui/view/base/web/templates/modal/modal-popup.html File Into Theme.. How To Override base/ folder file into theme ??? I m Try To Paste this file in to theme/Magento_Ui/...
0
votes
2answers
61 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 ...
1
vote
0answers
21 views

Magento 2.2.9 question about foreach data into popup modal

I am trying to do a popup modal with this information I have in an array. I have ID, NAME and DESCRIPTION So in a function, I have done foreach to gather all the information and i am showing it on ...
0
votes
1answer
67 views

Magento 1.9: Product image popup window

I need a product image popup on my Magento website. So I see this extension https://marketplace.magento.com/swissup-tm-easylightbox.html and installed it. But it is not working. I want product ...
1
vote
0answers
1k 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
1answer
166 views

Magento 2 - Load knockout content in modal popup

I want to load knockout content in modal popup on the cart page. And to be able to bind button/click events.
0
votes
1answer
285 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....
1
vote
2answers
808 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
2answers
95 views

Magento2: How to trigger a popup when click on My Account header link?

I want to show a popup when click on My Account header link. As I could not find any phtml file for My Account. Please anybody help me on this. Any help would be appreciated.
0
votes
0answers
14 views

M2 Modal Widget - How to stop video playing after close or click off modal

I have searched for the answer and tried to implement the solutions, and they were not working for me. Everything works fine except the video sound continues to play after closing or clicking off the ...
1
vote
1answer
635 views

Magento 2 pop-up authentication not showing

I'm using Magento 2.1.8, and I disable Magento guest checkout like this: after saving the configuration, I cleared Magento cache. The problem occur when I tried to click the checkout button at ...
1
vote
0answers
197 views

Magento 2 How to add grid/phtml file on Slide out panel [ popup modal ] in custom grid action?

Here is the link of what I expected to do in my custom module http://admin-actions-log-m2.demo2.amasty.com/_router/redirect/admin-actions-log-m2/index.php/admin/amaudit/actionslog/index/ just open ...
6
votes
2answers
3k 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 ...
0
votes
1answer
83 views

Magento 2 cdn issue for modal popup - KeyCdn

We uses KeyCdn to use cdn feature for magento 2. We use push zone for one of our website for testing. KeyCdn working fine except modal popup CORS issue. We are facing below error. Access to ...
0
votes
0answers
21 views

How to close product image popup? When I click outside of popup content in magento 2

How to close product image popup? When I click outside of popup content in magento 2
1
vote
2answers
3k 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 ...
0
votes
0answers
11 views

how to create Modal window in backend

I want to create Modal Window just like the advanced pricing in back-end product edit page how to do so? Thanks
0
votes
0answers
20 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.
3
votes
1answer
178 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/...
0
votes
1answer
31 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
26 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 ...
6
votes
1answer
5k 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 ...
2
votes
1answer
118 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
15 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
108 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
3
votes
1answer
51 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="#" ...
1
vote
1answer
336 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 ...
1
vote
2answers
1k 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
0answers
96 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 ...
0
votes
0answers
126 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
63 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
47 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
0answers
124 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
240 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
2answers
4k 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-...
0
votes
0answers
117 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
23 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
68 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 ...