Questions tagged [modal-popup]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
9
votes
1answer
3k views

Magento 2 : 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/...
8
votes
1answer
9k 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 ...
8
votes
2answers
6k 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 ...
5
votes
4answers
22k 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?
4
votes
1answer
119 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
3answers
7k 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-...
3
votes
1answer
1k 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?
3
votes
1answer
462 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
1answer
1k 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 =...
3
votes
1answer
170 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
0answers
352 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
1answer
884 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
1answer
174 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
1k 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 ...
2
votes
1answer
388 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
3answers
637 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
2answers
488 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
1answer
888 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....
2
votes
1answer
695 views

How to Create a Sliding Modal Popup on Custom Button in Magento2 admin

How can we create a modal popup on a custom button like it does when we click on the "Add Attribute" button when editing the product in the backend. I want to create a similar feature on a custom ...
2
votes
0answers
2k 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-...
2
votes
0answers
131 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
422 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
413 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
391 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
0answers
143 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
6k 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
129 views

Magento 2.3.3 create popup

How to create a popup? I want to create a popup for every page unless the customer clicked close. I want to show a popup with the cms block content. I am not sure what to do or how to start I have ...
1
vote
1answer
1k 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
4k 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
1answer
846 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
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
1answer
377 views

How to create Form action on click of a Button under Modal Widget

I have created a modal widget on a category section under Admin. A custom button is created along with Save and when we click on that button, it opens a modal with custom form. Inside that form, ...
1
vote
3answers
3k 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
2k 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
1answer
40 views

How to Show product review form in popup Magento2

I searched a lot to find solution for this problem and seems that many of them are searching for a solution. Finally I did it with a simple workaround it will be helpful to someone.I don't know ...
1
vote
1answer
28 views

How to setup a modal popup login form when click on login rather rendiring into a login page

I am new to magento2. I want a pop login form modal when I click on the login button. please help in achieving it.
1
vote
1answer
152 views

How to customize validate-product.js, so it will return message in popup?

If a customer forgets to choose the product option of the configurable product on the product listing page and click "add to cart" it is redirecting you to the product view page with the message: "You ...
1
vote
2answers
1k 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
969 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
232 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
0answers
37 views

Magento 2 Show selected Bundel Product Option into Popup

I have create one custom Module. I need to get bundle product html into popup like give below. I have product id. How to achive this ?
1
vote
1answer
261 views

Multiple modal popup elements, can't set z-index

I have two modals that can be opened on the page. But they both have the same z-index, so I try to set a higher z-index for one of them: <script type="text/javascript"> require(['jquery', ...
1
vote
0answers
211 views

Magento2: Add modal popup to admin grid column using block approcah

There is an admin grid created in block method. Now I want to add a new column with a button or link that will open a popup when clicked. So instead of having the edit/view link that redirects to ...
1
vote
0answers
47 views

Override Minicart to show in modal Magento v2.3.3

When i click on the 'action showcart' of the minicart it is displayed in a 'dropdownDialog' just above. This is normal operation Now I want to display the whole minicart in a modal which is displayed ...
1
vote
0answers
27 views

Magento 2: Modal video in product list

In the product list, I want to check if product video exists show button video like this: and when I click on the button video will be played like modal. Any way to solve it? Thank in ...
1
vote
1answer
888 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
36 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
19 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
233 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