Custom Form in “Fancybox” PopupMake a Popup window showup on clicking a html linkcreate a popup from a blockHow to add multiple products on clicking add power buttonmagento 2 js modal popup close eventSuccess message in popupMagento:Terms and Condition in PopupModal Popup Form On Image ClickMagento 2: Place an Order Checkout button popup boxpopup in admin grid magento 2Open a popup with form on click of link/button on customer edit form at back end Magento 2Magento 2 Show custom grid on popup at admin side
Birthday girl's casino game
How can I get a file's size with C++17?
Does a reference have a storage location?
Fine-tuning parameters for existing methods
Bypass with wrong cvv of debit card and getting OTP
SQL Server error 242 with ANSI datetime
Is it possible to spoof an IP address to an exact number?
Should I cross-validate metrics that were not optimised?
Contributing to a candidate as a Foreign National US Resident?
HTTPmodule or similar for SharePoint online
Do the 26 richest billionaires own as much wealth as the poorest 3.8 billion people?
Can you move between the attacks of a Twinned Booming Blade
How should characters be punished for failing faction missions?
What is the difference between a historical drama and a period drama?
Need SQL Server VLAN advice.. is it best practice to have all SQL Servers under 1 VLAN/network zone?
Was Wolfgang Unzicker the last Amateur GM?
Show that there are infinitely more problems than we will ever be able to compute
Solving Equations with HeavisideTheta Functions
Is my background sufficient to start Quantum Computing
Why did moving the mouse cursor cause Windows 95 to run more quickly?
How can solar sailed ships be protected from space debris?
Go function to test whether a file exists
gzip compress a local folder and extract it to remote server
Blood-based alcohol for vampires?
Custom Form in “Fancybox” Popup
Make a Popup window showup on clicking a html linkcreate a popup from a blockHow to add multiple products on clicking add power buttonmagento 2 js modal popup close eventSuccess message in popupMagento:Terms and Condition in PopupModal Popup Form On Image ClickMagento 2: Place an Order Checkout button popup boxpopup in admin grid magento 2Open a popup with form on click of link/button on customer edit form at back end Magento 2Magento 2 Show custom grid on popup at admin side
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I want to display "fancybox" popup with a custom form and a custom action in button click. I have refered the following link: Make a Popup window showup on clicking a html link.
But where can I add the custom form content to dispaly in popup?
magento-1.9 popup
add a comment |
I want to display "fancybox" popup with a custom form and a custom action in button click. I have refered the following link: Make a Popup window showup on clicking a html link.
But where can I add the custom form content to dispaly in popup?
magento-1.9 popup
create a custom phtml page and write your code in it and call it from on click on button
– BornCoder
Jun 20 '17 at 7:35
I have tried that way. But I was not able to succeed. Could you please show the code for that.I want to display the custom form in fancybox pop up
– Vindhuja
Jun 20 '17 at 7:42
add a comment |
I want to display "fancybox" popup with a custom form and a custom action in button click. I have refered the following link: Make a Popup window showup on clicking a html link.
But where can I add the custom form content to dispaly in popup?
magento-1.9 popup
I want to display "fancybox" popup with a custom form and a custom action in button click. I have refered the following link: Make a Popup window showup on clicking a html link.
But where can I add the custom form content to dispaly in popup?
magento-1.9 popup
magento-1.9 popup
edited Jun 20 '17 at 8:16
sv3n
10.1k6 gold badges25 silver badges57 bronze badges
10.1k6 gold badges25 silver badges57 bronze badges
asked Jun 20 '17 at 7:31
VindhujaVindhuja
7005 silver badges24 bronze badges
7005 silver badges24 bronze badges
create a custom phtml page and write your code in it and call it from on click on button
– BornCoder
Jun 20 '17 at 7:35
I have tried that way. But I was not able to succeed. Could you please show the code for that.I want to display the custom form in fancybox pop up
– Vindhuja
Jun 20 '17 at 7:42
add a comment |
create a custom phtml page and write your code in it and call it from on click on button
– BornCoder
Jun 20 '17 at 7:35
I have tried that way. But I was not able to succeed. Could you please show the code for that.I want to display the custom form in fancybox pop up
– Vindhuja
Jun 20 '17 at 7:42
create a custom phtml page and write your code in it and call it from on click on button
– BornCoder
Jun 20 '17 at 7:35
create a custom phtml page and write your code in it and call it from on click on button
– BornCoder
Jun 20 '17 at 7:35
I have tried that way. But I was not able to succeed. Could you please show the code for that.I want to display the custom form in fancybox pop up
– Vindhuja
Jun 20 '17 at 7:42
I have tried that way. But I was not able to succeed. Could you please show the code for that.I want to display the custom form in fancybox pop up
– Vindhuja
Jun 20 '17 at 7:42
add a comment |
1 Answer
1
active
oldest
votes
1) Create your module form then put the template form in a some phtml something like: app/design/frontend/package/theme/template/form/new-form.phtml.
2) Put this code in the <body> of the fancybox <?php echo $this->getLayout()->createBlock('core/template')->setTemplate('form/new-form.phtml')->toHtml(); ?>
3) The fancybox you can display it where you want,
in app/design/frontend/package/theme/layout/local.xml, you add this piece of code:
<your_layout_handle>
<reference name="root">
<block type="core/template" name="fancy.block" template="path_to_your_file.phtml"/>
</reference>
</your_layout_handle>
then add this one in the file where your to display it:
<?php echo $this->getBlockHtml('fancy.block'); ?>
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%2f179826%2fcustom-form-in-fancybox-popup%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
1) Create your module form then put the template form in a some phtml something like: app/design/frontend/package/theme/template/form/new-form.phtml.
2) Put this code in the <body> of the fancybox <?php echo $this->getLayout()->createBlock('core/template')->setTemplate('form/new-form.phtml')->toHtml(); ?>
3) The fancybox you can display it where you want,
in app/design/frontend/package/theme/layout/local.xml, you add this piece of code:
<your_layout_handle>
<reference name="root">
<block type="core/template" name="fancy.block" template="path_to_your_file.phtml"/>
</reference>
</your_layout_handle>
then add this one in the file where your to display it:
<?php echo $this->getBlockHtml('fancy.block'); ?>
add a comment |
1) Create your module form then put the template form in a some phtml something like: app/design/frontend/package/theme/template/form/new-form.phtml.
2) Put this code in the <body> of the fancybox <?php echo $this->getLayout()->createBlock('core/template')->setTemplate('form/new-form.phtml')->toHtml(); ?>
3) The fancybox you can display it where you want,
in app/design/frontend/package/theme/layout/local.xml, you add this piece of code:
<your_layout_handle>
<reference name="root">
<block type="core/template" name="fancy.block" template="path_to_your_file.phtml"/>
</reference>
</your_layout_handle>
then add this one in the file where your to display it:
<?php echo $this->getBlockHtml('fancy.block'); ?>
add a comment |
1) Create your module form then put the template form in a some phtml something like: app/design/frontend/package/theme/template/form/new-form.phtml.
2) Put this code in the <body> of the fancybox <?php echo $this->getLayout()->createBlock('core/template')->setTemplate('form/new-form.phtml')->toHtml(); ?>
3) The fancybox you can display it where you want,
in app/design/frontend/package/theme/layout/local.xml, you add this piece of code:
<your_layout_handle>
<reference name="root">
<block type="core/template" name="fancy.block" template="path_to_your_file.phtml"/>
</reference>
</your_layout_handle>
then add this one in the file where your to display it:
<?php echo $this->getBlockHtml('fancy.block'); ?>
1) Create your module form then put the template form in a some phtml something like: app/design/frontend/package/theme/template/form/new-form.phtml.
2) Put this code in the <body> of the fancybox <?php echo $this->getLayout()->createBlock('core/template')->setTemplate('form/new-form.phtml')->toHtml(); ?>
3) The fancybox you can display it where you want,
in app/design/frontend/package/theme/layout/local.xml, you add this piece of code:
<your_layout_handle>
<reference name="root">
<block type="core/template" name="fancy.block" template="path_to_your_file.phtml"/>
</reference>
</your_layout_handle>
then add this one in the file where your to display it:
<?php echo $this->getBlockHtml('fancy.block'); ?>
edited Jun 20 '17 at 8:14
answered Jun 20 '17 at 8:08
PЯINCƏPЯINCƏ
8,5073 gold badges11 silver badges48 bronze badges
8,5073 gold badges11 silver badges48 bronze badges
add a comment |
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%2f179826%2fcustom-form-in-fancybox-popup%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
create a custom phtml page and write your code in it and call it from on click on button
– BornCoder
Jun 20 '17 at 7:35
I have tried that way. But I was not able to succeed. Could you please show the code for that.I want to display the custom form in fancybox pop up
– Vindhuja
Jun 20 '17 at 7:42