All Questions
Tagged with modal-popup magento2
78 questions
0
votes
0
answers
52
views
Show Related products in the popup modal
I am using this code to show the modal when product add to cart
define([
'jquery',
'mage/translate',
'underscore',
'Magento_Catalog/js/product/view/product-ids-resolver',
'...
1
vote
1
answer
158
views
Custom Success or Error message in the popup in Magento 2.4
I am creating the functionality for showing error or success messages in the custom popup box after order placement in Magento 2.4. Any reference or help is appreciated.
0
votes
1
answer
135
views
How to render default Magento registration form in popup?
I have a button "Registration for dealer" on customer/account/create/ page that outputs a popup. My goal is to render in the popup the default customer registration form that's fully ...
0
votes
1
answer
133
views
Magento2: get values to databse
I'm trying to get values from the popup model of radio buttons into the database and I'm not getting that, what am I doing wrong?
BLOCK FILE
<?php
namespace vendor\ThreeYearOrders\Block;
use ...
0
votes
1
answer
470
views
Magento 2: My popup modal is not showing on all pages, it's only showing on home page
It's only on the homepage
When I go to another page it doesn't show anything and gives an error
Here are my files
Here is my modal_popup.js file:
And here is my requirejs-config.js file :
I put ...
1
vote
2
answers
407
views
Add Success Message in Custom Popup for Add to Compare in the listing or Category Page in Magento 2
I want to add custom pop-up in category page for showing success or error message for add to compare button.
Any help is appreciated.
Thanks in Advance !!!
0
votes
1
answer
107
views
How to Display Product qty in Popup
I want to display Magento product qty in the popup. when the customer clicks on add to cart button the popup shows the product available in stock and if the product is not available popup displays the ...
0
votes
1
answer
409
views
Magento 2 : Pass a value to the modal popup from UI Form
I am creating a slider module. I am using the same structure of the customer address form. Add New button will open a modal and show a form. From that, I can upload the image and save it.
Now I am ...
1
vote
0
answers
24
views
show caution text if customer insert larger quantity
If a customer inserted a quantity that is larger than the quantity of selected store echo text below the input type [qty] that says "The requested qty is larger than the quantity on this selected ...
0
votes
1
answer
335
views
In Magento2.4, How to add Terms and condition with modal popup in registration page?
In Magento 2.4.x EE, How to add Terms and condition with modal popup in customer registration page?
1
vote
2
answers
1k
views
Magento 2 custom popup not work when click of 'Proceed to Checkout'
I have created the custom Popup and open the popup when click on process to checkout in minicart.
login popup not work when click on 'Proceed to Checkout' after the login customer account.It's work ...
5
votes
0
answers
435
views
How to pause wistia video while closing the modal popup?
I added a custom image in the product view page gallery section. While clicking on the custom image section a popup will throw. On that popup, we can play a wistia video (refer to the attached ...
0
votes
0
answers
55
views
Integrate zoom in product Photos modal in Magento2
How Can I integrate zoom in product sheet modal in magento 2
1
vote
2
answers
1k
views
How to show configurable product options in popup in Magento 2
I have create one popup. In popup get configurable product collection and it working fine. But i have faced one issue. In configurable products collection configurable product options not showing. ...
0
votes
2
answers
2k
views
Magento2 : How to show custom notice message in checkout page on page load?
I want to display Custom Notice message in Popup on page load in Checkout page.
0
votes
0
answers
178
views
How to add My Order section reorder link open popup model in magento 2
How to add My Order section reorder link open popup model in magento 2
app/code/Vendorname/Modulename/view/frontend/templates/order/history.phtml
<?php
/** @var \Magento\Sales\Block\Order\...
0
votes
1
answer
1k
views
Magento 2 admin modal popup
Looking for an example on how to create admin modal similar to what's used in advanced pricing on product edit. Does anyone have an example with basic block logic inside.
1
vote
0
answers
165
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 ?
0
votes
2
answers
2k
views
Multiple Modal Popups on same page
I have a 2 links on the product page which both need the modal popup component attaching to them, I have 1 working fine but If I try to add the same script for the 2nd one they both stop working
This ...
0
votes
0
answers
212
views
Magento 2 - Change format of authentication-popup.html
I overridden authentication popup of Magento 2 in my custom theme. I discovered that the file that is called for the popup is with the extension .html (authentication-popup.html). This way I can't add ...
1
vote
1
answer
445
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 ...
0
votes
0
answers
286
views
Adding a Product Grid in Dynamic Rows
I want to add a product grid in Dynamic Rows using Modal what I have done so far is
I have added this button using Adding Modal in Ui Component
add added a Product Grid in Modal
But I am not ...
0
votes
1
answer
7k
views
Magento2 - How to clear data from jQuery modal popup after closing modal?
Here am using jQuery popup in my .phtml file on the first run it sending data properly, on send time it fetching old data as-swell as new data. So how to prevent this condition.
Code:
<div ...
1
vote
1
answer
2k
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
1
answer
812
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.
0
votes
1
answer
2k
views
Magento 2:Modal window not working in Product edit page
I am trying to create custom tab and have a button which on click its trigger modal window, I tried to create by following this method:https://www.mageworx.com/blog/2016/08/how-to-create-a-modal-...
1
vote
1
answer
3k
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, ...
3
votes
1
answer
3k
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 ...
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....
0
votes
1
answer
362
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
1k
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
78
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
575
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 ...
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
370
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
830
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
2
answers
3k
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.
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
2
answers
2k
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 ...
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
26
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
659
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
4k
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
1k
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 ...
1
vote
0
answers
319
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/...
2
votes
2
answers
1k
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 ...