Questions tagged [modal-popup]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
639 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
605 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
737 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
211 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
253 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
608 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
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-...
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 ...
1
vote
0answers
91 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
497 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?
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
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
2answers
209 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
367 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 ...
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?
1
vote
2answers
4k 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 ...
2
votes
0answers
114 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
3answers
488 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
0answers
351 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 ...
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
0answers
210 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 ...
3
votes
0answers
325 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\...
0
votes
2answers
62 views

How to empty the form before loading in magento 2

I have created popup modal using ajax and it works successfully. But once the form submitted, it saves in DB. But if I click again to perform action, It simply shows prefilled message instead of new ...
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 ...
6
votes
2answers
4k 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 ...
2
votes
0answers
387 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. <?...
0
votes
1answer
1k views

How to the Magento 2 Success Message in Open Popup Box

User Product Add to the cart after Success Message is Open to the Popup Box
0
votes
1answer
578 views

Modal Popup Form On Image Click

We want to have a modal popup form on clicking a image or link. Though i achieved this on CMS page using template page(.phtml), I want to use this form on every page, so i am using a static block ...
1
vote
1answer
646 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 ...
2
votes
1answer
841 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?
0
votes
1answer
81 views

Modal PopUp Appears without real error

I'm using the Bitnami Magento Virtual Machine. Virtual Machine. Debian 8 ( with mariadb, php 7.0, apache2 , memcached && more ) The documentation: https://docs.bitnami.com/virtual-machine/...
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/...
0
votes
1answer
603 views

Magento 2: Detect Closed Event On Modal JS [duplicate]

I have created a modal popup using the modal UI component. See below: require( [ 'jquery', 'Magento_Ui/js/modal/modal' ], function( $, modal ) { ...
0
votes
2answers
811 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-...
2
votes
0answers
371 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?
3
votes
1answer
896 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
123 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.
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.
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 ...
2
votes
1answer
727 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=...