I am new to magento and know only basic thing about it.

I want to show a popup on my page. I just add alert after document.redy event on that .phtml file but the popup wont appear after loading that page. also when I view source code of that file it will not show me my alert code.

i am not getting the point why it happening. can you please help me to solve the issue

  • Have you clear your Magento cache before reloading your page rm -rf var/cache/*? Are other elements in your phtml file appear on your page? – Jonathan Ribas Feb 14 '17 at 12:25
  • whether you are writing this code in the new module? – Nagaraju K Feb 14 '17 at 12:31
  • can you please add code how you add .phtml file – Vaibhav Ahalpara Feb 14 '17 at 12:32
  • please add code that you try to appear popup – Vaibhav Ahalpara Feb 14 '17 at 12:32
  • Give a try to replace $ with jQuery. – anonymous Dec 4 '18 at 5:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.