Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The tag has no usage guidance.

0
votes
0answers
41 views

Load custom product listing in modal popup Magento 2

I got a url to my custom product listing. <?xml version="1.0"?> <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/...
0
votes
0answers
17 views

Load ajax after using observer

I have added this JS code inside catalog-add-to-cart.js : var popup = $('<div class="add-to-cart-dialog ajoutPanierModal"/>').html('<span>Le produit a été ajouté au panier.</span>')...
1
vote
1answer
51 views

Adding a modal after adding to cart [duplicate]

What would be the best way to create a modal after adding a product to cart (Showing "continue shopping" or "checkout")? I though about using just JS with event. But, I don't know how to concile this ...
0
votes
0answers
16 views

Change field type on customer modal login popup (from email to text)

I'm kinda newbie in magento 2, currently using 2.2.5 (bitnami stack). I need to login through an API, so i've created a plugin. It checks an ID number instead of email and it's working great. My ...
0
votes
0answers
22 views

Magento 2 adding textbox to modal widget

I want a text box in my modal widget in custom js file and get the value of that text box on button click of that modal. require([ 'jquery', 'jquery/ui', 'Magento_Ui/js/modal/modal' ], ...
0
votes
0answers
20 views

How to trigger Admin Backend UiComponent Modal Implementation

I have modal configured in my listing page xml as below <listing> .... <modal name="dispatch_email_modal"> <argument name="data" xsi:type="array"> <...
0
votes
0answers
32 views

Hide modal while loading

We had the third party create a website for us and on one of the pages, as the page content is loaded, the content from one of the modals is visible. Once the page has finished loading it disappears ...
4
votes
1answer
1k 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 ...
0
votes
0answers
25 views

Button with modal in product page

in magento 1 i was able to put a bootstrap modal with a video in the product page, thing that it is not working in magento2 . I tried to use the magento modal but it did not work to. how can i handle ...
1
vote
1answer
98 views

Video keeps playing in background after closing popup

I have a button that when clicked, pops up a video content that can be played. The problem is that if I close the popup while the video is playing, it does not stop and keeps playing in the background....
0
votes
0answers
136 views

An Error while add a complex component modal as insertlisting for add dynamic row in my ui-component admin form

Facing an Error while add a complex component modal as insertlisting for add dynamic row in my ui-component admin form: Error is as below: "Warning: DOMDocument::loadXML(): xmlParseEntityRef: no ...
3
votes
1answer
300 views

Add Video button not working on product page

I'm having issues with the add video button on the product pages in Magento 2.2.1. The button doesn't open the modal window even though I have added my Youtube api key and its enabled. I've done ...
0
votes
1answer
886 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 ...
0
votes
1answer
202 views

Magento 2: Set custom class on modal background

How do I add a custom class to the background of a modal widget in Magento 2? I'm able to change the class for the main modal <aside> with the modalClass config property but want to change the ...
0
votes
0answers
162 views

prevent cookie expiration after ending session/closing browser magento 2

I have made a modal for users to tell about new shop. I have added a simple value for cookie to prevent poping up modal every time users open the page. The modal works fine as long as the user doesn'...
0
votes
1answer
408 views

How Can I Open the Modal Dialog Box in Checkout Authentication?

I want to make it so that when any User buys a product, when checkout is clicked on then the first modal dialog box opens to either login or use a guest account to purchase the product.
0
votes
1answer
413 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 ) { ...
1
vote
0answers
416 views

Magento 2 Modal pop up close button not working after print action [closed]

I have enabled a modal pop up on clicking an image. The popup is showing a set of gallery images. The pop up has two buttons:one for close and other for print(to print the contents in pop up). When ...
4
votes
4answers
6k views

magento 2 js modal popup close event

require( [ 'jquery', 'Magento_Ui/js/modal/modal' ], function( $, modal ) { var options = { ...
2
votes
1answer
1k views

Magento 2 :Embed youtube video in modal pop up

I am using a modal pop up. I want to embed a youtube video and a field to enter the code in the pop up. I ahve already dispalyed some content in the pop up. This is my phtml file <?php /** * ...
1
vote
2answers
728 views

Magento 2.1 popup modal

I have a popup modal which onclicks opens , I want this modal to be closed when I submit the form and get the ajax success request. I tried with success: function(data) { //console.log('...
1
vote
0answers
178 views

Magento 2 - Enable the authorisation login popup modal

How do I activate the authorize Login popup modal for Magento 2? Like shown below. Is this a Extension or can I activate this by configuration or by edits in my Theme?
6
votes
2answers
742 views

remove unsecure content from modals-wrapper

Out of the box Magento 2 adds <div class="modal-content" data-role="content"> div at the end of the code. I am not sure what it is supposed to do. But it contains a login form with password ...
2
votes
1answer
1k views

I would like to remove the login pop up from the checkout(Magento 2)

I would like to remove the login pop up from the checkout: The login appears on the checkout page(like this) I wanna remove this option from the checkout page. What is the best way to achieve this?...
2
votes
1answer
624 views

Is there a way to completely destroy a modal in Magento 2

I have created a modal with some dynamic content (input fields) and a save button to save input field data in database and I'm opening that modal on a button click. Now when I fill all the input ...
4
votes
0answers
586 views

How to dynamically load phtml file on a button click in Magento 2

I have a phtml file view.php and its block class View.php. I need to show that phtml on a modal on checkout page and to do that I'm preloading that phtml file using following command <div id="...
9
votes
2answers
5k views

How to create a Magento 2 Modal popup that cannot be closed?

I'm trying to create a modal popup that cannot be closed. It has a button that takes you to the next page by clicking on it, but I don't want users to be able to close it. The modal popup can be ...
0
votes
1answer
416 views

module data is not showing on the frontend

I am trying to get the my custom module on front end from database but it not showing any thing but just the blank module page: My controller: <?php class ...
0
votes
1answer
61 views

How to check if user entered wrong credentials?

I've edited tm/firecheckout/checkout/link.phtml to display a modal window in shopping cart when the user is not logged in. I've set it up that when a user enters the wrong credentials (...
2
votes
0answers
993 views

Magento 2 - Dynamic rows based on related products modal grid on custom form with tabs

I am working on magento 2.1 backend module. Basically backend part is a form that contain tabs. I ahve here some standard inputs but also some dynamic rows etc. Everything is working fine except the ...
0
votes
1answer
902 views

Trigger modal after placing a product in minicart on Magento 2

I need to show a modal after a product is placed inside cart. This is what i have so far. This is my default.xml <body> <referenceContainer name="content"> <block ...
27
votes
2answers
1k views

How can I change an existing modal in Magento 2

I'm trying to change the behaviour of a Modal (not Model) in Magento 2. The modal in question is advanced_inventory_modal, declared in module-catalog-inventory/view/adminhtml/ui_component/product_form....
1
vote
1answer
588 views

Magento 2.1 Custom Product Options in Slideout Modal

I am attempting to extend the custom options on a product. I'd like to add a number of fields that would be too much to display in the same row as the rest of the custom options. They are completely ...
1
vote
3answers
2k views

How to close a modal in Magento 2

I have a modal created when user clicks on Add to Cart button and there are couple of products that are shown in that modal and their corresponding Add to Cart buttons. Now I want to close the Modal ...
6
votes
2answers
2k views

Set custom class for Modal popup Magento 2

I have different popups and each popup has different styles, Anyone know how I can restyle each Modal by adding custom class or something. Here one of my modal popup code: <script type="text/...
3
votes
1answer
686 views

Modals - How to specify custom template for modal

How can I specify an custom template for an modal? I tried to specify the type and customTemplate, but no luck. The template file is called modal-gallery.html and is placed on the same path as the ...
8
votes
1answer
1k views

Component vs Widget

In Magento 2 what is the difference between a component and a widget? For example there is a modal component and a modal widget, they both appear to do the same thing. Component The Modal UI ...
16
votes
5answers
25k views

how to create a form popup-modal in magento2

I am new to magento2. i'm trying to create a popup-modal for my new form. I have created a popup which works fine but unable to create a modal. Following is the code for popup which loads on page ...