Create Custom block on Product View with formcant display block in product-view pageAdd block to each product in category viewCustom block duplicating Product View using local.xmlcreate a popup from a blockBlock with Cachable=false not rendered on product view pageHow to add new products block to the product view page using local.xmlMagento 2 : Overide MagentoCatalogBlockProductViewGallery BlockOverride MagentoCatalogBlockProductView Block failedHow to insert custom template/block where I want?Magento custom block not showing on frontend
My adviser wants to be the first author
What is the greatest age difference between a married couple in Tanach?
Replacing Windows 7 security updates with anti-virus?
Brexit - No Deal Rejection
How could a scammer know the apps on my phone / iTunes account?
Bash replace string at multiple places in a file from command line
Meaning of "SEVERA INDEOVI VAS" from 3rd Century slab
Counting certain elements in lists
How to simplify this time periods definition interface?
Why is "das Weib" grammatically neuter?
Informing my boss about remarks from a nasty colleague
Font with correct density?
PTIJ: Who should pay for Uber rides: the child or the parent?
Welcoming 2019 Pi day: How to draw the letter π?
Is having access to past exams cheating and, if yes, could it be proven just by a good grade?
The use of "touch" and "touch on" in context
Humanity loses the vast majority of its technology, information, and population in the year 2122. How long does it take to rebuild itself?
I need to drive a 7/16" nut but am unsure how to use the socket I bought for my screwdriver
Should we release the security issues we found in our product as CVE or we can just update those on weekly release notes?
Do I need life insurance if I can cover my own funeral costs?
Make a transparent 448*448 image
Professor being mistaken for a grad student
Why do Australian milk farmers need to protest supermarkets' milk price?
Can elves maintain concentration in a trance?
Create Custom block on Product View with form
cant display block in product-view pageAdd block to each product in category viewCustom block duplicating Product View using local.xmlcreate a popup from a blockBlock with Cachable=false not rendered on product view pageHow to add new products block to the product view page using local.xmlMagento 2 : Overide MagentoCatalogBlockProductViewGallery BlockOverride MagentoCatalogBlockProductView Block failedHow to insert custom template/block where I want?Magento custom block not showing on frontend
I'm trying to do a form and put this on Product View.
I did some fields and they are saving the results on DB, ok, everything is good. But, I need to insert this block there.
Any thing that I help me?
magento-1.9 blocks product-view-page
New contributor
add a comment |
I'm trying to do a form and put this on Product View.
I did some fields and they are saving the results on DB, ok, everything is good. But, I need to insert this block there.
Any thing that I help me?
magento-1.9 blocks product-view-page
New contributor
add a comment |
I'm trying to do a form and put this on Product View.
I did some fields and they are saving the results on DB, ok, everything is good. But, I need to insert this block there.
Any thing that I help me?
magento-1.9 blocks product-view-page
New contributor
I'm trying to do a form and put this on Product View.
I did some fields and they are saving the results on DB, ok, everything is good. But, I need to insert this block there.
Any thing that I help me?
magento-1.9 blocks product-view-page
magento-1.9 blocks product-view-page
New contributor
New contributor
New contributor
asked 3 hours ago
Rannye RodriguesRannye Rodrigues
1
1
New contributor
New contributor
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
In your theme, you should extend catalog.xml and inside him put:
<catalog_product_view>
<reference name="product.info">
<block type="<your_class_block>" name="<your_name>" template="<your_template_file>"/>
</reference>
</catalog_product_view>
But, if you don't want product.info you can add a block inside <catalog_product_view>
<catalog_product_view>
<block type="<your_class_block>"
name="<your_name>"
template="<your_template_file>"/>
</catalog_product_view>
then in your view.phtml you should put:
$this->getChildHtml('<your_name_or_alias_of_block');
add a comment |
app/design/frontend/package/themename/template/catalog/product/view/form /my_custom_form.phtml
//your form content here
app/design/frontend/package/themename/layout/local.xml
<catalog_product_view>
<reference name="root">
<block type="core/template" name="my.custom.form" template="catalog/product/view/form/my_custom_form.phtml"/>
</reference>
</catalog_product_view>
app/design/frontend/package/themename/template/catalog/product/view.phtml
<?php echo $this->getBlockHtml("my.custom.form"); ?>
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
);
);
Rannye Rodrigues is a new contributor. Be nice, and check out our Code of Conduct.
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%2f266003%2fcreate-custom-block-on-product-view-with-form%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
In your theme, you should extend catalog.xml and inside him put:
<catalog_product_view>
<reference name="product.info">
<block type="<your_class_block>" name="<your_name>" template="<your_template_file>"/>
</reference>
</catalog_product_view>
But, if you don't want product.info you can add a block inside <catalog_product_view>
<catalog_product_view>
<block type="<your_class_block>"
name="<your_name>"
template="<your_template_file>"/>
</catalog_product_view>
then in your view.phtml you should put:
$this->getChildHtml('<your_name_or_alias_of_block');
add a comment |
In your theme, you should extend catalog.xml and inside him put:
<catalog_product_view>
<reference name="product.info">
<block type="<your_class_block>" name="<your_name>" template="<your_template_file>"/>
</reference>
</catalog_product_view>
But, if you don't want product.info you can add a block inside <catalog_product_view>
<catalog_product_view>
<block type="<your_class_block>"
name="<your_name>"
template="<your_template_file>"/>
</catalog_product_view>
then in your view.phtml you should put:
$this->getChildHtml('<your_name_or_alias_of_block');
add a comment |
In your theme, you should extend catalog.xml and inside him put:
<catalog_product_view>
<reference name="product.info">
<block type="<your_class_block>" name="<your_name>" template="<your_template_file>"/>
</reference>
</catalog_product_view>
But, if you don't want product.info you can add a block inside <catalog_product_view>
<catalog_product_view>
<block type="<your_class_block>"
name="<your_name>"
template="<your_template_file>"/>
</catalog_product_view>
then in your view.phtml you should put:
$this->getChildHtml('<your_name_or_alias_of_block');
In your theme, you should extend catalog.xml and inside him put:
<catalog_product_view>
<reference name="product.info">
<block type="<your_class_block>" name="<your_name>" template="<your_template_file>"/>
</reference>
</catalog_product_view>
But, if you don't want product.info you can add a block inside <catalog_product_view>
<catalog_product_view>
<block type="<your_class_block>"
name="<your_name>"
template="<your_template_file>"/>
</catalog_product_view>
then in your view.phtml you should put:
$this->getChildHtml('<your_name_or_alias_of_block');
answered 2 hours ago
Max SouzaMax Souza
412
412
add a comment |
add a comment |
app/design/frontend/package/themename/template/catalog/product/view/form /my_custom_form.phtml
//your form content here
app/design/frontend/package/themename/layout/local.xml
<catalog_product_view>
<reference name="root">
<block type="core/template" name="my.custom.form" template="catalog/product/view/form/my_custom_form.phtml"/>
</reference>
</catalog_product_view>
app/design/frontend/package/themename/template/catalog/product/view.phtml
<?php echo $this->getBlockHtml("my.custom.form"); ?>
add a comment |
app/design/frontend/package/themename/template/catalog/product/view/form /my_custom_form.phtml
//your form content here
app/design/frontend/package/themename/layout/local.xml
<catalog_product_view>
<reference name="root">
<block type="core/template" name="my.custom.form" template="catalog/product/view/form/my_custom_form.phtml"/>
</reference>
</catalog_product_view>
app/design/frontend/package/themename/template/catalog/product/view.phtml
<?php echo $this->getBlockHtml("my.custom.form"); ?>
add a comment |
app/design/frontend/package/themename/template/catalog/product/view/form /my_custom_form.phtml
//your form content here
app/design/frontend/package/themename/layout/local.xml
<catalog_product_view>
<reference name="root">
<block type="core/template" name="my.custom.form" template="catalog/product/view/form/my_custom_form.phtml"/>
</reference>
</catalog_product_view>
app/design/frontend/package/themename/template/catalog/product/view.phtml
<?php echo $this->getBlockHtml("my.custom.form"); ?>
app/design/frontend/package/themename/template/catalog/product/view/form /my_custom_form.phtml
//your form content here
app/design/frontend/package/themename/layout/local.xml
<catalog_product_view>
<reference name="root">
<block type="core/template" name="my.custom.form" template="catalog/product/view/form/my_custom_form.phtml"/>
</reference>
</catalog_product_view>
app/design/frontend/package/themename/template/catalog/product/view.phtml
<?php echo $this->getBlockHtml("my.custom.form"); ?>
answered 1 hour ago
PЯINCƏPЯINCƏ
8,29331143
8,29331143
add a comment |
add a comment |
Rannye Rodrigues is a new contributor. Be nice, and check out our Code of Conduct.
Rannye Rodrigues is a new contributor. Be nice, and check out our Code of Conduct.
Rannye Rodrigues is a new contributor. Be nice, and check out our Code of Conduct.
Rannye Rodrigues is a new contributor. Be nice, and check out our Code of Conduct.
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%2f266003%2fcreate-custom-block-on-product-view-with-form%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