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 :-(
How would I use different systems of magic when they are capable of the same effects?
How to use @AuraEnabled base class method in Lightning Component?
What's the difference between using dependency injection with a container and using a service locator?
What is the ongoing value of the Kanban board to the developers as opposed to management
Mistake in years of experience in resume?
How long after the last departure shall the airport stay open for an emergency return?
A strange hotel
finding a tangent line to a parabola
As an international instructor, should I openly talk about my accent?
Multiple fireplaces in an apartment building?
Check if a string is entirely made of the same substring
"Rubric" as meaning "signature" or "personal mark" -- is this accepted usage?
How to open locks without disable device?
Are all CP/M-80 implementations binary compatible?
Is there any hidden 'W' sound after 'comment' in : Comment est-elle?
Is Bran literally the world's memory?
How do I check if a string is entirely made of the same substring?
All ASCII characters with a given bit count
France's Public Holidays' Puzzle
Is a 5 watt UHF/VHF handheld considered QRP?
Suing a Police Officer Instead of the Police Department
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?
Error: Syntax error. Missing ')' for CASE Statement
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♦ 5 hours 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♦ 5 hours 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
125216
125216
bumped to the homepage by Community♦ 5 hours 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♦ 5 hours 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