Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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', '...
Rana Zain's user avatar
  • 699
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.
Mitul Vadalia's user avatar
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 ...
Dramorian's user avatar
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 ...
Bayzel's user avatar
  • 187
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 ...
tanh's user avatar
  • 25
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 !!!
Mitul Vadalia's user avatar
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 ...
Nabeel shahbaz's user avatar
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 ...
Jancy Abraham's user avatar
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 ...
Bayzel's user avatar
  • 187
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?
Saravanan DS's user avatar
  • 1,126
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 ...
sky's user avatar
  • 1,397
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 ...
Siranjeevi K S's user avatar
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
MohameD ELQUCHIRI's user avatar
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. ...
Mohit Patel's user avatar
  • 3,968
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.
quickshiftin's user avatar
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\...
Ravindrasinh Zala's user avatar
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.
Dominic Pixie's user avatar
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 ?
Msquare's user avatar
  • 9,328
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 ...
Duggy G's user avatar
  • 193
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 ...
Jackom's user avatar
  • 503
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 ...
skm's user avatar
  • 174
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 ...
User 69's user avatar
  • 145
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 ...
Praveen Negimani's user avatar
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', ...
TheKitMurkit's user avatar
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.
jithin 's user avatar
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-...
Sagar Parikh's user avatar
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, ...
hardik malkani's user avatar
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 ...
hardik malkani's user avatar
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....
Mohit Rane's user avatar
  • 1,964
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.
Ghulam Akbar's user avatar
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 ...
Sagar Parikh's user avatar
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 ...
MichaelHa's user avatar
  • 661
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 ...
Virang Jethva's user avatar
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-...
Miguel Intoy's user avatar
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 ...
Sejal Shah's user avatar
  • 2,183
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.
Nishan than's user avatar
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 (...
coderaiseR's user avatar
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 ...
Howliee's user avatar
  • 153
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.
Amy's user avatar
  • 945
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 ...
Mohit Rane's user avatar
  • 1,964
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 ...
Sean Scott's user avatar
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 ...
Cristi's user avatar
  • 143
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. ...
Avesh Naik's user avatar
  • 1,251
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
João Paulo Colombari's user avatar
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.
Dj3's user avatar
  • 101
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="#" ...
Hemangi Patel's user avatar
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/...
dawhoo's user avatar
  • 851
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 ...
Shomita's user avatar
  • 1,123
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/...
Faraz Bashir's user avatar
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 ...
Shoaib Munir's user avatar
  • 9,572