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 :-(
Could Neutrino technically as side-effect, incentivize centralization of the bitcoin network?
The art of proof summarizing. Are there known rules, or is it a purely common sense matter?
Suing a Police Officer Instead of the Police Department
Multiple options vs single option UI
PIC mathematical operations weird problem
How to translate "red flag" into Spanish?
What is "leading note" and what does it mean to "raise a note"?
Retract an already submitted recommendation letter (written for an undergrad student)
Is a 5 watt UHF/VHF handheld considered QRP?
A strange hotel
How to find the right literary agent in the USA?
Does Mathematica have an implementation of the Poisson Binomial Distribution?
My admission is revoked after accepting the admission offer
Arriving in Atlanta after US Preclearance in Dublin. Will I go through TSA security in Atlanta to transfer to a connecting flight?
I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?
Why is this method for solving linear equations systems using determinants works?
What *exactly* is electrical current, voltage, and resistance?
Is it acceptable to use working hours to read general interest books?
Is Electric Central Heating worth it if using Solar Panels?
Israeli soda type drink
How to keep bees out of canned beverages?
Is Bran literally the world's memory?
Does Feeblemind produce an ongoing magical effect that can be dispelled?
Additive group of local rings
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;
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
bumped to the homepage by Community♦ 24 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
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
bumped to the homepage by Community♦ 24 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
add a comment |
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
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
magento-1.9 theme phtml html popup
asked Oct 4 '16 at 5:23
AlldoAlldo
120216
120216
bumped to the homepage by Community♦ 24 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♦ 24 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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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