We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [modal-popup]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
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 ...
4
votes
1answer
2k views

Magento 2.1.7 : Modal Popup using Ajax

How to use model popup using ajax? Can any one help for this. Here below my code. How can i apply in this code model popup? And also post data get in popup. How it possible? app/code/Vendor/Complany/...
4
votes
1answer
118 views

Magento: Product Details in popup

I want to show a product details in popup instead of redirecting to the product view page. How is it possible. Please help.
3
votes
1answer
50 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
174 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/...
3
votes
0answers
322 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\...
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?
2
votes
1answer
719 views

How to set background color of modal in magento2

I want to set background color in whole modal. How to do it..? Please help me... See the below code.... <div id="popup-modal" class="abc"> <p>A</p> </div> <style type=...
2
votes
3answers
469 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 ...
2
votes
1answer
829 views

Magento 2 add block phtml to every page

I have a modal to show in every page, my modal was created in phtml file which using custom block file. i want to show this modal in every page of magento, is there a way to do this?
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 (...
2
votes
1answer
113 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 ...
2
votes
2answers
236 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 ...
2
votes
0answers
111 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
0answers
339 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 ...
2
votes
0answers
385 views

Add modal popup on multiple list elements

I would like to add modal functionality in a list of images wrapped in a div. It should work like so: when i click on a span element the next image should show in a modal. Html example below. <?...
2
votes
0answers
370 views

Magento 2: Move shipping address popup below address options

I am trying to remove modal popup for new shipping address form in checkout and place it below saved address as a div. Have anyone idea about this?
2
votes
1answer
856 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 =...
2
votes
0answers
122 views

How to show magento global message in pop up - Magento 2

I have created an ajaxcart custom plugin but I want to show the global message in which appear behind the ajax pop up.
1
vote
2answers
3k 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 ...
1
vote
1answer
2k 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
2answers
2k 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 ...
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 ...
1
vote
3answers
2k views

How to load a .phtml page content in a popup in magento 2?

I need to load a .phtml content on a popup. <div> <a href="#" id="click-me">Click Me</a> </div> <div id="popup-mpdal" style="display:none;"> &...
1
vote
1answer
1k views

magento 2 popup model need to open only one time on whole webiste after login or subscribe

I created a magento 2 pop-up it is working great. I have included a newsletter form in this pop-up .Problem is that pop-up is repeated after refers button.Problem is this , I want open pop-up only ...
1
vote
2answers
801 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,...
1
vote
1answer
706 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
205 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 ...
1
vote
1answer
590 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 ...
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.
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 ...
1
vote
0answers
196 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 ...
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
107 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
1
vote
1answer
333 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
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-...
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 ...
1
vote
0answers
146 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, ...
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
0answers
90 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/...
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 ...
1
vote
0answers
360 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
0answers
206 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 ...
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 ...
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
2answers
796 views

Override Magento_Ui modal-popup.html file

I need to override the modal-popup.html file in my custom theme (I want to remove the "Continue" button). I've tried to create the following directory in the theme's directory: argento-essence-...
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/...