Add custom block under long description (product.info.description)Add a child block to product.info.tabs description tabAdd custom block to admin order viewAdding custom block to catalog product viewHow to extend layout in Custom moduleMagento 2: Is there a way to add a child block when the parent isn't defined in a layout?Magento2, placing the custom block in header of order creation page in admin panelCustom attribute - Product pageMagento2 Override Block - Invalid template file problemHow add div after image block in Magento 2?Magento 2 Add block before another block using XML
Why should password hash verification be time constant?
Can 'sudo apt-get remove [write]' destroy my Ubuntu?
Company stopped paying my salary. What are my options?
Further factorisation of a difference of cubes?
How are one-time password generators like Google Authenticator different from having two passwords?
Succinct and gender-neutral Russian word for "writer"
Is every story set in the future "science fiction"?
What does formal training in a field mean?
Can more than one creature benefit from multiple Hunter's Mark spells cast on the same target?
Extending Kan fibrations, without using minimal fibrations
How to evaluate sum with one million summands?
We are two immediate neighbors who forged our own powers to form concatenated relationship. Who are we?
What does this quote in Small Gods refer to?
Are there variations of the regular runtimes of the Big-O-Notation?
Is there an application which does HTTP PUT?
When do you stop "pushing" a book?
Was there a contingency plan in place if Little Boy failed to detonate?
Why did they go to Dragonstone?
Two researchers want to work on the same extension to my paper. Who to help?
Why is it wrong to *implement* myself a known, published, widely believed to be secure crypto algorithm?
How to handle DM constantly stealing everything from sleeping characters?
Removing all characters except digits from clipboard
Pre-1993 comic in which Wolverine's claws were turned to rubber?
Should I pay on student loans in deferment or continue to snowball other debts?
Add custom block under long description (product.info.description)
Add a child block to product.info.tabs description tabAdd custom block to admin order viewAdding custom block to catalog product viewHow to extend layout in Custom moduleMagento 2: Is there a way to add a child block when the parent isn't defined in a layout?Magento2, placing the custom block in header of order creation page in admin panelCustom attribute - Product pageMagento2 Override Block - Invalid template file problemHow add div after image block in Magento 2?Magento 2 Add block before another block using XML
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'd like to add a custom block in description tab just after long description field.
I Tried
<referenceBlock name="product.info.description">
<block class="MagentoCatalogBlockProductViewDescription" name="product.subdescription" template="product/view/subdescription.phtml" />
</referenceBlock>
but it did not work.
layout xml magento2.3.1
add a comment |
I'd like to add a custom block in description tab just after long description field.
I Tried
<referenceBlock name="product.info.description">
<block class="MagentoCatalogBlockProductViewDescription" name="product.subdescription" template="product/view/subdescription.phtml" />
</referenceBlock>
but it did not work.
layout xml magento2.3.1
add a comment |
I'd like to add a custom block in description tab just after long description field.
I Tried
<referenceBlock name="product.info.description">
<block class="MagentoCatalogBlockProductViewDescription" name="product.subdescription" template="product/view/subdescription.phtml" />
</referenceBlock>
but it did not work.
layout xml magento2.3.1
I'd like to add a custom block in description tab just after long description field.
I Tried
<referenceBlock name="product.info.description">
<block class="MagentoCatalogBlockProductViewDescription" name="product.subdescription" template="product/view/subdescription.phtml" />
</referenceBlock>
but it did not work.
layout xml magento2.3.1
layout xml magento2.3.1
asked May 6 at 21:04
domfittydomfitty
62111
62111
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Try to change template name like below: (change Vendor_Module according to your custom module)
<referenceBlock name="product.info.details">
<block class="MagentoCatalogBlockProductView" name="product.subdescription" template="Vendor_Module::product/view/subdescription.phtml" group="detailed_info"/>
</referenceBlock>
Tried this, but there's an exception1 exception(s): Exception #0 (MagentoFrameworkExceptionValidatorException): Invalid template file: 'Magento_Catalog::product/view/subdescription.phtml' in module: 'Magento_Catalog' block's name: 'product.subdescription'
– domfitty
2 days ago
This is subdescription.phtml content<?php $_helper = $this->helper('MagentoCatalogHelperOutput'); $_product = $block->getProduct(); ?> <h1>SUBDESCRIZIONE</h1> <?php if ($_product->getData('downloadable')): ?> <div class="product-collateral-itunes" id="downloadable" > <div class="innerdownloadable"><?php echo $_product->getData('downloadable') ?></div> </div> <?php endif; ?>
– domfitty
2 days ago
@domfitty is your template stored like thisapp/code/Vendor/Module/view/frontend/templates/product/view/subdescription.phtml
?
– magefms
2 days ago
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%2f273577%2fadd-custom-block-under-long-description-product-info-description%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
Try to change template name like below: (change Vendor_Module according to your custom module)
<referenceBlock name="product.info.details">
<block class="MagentoCatalogBlockProductView" name="product.subdescription" template="Vendor_Module::product/view/subdescription.phtml" group="detailed_info"/>
</referenceBlock>
Tried this, but there's an exception1 exception(s): Exception #0 (MagentoFrameworkExceptionValidatorException): Invalid template file: 'Magento_Catalog::product/view/subdescription.phtml' in module: 'Magento_Catalog' block's name: 'product.subdescription'
– domfitty
2 days ago
This is subdescription.phtml content<?php $_helper = $this->helper('MagentoCatalogHelperOutput'); $_product = $block->getProduct(); ?> <h1>SUBDESCRIZIONE</h1> <?php if ($_product->getData('downloadable')): ?> <div class="product-collateral-itunes" id="downloadable" > <div class="innerdownloadable"><?php echo $_product->getData('downloadable') ?></div> </div> <?php endif; ?>
– domfitty
2 days ago
@domfitty is your template stored like thisapp/code/Vendor/Module/view/frontend/templates/product/view/subdescription.phtml
?
– magefms
2 days ago
add a comment |
Try to change template name like below: (change Vendor_Module according to your custom module)
<referenceBlock name="product.info.details">
<block class="MagentoCatalogBlockProductView" name="product.subdescription" template="Vendor_Module::product/view/subdescription.phtml" group="detailed_info"/>
</referenceBlock>
Tried this, but there's an exception1 exception(s): Exception #0 (MagentoFrameworkExceptionValidatorException): Invalid template file: 'Magento_Catalog::product/view/subdescription.phtml' in module: 'Magento_Catalog' block's name: 'product.subdescription'
– domfitty
2 days ago
This is subdescription.phtml content<?php $_helper = $this->helper('MagentoCatalogHelperOutput'); $_product = $block->getProduct(); ?> <h1>SUBDESCRIZIONE</h1> <?php if ($_product->getData('downloadable')): ?> <div class="product-collateral-itunes" id="downloadable" > <div class="innerdownloadable"><?php echo $_product->getData('downloadable') ?></div> </div> <?php endif; ?>
– domfitty
2 days ago
@domfitty is your template stored like thisapp/code/Vendor/Module/view/frontend/templates/product/view/subdescription.phtml
?
– magefms
2 days ago
add a comment |
Try to change template name like below: (change Vendor_Module according to your custom module)
<referenceBlock name="product.info.details">
<block class="MagentoCatalogBlockProductView" name="product.subdescription" template="Vendor_Module::product/view/subdescription.phtml" group="detailed_info"/>
</referenceBlock>
Try to change template name like below: (change Vendor_Module according to your custom module)
<referenceBlock name="product.info.details">
<block class="MagentoCatalogBlockProductView" name="product.subdescription" template="Vendor_Module::product/view/subdescription.phtml" group="detailed_info"/>
</referenceBlock>
answered May 6 at 22:02
magefmsmagefms
3,0402630
3,0402630
Tried this, but there's an exception1 exception(s): Exception #0 (MagentoFrameworkExceptionValidatorException): Invalid template file: 'Magento_Catalog::product/view/subdescription.phtml' in module: 'Magento_Catalog' block's name: 'product.subdescription'
– domfitty
2 days ago
This is subdescription.phtml content<?php $_helper = $this->helper('MagentoCatalogHelperOutput'); $_product = $block->getProduct(); ?> <h1>SUBDESCRIZIONE</h1> <?php if ($_product->getData('downloadable')): ?> <div class="product-collateral-itunes" id="downloadable" > <div class="innerdownloadable"><?php echo $_product->getData('downloadable') ?></div> </div> <?php endif; ?>
– domfitty
2 days ago
@domfitty is your template stored like thisapp/code/Vendor/Module/view/frontend/templates/product/view/subdescription.phtml
?
– magefms
2 days ago
add a comment |
Tried this, but there's an exception1 exception(s): Exception #0 (MagentoFrameworkExceptionValidatorException): Invalid template file: 'Magento_Catalog::product/view/subdescription.phtml' in module: 'Magento_Catalog' block's name: 'product.subdescription'
– domfitty
2 days ago
This is subdescription.phtml content<?php $_helper = $this->helper('MagentoCatalogHelperOutput'); $_product = $block->getProduct(); ?> <h1>SUBDESCRIZIONE</h1> <?php if ($_product->getData('downloadable')): ?> <div class="product-collateral-itunes" id="downloadable" > <div class="innerdownloadable"><?php echo $_product->getData('downloadable') ?></div> </div> <?php endif; ?>
– domfitty
2 days ago
@domfitty is your template stored like thisapp/code/Vendor/Module/view/frontend/templates/product/view/subdescription.phtml
?
– magefms
2 days ago
Tried this, but there's an exception
1 exception(s): Exception #0 (MagentoFrameworkExceptionValidatorException): Invalid template file: 'Magento_Catalog::product/view/subdescription.phtml' in module: 'Magento_Catalog' block's name: 'product.subdescription'
– domfitty
2 days ago
Tried this, but there's an exception
1 exception(s): Exception #0 (MagentoFrameworkExceptionValidatorException): Invalid template file: 'Magento_Catalog::product/view/subdescription.phtml' in module: 'Magento_Catalog' block's name: 'product.subdescription'
– domfitty
2 days ago
This is subdescription.phtml content
<?php $_helper = $this->helper('MagentoCatalogHelperOutput'); $_product = $block->getProduct(); ?> <h1>SUBDESCRIZIONE</h1> <?php if ($_product->getData('downloadable')): ?> <div class="product-collateral-itunes" id="downloadable" > <div class="innerdownloadable"><?php echo $_product->getData('downloadable') ?></div> </div> <?php endif; ?>
– domfitty
2 days ago
This is subdescription.phtml content
<?php $_helper = $this->helper('MagentoCatalogHelperOutput'); $_product = $block->getProduct(); ?> <h1>SUBDESCRIZIONE</h1> <?php if ($_product->getData('downloadable')): ?> <div class="product-collateral-itunes" id="downloadable" > <div class="innerdownloadable"><?php echo $_product->getData('downloadable') ?></div> </div> <?php endif; ?>
– domfitty
2 days ago
@domfitty is your template stored like this
app/code/Vendor/Module/view/frontend/templates/product/view/subdescription.phtml
?– magefms
2 days ago
@domfitty is your template stored like this
app/code/Vendor/Module/view/frontend/templates/product/view/subdescription.phtml
?– magefms
2 days ago
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%2f273577%2fadd-custom-block-under-long-description-product-info-description%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