Questions tagged [modal-popup]
The modal-popup tag has no usage guidance.
135
questions
1
vote
0
answers
560
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 ...
0
votes
0
answers
2k
views
Magento 2: How to Pass popup modal form data to the custom controller?
I want to redirect to the custom controller on the Continue button in the popup modal form.
Vendor/Module/etc/frontend/routes.xml
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3....
2
votes
0
answers
378
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 ...
0
votes
1
answer
241
views
Add products to cart from modal popup
I am showing accessory products on popup and it appears just after adding actual product in cart.
1
vote
1
answer
851
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
0
answers
66
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 ...
0
votes
1
answer
486
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
1
answer
727
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
1
answer
2k
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
1
answer
2k
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 ...
1
vote
1
answer
3k
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
1
answer
312
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
2
answers
4k
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
1
answer
426
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/...
1
vote
0
answers
108
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
2
answers
626
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
1
answer
550
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
2
answers
2k
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.
1
vote
1
answer
965
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 ...
2
votes
1
answer
4k
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
1
answer
1k
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
1
answer
108
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 ...
1
vote
3
answers
3k
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....
3
votes
1
answer
1k
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
0
answers
24
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
1
answer
541
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
1
answer
3k
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
1
answer
831
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="#" ...
5
votes
1
answer
1k
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
1
answer
3k
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 ...
2
votes
0
answers
3k
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
0
answers
257
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
0
answers
205
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 ...
2
votes
2
answers
931
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
0
answers
437
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
1
answer
2k
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 ...
0
votes
2
answers
2k
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
1
answer
600
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
1
answer
746
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
0
answers
173
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
0
answers
28
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
2
answers
2k
views
How to remain modal popup open by clicking outside the modal-content in Magento 2
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
0
answers
146
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
2
answers
2k
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,...
2
votes
1
answer
2k
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
1
answer
2k
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([
'...
2
votes
1
answer
1k
views
Magento (1.x) : How to show bootstrap modal popup
Is there a way to open the 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
1
answer
312
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
2
answers
895
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-...
2
votes
1
answer
1k
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 ...