Questions tagged [popup]

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

Filter by
Sorted by
Tagged with
15
votes
5answers
10k 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
1answer
5k 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
5k 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
4k 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
735 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.
5
votes
5answers
10k views

magento 2 js modal popup close event

require( [ 'jquery', 'Magento_Ui/js/modal/modal' ], function( $, modal ) { var options = { ...
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
898 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
1answer
118 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
1k 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
2k 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
2answers
1k 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
95 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
121 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
0answers
466 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 ...
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
2answers
656 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
714 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
2answers
387 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
999 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
34 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
1answer
152 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
317 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
460 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
695 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
655 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
404 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
2answers
28 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
26 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
111 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
337 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
2answers
5k 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
2k 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
586 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
4answers
45 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
55 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
271 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
814 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 ...
1
vote
1answer
387 views

Fatal error Call to a member function addJs() on a non-object

I am trying below code for login to site after entering email & password in pop up. Login is working. but pop up is not hiding after successfull login. protected function _createProduct() { ...
1
vote
1answer
303 views

hide pop up box with controllers help if user enter correct email id and password

in pop up box, we are displaying login form. once user enter wrong email id or password, we are displaying message : Invalid login/pw , but once they enter correct details and click on login button, ...
1
vote
1answer
2k views

How to display fancybox popup when page load in magento2

I want to display popup using fancybox when page load in magento2 . How is it possible ? Please help me.... <!DOCTYPE html> <html> <head> <script type="text/javascript"> ...
1
vote
2answers
802 views

How to show popup?

I am using Custom Message Based on Total for free Delivery Module on my site, but it's showing , its only showing on checkout/cart page. "How can I show module instead of the only checkout page to ...
1
vote
1answer
266 views

How do I make the newsletter popup don't close until email is supplied?

Is there a way in magento to make a pop-up newsletter which will not close until there is an email supplied? How can I do this? Example. http://www.peopleperhour.com/hourlies the grey area is not ...