How to open a 600x400 pop up window, and show a static .html file, from a theme .phtml file? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar ManaraConverting from 1.7 to 1.9 and cannot get RWD theme to workMagento 2 cutom theme is not deployedin CheckOut form have states show as abbreviations not full state nameMagento2 Add block to theme for custom phtml fileMagento 2 default theme?Magento 1.9: Homepage FilterproductsMagento 2 tries to load old theme on category pagesMagento 2 Knockout XML->PHTML->JS->HTMLMagento2.3 - Layout Updates in Child Theme don't workMagento 2.3 and FancyBox doesn't work :-(

Need of separate security plugins for both root and subfolder sites Wordpress?

Does Mathematica have an implementation of the Poisson Binomial Distribution?

Password Generator in batch

A strange hotel

Implementing 3DES algorithm in Java: is my code secure?

What is this word supposed to be?

"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?

Co-worker works way more than he should

What is ls Largest Number Formed by only moving two sticks in 508?

As an international instructor, should I openly talk about my accent?

What was Apollo 13's "Little Jolt" after MECO?

Are all CP/M-80 implementations binary compatible?

How do I check if a string is entirely made of the same substring?

Can you stand up from being prone using Skirmisher outside of your turn?

Could moose/elk survive in the Amazon forest?

How to open locks without disable device?

Is this homebrew racial feat, Stonehide, balanced?

Is Electric Central Heating worth it if using Solar Panels?

Could Neutrino technically as side-effect, incentivize centralization of the bitcoin network?

Second order approximation of the loss function (Deep learning book, 7.33)

I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?

AI positioning circles within an arc at equal distances and heights

Why didn't the Space Shuttle bounce back into space many times as possible so that it loose lot of kinetic energy over there?

What is "leading note" and what does it mean to "raise a note"?



How to open a 600x400 pop up window, and show a static .html file, from a theme .phtml file?



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraConverting from 1.7 to 1.9 and cannot get RWD theme to workMagento 2 cutom theme is not deployedin CheckOut form have states show as abbreviations not full state nameMagento2 Add block to theme for custom phtml fileMagento 2 default theme?Magento 1.9: Homepage FilterproductsMagento 2 tries to load old theme on category pagesMagento 2 Knockout XML->PHTML->JS->HTMLMagento2.3 - Layout Updates in Child Theme don't workMagento 2.3 and FancyBox doesn't work :-(



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I'm using Magento 1.9 with the latest version of Ultimo Theme.



We used to use FancyBox to show some static .html files, from template .phtml files. But that does not work anymore, after upgrading to latest version of Ultimo Theme.



Is there any other way to show a simple static .html file, in a 600x400 popup window in Magento 1.9, using the Ultimo Theme?



Thanks,










share|improve this question














bumped to the homepage by Community 12 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Yes It is possible to show static .html file in popup window. Can you specify where is your .html file in magento?

    – Dhiren Vasoya
    Oct 4 '16 at 7:44











  • The file exists in /public/help/sizes.html

    – Alldo
    Oct 4 '16 at 7:48











  • So in browser you can access this file like this : domain.com/help/sizes.html right?

    – Dhiren Vasoya
    Oct 4 '16 at 7:54











  • Yes that's right! :-)

    – Alldo
    Oct 4 '16 at 9:29

















0















I'm using Magento 1.9 with the latest version of Ultimo Theme.



We used to use FancyBox to show some static .html files, from template .phtml files. But that does not work anymore, after upgrading to latest version of Ultimo Theme.



Is there any other way to show a simple static .html file, in a 600x400 popup window in Magento 1.9, using the Ultimo Theme?



Thanks,










share|improve this question














bumped to the homepage by Community 12 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Yes It is possible to show static .html file in popup window. Can you specify where is your .html file in magento?

    – Dhiren Vasoya
    Oct 4 '16 at 7:44











  • The file exists in /public/help/sizes.html

    – Alldo
    Oct 4 '16 at 7:48











  • So in browser you can access this file like this : domain.com/help/sizes.html right?

    – Dhiren Vasoya
    Oct 4 '16 at 7:54











  • Yes that's right! :-)

    – Alldo
    Oct 4 '16 at 9:29













0












0








0








I'm using Magento 1.9 with the latest version of Ultimo Theme.



We used to use FancyBox to show some static .html files, from template .phtml files. But that does not work anymore, after upgrading to latest version of Ultimo Theme.



Is there any other way to show a simple static .html file, in a 600x400 popup window in Magento 1.9, using the Ultimo Theme?



Thanks,










share|improve this question














I'm using Magento 1.9 with the latest version of Ultimo Theme.



We used to use FancyBox to show some static .html files, from template .phtml files. But that does not work anymore, after upgrading to latest version of Ultimo Theme.



Is there any other way to show a simple static .html file, in a 600x400 popup window in Magento 1.9, using the Ultimo Theme?



Thanks,







magento-1.9 theme phtml html popup






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 4 '16 at 5:23









AlldoAlldo

120216




120216





bumped to the homepage by Community 12 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 12 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • Yes It is possible to show static .html file in popup window. Can you specify where is your .html file in magento?

    – Dhiren Vasoya
    Oct 4 '16 at 7:44











  • The file exists in /public/help/sizes.html

    – Alldo
    Oct 4 '16 at 7:48











  • So in browser you can access this file like this : domain.com/help/sizes.html right?

    – Dhiren Vasoya
    Oct 4 '16 at 7:54











  • Yes that's right! :-)

    – Alldo
    Oct 4 '16 at 9:29

















  • Yes It is possible to show static .html file in popup window. Can you specify where is your .html file in magento?

    – Dhiren Vasoya
    Oct 4 '16 at 7:44











  • The file exists in /public/help/sizes.html

    – Alldo
    Oct 4 '16 at 7:48











  • So in browser you can access this file like this : domain.com/help/sizes.html right?

    – Dhiren Vasoya
    Oct 4 '16 at 7:54











  • Yes that's right! :-)

    – Alldo
    Oct 4 '16 at 9:29
















Yes It is possible to show static .html file in popup window. Can you specify where is your .html file in magento?

– Dhiren Vasoya
Oct 4 '16 at 7:44





Yes It is possible to show static .html file in popup window. Can you specify where is your .html file in magento?

– Dhiren Vasoya
Oct 4 '16 at 7:44













The file exists in /public/help/sizes.html

– Alldo
Oct 4 '16 at 7:48





The file exists in /public/help/sizes.html

– Alldo
Oct 4 '16 at 7:48













So in browser you can access this file like this : domain.com/help/sizes.html right?

– Dhiren Vasoya
Oct 4 '16 at 7:54





So in browser you can access this file like this : domain.com/help/sizes.html right?

– Dhiren Vasoya
Oct 4 '16 at 7:54













Yes that's right! :-)

– Alldo
Oct 4 '16 at 9:29





Yes that's right! :-)

– Alldo
Oct 4 '16 at 9:29










1 Answer
1






active

oldest

votes


















0














There are multiple way to show content in popup.



  • You can used Jquery Ajax or Prototype script to fetch the content of
    that static file and display content in popup.

  • Put that static content in either CMS Block or CMS page and called
    that block direct in popup.

For static block use this code :



echo $this->getLayout()->createBlock('cms/block')->setBlockId('block_identifier')->toHtml();


For CMS page use this code :



$page = Mage::getModel('cms/page');
$page->setStoreId(Mage::app()->getStore()->getId());
$page->load('CMS-IDENTIFIER-HERE','identifier'); //EDIT IN THIS LINE
$helper = Mage::helper('cms');
$processor = $helper->getPageTemplateProcessor();
echo $html = $processor->filter($page->getContent());


  • Put that static content in new .phtml file and call that new file
    using this code.


echo $this->getLayout()->createBlock('core/template')->setTemplate('folder/myphtml.phtml')->toHtml();




Choose method according to your requirement.






share|improve this answer

























  • Thanks Dhiren! Sound great! But how do I set the popup window size to 600x400px and remove the address bar and stuff, from the popup window?

    – Alldo
    Oct 4 '16 at 11:57











  • You can set the popup size by style sheet or check in admin, Is there functionlity to setup size from there. And if above answer will help you then mark as solution :)

    – Dhiren Vasoya
    Oct 4 '16 at 13:10











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f139199%2fhow-to-open-a-600x400-pop-up-window-and-show-a-static-html-file-from-a-theme%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














There are multiple way to show content in popup.



  • You can used Jquery Ajax or Prototype script to fetch the content of
    that static file and display content in popup.

  • Put that static content in either CMS Block or CMS page and called
    that block direct in popup.

For static block use this code :



echo $this->getLayout()->createBlock('cms/block')->setBlockId('block_identifier')->toHtml();


For CMS page use this code :



$page = Mage::getModel('cms/page');
$page->setStoreId(Mage::app()->getStore()->getId());
$page->load('CMS-IDENTIFIER-HERE','identifier'); //EDIT IN THIS LINE
$helper = Mage::helper('cms');
$processor = $helper->getPageTemplateProcessor();
echo $html = $processor->filter($page->getContent());


  • Put that static content in new .phtml file and call that new file
    using this code.


echo $this->getLayout()->createBlock('core/template')->setTemplate('folder/myphtml.phtml')->toHtml();




Choose method according to your requirement.






share|improve this answer

























  • Thanks Dhiren! Sound great! But how do I set the popup window size to 600x400px and remove the address bar and stuff, from the popup window?

    – Alldo
    Oct 4 '16 at 11:57











  • You can set the popup size by style sheet or check in admin, Is there functionlity to setup size from there. And if above answer will help you then mark as solution :)

    – Dhiren Vasoya
    Oct 4 '16 at 13:10















0














There are multiple way to show content in popup.



  • You can used Jquery Ajax or Prototype script to fetch the content of
    that static file and display content in popup.

  • Put that static content in either CMS Block or CMS page and called
    that block direct in popup.

For static block use this code :



echo $this->getLayout()->createBlock('cms/block')->setBlockId('block_identifier')->toHtml();


For CMS page use this code :



$page = Mage::getModel('cms/page');
$page->setStoreId(Mage::app()->getStore()->getId());
$page->load('CMS-IDENTIFIER-HERE','identifier'); //EDIT IN THIS LINE
$helper = Mage::helper('cms');
$processor = $helper->getPageTemplateProcessor();
echo $html = $processor->filter($page->getContent());


  • Put that static content in new .phtml file and call that new file
    using this code.


echo $this->getLayout()->createBlock('core/template')->setTemplate('folder/myphtml.phtml')->toHtml();




Choose method according to your requirement.






share|improve this answer

























  • Thanks Dhiren! Sound great! But how do I set the popup window size to 600x400px and remove the address bar and stuff, from the popup window?

    – Alldo
    Oct 4 '16 at 11:57











  • You can set the popup size by style sheet or check in admin, Is there functionlity to setup size from there. And if above answer will help you then mark as solution :)

    – Dhiren Vasoya
    Oct 4 '16 at 13:10













0












0








0







There are multiple way to show content in popup.



  • You can used Jquery Ajax or Prototype script to fetch the content of
    that static file and display content in popup.

  • Put that static content in either CMS Block or CMS page and called
    that block direct in popup.

For static block use this code :



echo $this->getLayout()->createBlock('cms/block')->setBlockId('block_identifier')->toHtml();


For CMS page use this code :



$page = Mage::getModel('cms/page');
$page->setStoreId(Mage::app()->getStore()->getId());
$page->load('CMS-IDENTIFIER-HERE','identifier'); //EDIT IN THIS LINE
$helper = Mage::helper('cms');
$processor = $helper->getPageTemplateProcessor();
echo $html = $processor->filter($page->getContent());


  • Put that static content in new .phtml file and call that new file
    using this code.


echo $this->getLayout()->createBlock('core/template')->setTemplate('folder/myphtml.phtml')->toHtml();




Choose method according to your requirement.






share|improve this answer















There are multiple way to show content in popup.



  • You can used Jquery Ajax or Prototype script to fetch the content of
    that static file and display content in popup.

  • Put that static content in either CMS Block or CMS page and called
    that block direct in popup.

For static block use this code :



echo $this->getLayout()->createBlock('cms/block')->setBlockId('block_identifier')->toHtml();


For CMS page use this code :



$page = Mage::getModel('cms/page');
$page->setStoreId(Mage::app()->getStore()->getId());
$page->load('CMS-IDENTIFIER-HERE','identifier'); //EDIT IN THIS LINE
$helper = Mage::helper('cms');
$processor = $helper->getPageTemplateProcessor();
echo $html = $processor->filter($page->getContent());


  • Put that static content in new .phtml file and call that new file
    using this code.


echo $this->getLayout()->createBlock('core/template')->setTemplate('folder/myphtml.phtml')->toHtml();




Choose method according to your requirement.







share|improve this answer














share|improve this answer



share|improve this answer








edited May 10 '18 at 10:56









Rohan Hapani

7,16131865




7,16131865










answered Oct 4 '16 at 10:30









Dhiren VasoyaDhiren Vasoya

4,52751844




4,52751844












  • Thanks Dhiren! Sound great! But how do I set the popup window size to 600x400px and remove the address bar and stuff, from the popup window?

    – Alldo
    Oct 4 '16 at 11:57











  • You can set the popup size by style sheet or check in admin, Is there functionlity to setup size from there. And if above answer will help you then mark as solution :)

    – Dhiren Vasoya
    Oct 4 '16 at 13:10

















  • Thanks Dhiren! Sound great! But how do I set the popup window size to 600x400px and remove the address bar and stuff, from the popup window?

    – Alldo
    Oct 4 '16 at 11:57











  • You can set the popup size by style sheet or check in admin, Is there functionlity to setup size from there. And if above answer will help you then mark as solution :)

    – Dhiren Vasoya
    Oct 4 '16 at 13:10
















Thanks Dhiren! Sound great! But how do I set the popup window size to 600x400px and remove the address bar and stuff, from the popup window?

– Alldo
Oct 4 '16 at 11:57





Thanks Dhiren! Sound great! But how do I set the popup window size to 600x400px and remove the address bar and stuff, from the popup window?

– Alldo
Oct 4 '16 at 11:57













You can set the popup size by style sheet or check in admin, Is there functionlity to setup size from there. And if above answer will help you then mark as solution :)

– Dhiren Vasoya
Oct 4 '16 at 13:10





You can set the popup size by style sheet or check in admin, Is there functionlity to setup size from there. And if above answer will help you then mark as solution :)

– Dhiren Vasoya
Oct 4 '16 at 13:10

















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f139199%2fhow-to-open-a-600x400-pop-up-window-and-show-a-static-html-file-from-a-theme%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Best approach to update all entries in a list that is paginated?Best way to add items to a paginated listChoose Your Country: Best Usability approachUpdate list when a user is viewing the list without annoying themWhen would the best day to update your webpage be?What should happen when I add a Row to a paginated, sorted listShould I adopt infinite scrolling or classical pagination?How to show user that page objects automatically updateWhat is the best location to locate the comments section in a list pageBest way to combine filtering and selecting items in a listWhen one of two inputs must be updated to satisfy a consistency criteria, which should you update (if at all)?

Вунгтау (аеропорт) Загальні відомості | Див. також | Посилання | Навігаційне меню10°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.0833310°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.083337731608Vinh AirportVinh airport facelift improves serviceвиправивши або дописавши їївиправивши або дописавши їїр

Тонконіг бульбистий Зміст Опис | Поширення | Екологія | Господарське значення | Примітки | Див. також | Література | Джерела | Посилання | Навігаційне меню1114601320038-241116202404kew-435458Poa bulbosaЭлектронный каталог сосудистых растений Азиатской России [Електронний каталог судинних рослин Азіатської Росії]Малышев Л. Л. Дикие родичи культурных растений. Poa bulbosa L. - Мятлик луковичный. [Малишев Л. Л. Дикі родичи культурних рослин. Poa bulbosa L. - Тонконіг бульбистий.]Мятлик (POA) Сем. Злаки (Мятликовые) [Тонконіг (POA) Род. Злаки (Тонконогові)]Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Description from Flora of China) [Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Опис від Флора Китаю)]Poa bulbosa L. – lipnice cibulkatá / lipnica cibulkatáPoa bulbosa в базі даних Poa bulbosa на сайті Poa bulbosa в базі даних «Global Biodiversity Information Facility» (GBIF)Poa bulbosa в базі даних «Euro + Med PlantBase» — інформаційному ресурсі для Євро-середземноморського розмаїття рослинPoa bulbosa L. на сайті «Плантариум»