How to open a 600x400 pop up window, and show a static .html file, from a theme .phtml file?Converting 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 :-(

Did Henry V’s archers at Agincourt fight with no pants / breeches on because of dysentery?

When India mathematicians did know Euclid's Elements?

Does jamais mean always or never in this context?

What word means to make something obsolete?

How to verbalise code in Mathematica?

Has any spacecraft ever had the ability to directly communicate with civilian air traffic control?

Please, smoke with good manners

Why does nature favour the Laplacian?

Multiple options for Pseudonyms

How can I get precisely a certain cubic cm by changing the following factors?

TikZ how to make supply and demand arrows for nodes?

When did stoichiometry begin to be taught in U.S. high schools?

Sci-fi novel series with instant travel between planets through gates. A river runs through the gates

Stark VS Thanos

How to stop co-workers from teasing me because I know Russian?

Help, my Death Star suffers from Kessler syndrome!

Why do Ichisongas hate elephants and hippos?

You look catfish vs You look like a catfish

Any examples of headwear for races with animal ears?

Can a creature tell when it has been affected by a Divination wizard's Portent?

Why is current rating for multicore cable lower than single core with the same cross section?

Colliding particles and Activation energy

Why do computer-science majors learn calculus?

How deep to place a deadman anchor for a slackline?



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


Converting 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;








1















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






















  • 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

















1















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






















  • 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













1












1








1








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

125216




125216












  • 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,16731865




7,16731865










answered Oct 4 '16 at 10:30









Dhiren VasoyaDhiren Vasoya

4,54251844




4,54251844












  • 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

Sum ergo cogito? 1 nng

419 nièngy_Soadمي 19bal1.5o_g

Queiggey Chernihivv 9NnOo i Zw X QqKk LpB