Questions tagged [popup]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
15
votes
5answers
12k views

Pop up minicart when I add a product to the cart magento 2

I'm using magento 2.0.7, and what I'm trying to do is to popup the cart(the top right cart ajax minicart) when I add a product to it, Basically trigger it. I have tried to add the "showcart" class to ...
6
votes
5answers
12k views

magento 2 js modal popup close event

require( [ 'jquery', 'Magento_Ui/js/modal/modal' ], function( $, modal ) { var options = { ...
6
votes
1answer
8k 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 ...
6
votes
2answers
7k 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/...
6
votes
2answers
5k views

How to close modal popup by clicking outside the modal-content in Magento 2

I have created a popup successfully by using Magento 2 modal code as i added below but now i want to close the popup even customer click on outside the pop-up or blur area. Is there any existing ...
6
votes
3answers
772 views

Guest can't create product programtaically [ similar to wishlist ]

If the Registered user click on "save design" button we are creating new product. Issue : But if guest user click on "save design" button, we are displaying pop up box to register or login. once ...
6
votes
2answers
3k views

How to create a popup window in admin panel?

How to create a popup window in admin panel? I want to open a popup window when a custom button on the sales/order page is clicked to show details to the customer.
4
votes
3answers
4k views

Removing Header and Footer from Magento popup

With the reference from my yesterday question CODE, now I am able to show the send mail to friend in a popup with the below code in test.phtml( set it via local.xml) test.phtml <?php if ($this-&...
4
votes
1answer
1k views

Display Popup in magento admin Dashboard

As you all are aware of, Magento shows a popup on the new version release if the current magento version is below the latest version. I want to develop a similar type of popup as soon as user logs in ...
4
votes
1answer
954 views

CE 1.9.1 - checkout in lightbox/popup

I know that this is a silly question, and ignores all UX practices, but I have a requirement to call the OneStepCheckout from LotusBreath into a lightbox or popup. Is this possible? Last resort ...
4
votes
0answers
581 views

popup in admin grid magento 2

I am using admin grid where I have product grid. In product grid I have action as of now this is link redirecting to new page. But I want when I click on link it open as popup. Like when we adding ...
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.
3
votes
2answers
2k views

is it possible to create a popup contact form from a product button

How would I go about creating a simple popup from a 'view.phtml' on a product page that would popup 'form.phtml' from template/contacts. I am trying to create a free quote button on a product page, ...
3
votes
2answers
2k views

create a pop up to print the product page in magento

i have a example of what i exactly want, on a magento website http://www.strollers.ro/ on a product page, we have a link(first print button), which redirect to the same page in a pop up, with a print ...
3
votes
1answer
2k views

Show Pop Up when click on Add to cart Magento 2

Is there any mistake in this code or file structure ? link i followed what i did 1)app/code/SomeName/AddCartPopUp/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::...
3
votes
1answer
3k 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 /** * ...
3
votes
3answers
2k views

Success message in popup

I have a frontend form in my custom module. On submitting the form,I want to display the success message in a popup with some custom content. How is it possible? Please help. This is my controller. ...
3
votes
1answer
96 views

How to add multiple products on clicking add power button

I want to know how to add multiple products as a popup on clicking addpower button.. The process we select a frame and then add a power to it . So, once we click on add to power a popup displays with ...
3
votes
0answers
407 views

Magento 2 newsletter popup disable for mobile [closed]

I have modified the content of the newsletter popup in my Magento 2 site with porto theme enabled. I was able to update the content from the Admin->Configuration->porto->setting But I want the popup ...
3
votes
1answer
1k views

Magento 2 jQuery Modal Not displaying in center

I'm new to Magento 2. For homepage popup i have added below code <div id="popup-modal"> Test Data </div> <script> require(['jquery', 'Magento_Ui/js/modal/modal'], ...
2
votes
3answers
6k 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-...
2
votes
1answer
167 views

Magento 2 : Creating popup

I want to show a popup window as soon as user logged into store. I want to show that popup only for some customer (like premium).
2
votes
2answers
689 views

Show a popup in form submit

I have a custom module with a frontend form. How is it possible to show a popup after submitting the form? Please give a solution. Any help would be appreciated.
2
votes
1answer
838 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=...
2
votes
2answers
1k views

custom message based on total for free delivery

Is it possible to display a message in a pop-up box or alert on the cart page when a customer is close to the free delivery threshold i.e. "Spend another £5 and you qualify for free delivery"
2
votes
1answer
121 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 (...
2
votes
2answers
451 views

Display Newsletter POP UP when customer leave page issue

We will show newsletter popup when customers leave the site Instead of showing popup on customers visit the site: When customer is going to close the website? When customer is going to go to another ...
2
votes
1answer
1k views

prototype window pop up document.observe function error. TypeError: $$(…)[0] is undefined

I keep getting this error and my lack of JS knowledge is not helping. I ripped this code from another post. function showPopup(sUrl, id) { oPopup = new Window({ id: id, className:...
2
votes
1answer
186 views

Review form in pop-up not saving data

I want to display review form in pop-up window. I copied Form.php file from vendor/module-review/Block/Form.php to app/Company/Review/Block/Form.php Added below code in app/design/frontend/Company/...
2
votes
2answers
859 views

Not able to translate OK and cancel buttons in confirmation popup minicart

After adding an item into cart if we goto mini cart and click on remove item a confirmation popup with Ok and Cancel option will appear. I am not able to translate the Ok and Cancel buttons. Please ...
2
votes
1answer
550 views

Email id and password validation not working in pop up

once we click on button in product view page we are displying pop up form to login or Register, here "email" & "password" validation is not working. if we enter wrong email id and password , still ...
2
votes
1answer
857 views

Display message in pop up instead of redirecting to another page

once registered user click on button in view page we are creating new product and displaying that information in pop up as below button code : [ full code : https://pastebin.com/da60SSWH ] <...
2
votes
1answer
774 views

How to show popup on all pages

I am working on magento 2.1 extension in which i have to show popup on all pages. I have write a code for popup which is showing on only one page but i want to apply that code on all pages.
2
votes
1answer
417 views

How to get Magento Currency Selector as a pop-up window

The Currency Selector is already there in header. But I would like to have it as a pop-up window, where customers can choose their desired currency. Is it possible?
2
votes
0answers
49 views

Configurable product will not redirect to product view page after click on add to cart

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 ...
2
votes
2answers
40 views

Where i can find these 2 buttons in magento 2 i want to translate these buttons

Where i can find these 2 buttons in magento 2 i want to translate these buttons
2
votes
0answers
37 views

Mobile responsive popup for minicart [closed]

Is there any way to disable the minicart dropdown and activate the responsive popup when in mobile version?
2
votes
0answers
127 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
0answers
404 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 ...
2
votes
0answers
1k views

Where to add Mailchimp Subscriber Popup code in magento

I apologize if this question has been posted before, but I checked all over google and could not find anything. I am trying to add the Mailchimp subscriber popup to my homepage, but cannot figure out ...
1
vote
1answer
3k views

Magento2 : Pop up on page load in magento home page

I thought there would be some support for the pop up in the magento but did not succeed. I want to show the Email subscription popup on the page load on the home page. Second thing is i am not using ...
1
vote
2answers
88 views

Magento 2.3.3 create popup

How to create a popup? I want to create a popup for every page unless the customer clicked close. I want to show a popup with the cms block content. I am not sure what to do or how to start I have ...
1
vote
2answers
7k views

Cannot call methods on modal prior to initialization; attempted to call method 'openModal'

This error is generated when i want to show popup when page load in magento2. Here I mentioned code of popup. In popupWidth and popupHeight there are height and width value store. require(['...
1
vote
2answers
602 views

Popup on `Add to Cart` Button

Put Popup On Add to Cart Button and If Add to Cart Button Clicked than First Check Customer is Loggedin or Not? And If not Loggedin Than Login Form should be open in Popup. Can Any One Help me? Any ...
1
vote
2answers
1k views

Wishlist redirect to popup login

I have a popup Login/register. But when i click "add to wishlist" when not logged in it redirects me to a standard login page. I would like to change it to the login popup. This is the header login/...
1
vote
2answers
63 views

Display message by popup in magento 2

I have a module to download a file on S3 by magento 2. When I click button download, it will down a file csv, now I want if this file does not exist so display a popup message on screen by 1 ...
1
vote
4answers
69 views

How to get all products of the Cart on HomePage. Magento2

I'm trying to get all the products of the cart for that I'm trying use Magento\Checkout\Model\Cart; $this->_cart = $cart; public function getCartProducts(){ $itemsCollection = $this->...
1
vote
1answer
65 views

How to Create Custom cookie in popup Magento 2

I create custom popup with custom cookie and when page is load my cookie have dot befor domain name. How remove this dot?
1
vote
1answer
438 views

SERIOUS HELP NEEDED removing “don't show this again” checkbox from newsletter {magento-2}

i want to remove the checkbox of "dont show this popup again" and do some change to display popup only one time. currently, it is displaying every time i refresh the page to jump to another page. here ...
1
vote
1answer
986 views

Magento:Terms and Condition in Popup

I have enabled terms and conditions in the backend to show the terms and condition content on the checkout page. I want to show the terms and condition content in a pop-up. ie, if "I agree to the ...