The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [modal-popup]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
18 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
17 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 ...
0
votes
2answers
69 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 = ...
0
votes
1answer
30 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
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
2answers
57 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 ...
0
votes
1answer
50 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 ...
0
votes
2answers
47 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
11 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 ...
0
votes
1answer
64 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
19 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
0answers
170 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 ...
0
votes
0answers
9 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
18 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
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 ...
0
votes
1answer
225 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
97 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
14 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
101 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
1answer
98 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.
3
votes
1answer
48 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
160 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
290 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
77 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
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
0answers
99 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
59 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
45 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
119 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
219 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
107 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
57 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
415 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
172 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
140 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
241 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
144 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
21 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
50 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
1answer
557 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
40 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 ...
1
vote
2answers
758 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
1answer
588 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
560 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
673 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
198 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
221 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
569 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 ...