Custom tab in admin product page in magento2Magento 2: Add custom tab to order details page in customer...
Can I become debt free or should I file bankruptcy ? How to manage my debt and finances?
How to remove lines through the legend markers in ListPlot?
Can a hotel cancel a confirmed reservation?
Do authors have to be politically correct in article-writing?
If I deleted a game I lost the disc for, can I reinstall it digitally?
Why isn't there a non-conducting core wire for high-frequency coil applications
Caruana vs Carlsen game 10 (WCC) why not 18...Nxb6?
How should I handle players who ignore the session zero agreement?
Citing paywalled articles accessed via illegal web sharing
Why are the books in the Game of Thrones citadel library shelved spine inwards?
Can an insurance company drop you after receiving a bill and refusing to pay?
Dilemma of explaining to interviewer that he is the reason for declining second interview
Roman Numerals equation 1
Eww, those bytes are gross
Why do stocks necessarily drop during a recession?
What is the lore based reason that the Spectator has the Create Food and Water trait, instead of simply not requiring food and water?
Porting Linux to another platform requirements
Why zero tolerance on nudity in space?
How to deal with an incendiary email that was recalled
Why do members of Congress in committee hearings ask witnesses the same question multiple times?
A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?
Intern applicant asking for compensation equivalent to that of permanent employee
Advice for a new journal editor
Blindfold battle as a gladiatorial spectacle - what are the tactics and communication methods?
Custom tab in admin product page in magento2
Magento 2: Add custom tab to order details page in customer accountMigration : Incompatibility in data. Source document: eav_attribute_groupMagento 2.3 upgrade breaks HTTP POST requests to custom module endpointHow to create admin form using UI component in 2-column layout with tab in magento 2?Invalid Form Key. Please refresh the page. while submiting formMagento 2 How to display placeholder image to image preview backend UI component formAdditional Add to Cart ButtonMagento2 UI Component admin Grid / Listing stuck loadingAdding a custom model with product grid in Magento 2.3How to add custom footer template for product view page in magento2
I have created custom tab and added template for this tab using this link.
- app/code/Namespace/Modulename/view/adminhtml/ui_component/product_form.xml
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<fieldset name="demotab">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="label" xsi:type="string" translate="true">Demo Tab</item>
<item name="collapsible" xsi:type="boolean">true</item>
<item name="sortOrder" xsi:type="number">100</item>
</item>
</argument>
<container name="fieldname_container" >
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="sortOrder" xsi:type="number">160</item>
</item>
</argument>
<htmlContent name="html_content_demo">
<argument name="block" xsi:type="object">NamespaceModulenameBlockAdminhtmlCatalogProductEditTabDemo</argument>
</htmlContent>
</container>
</fieldset>
</form>
- app/code/Namespace/Modulename/Block/Adminhtml/Catalog/Product/Edit/Tab/Demo.php
<?php
namespace NamespaceModulenameBlockAdminhtmlCatalogProductEditTab;
use MagentoBackendBlockTemplateContext;
use MagentoFrameworkRegistry;
class Demo extends MagentoFrameworkViewElementTemplate
{
/**
* @var string
*/
protected $_template = 'product/edit/demo.phtml';
/**
* Core registry
*
* @var Registry
*/
protected $_coreRegistry = null;
public function __construct(
Context $context,
Registry $registry,
array $data = []
)
{
$this->_coreRegistry = $registry;
parent::__construct($context, $data);
}
/**
* Retrieve product
*
* @return MagentoCatalogModelProduct
*/
public function getProduct()
{
return $this->_coreRegistry->registry('current_product');
}
}
- app/code/Namespace/Modulename/view/adminhtml/templates/product/edit/demo.phtml
<?php echo "This is demo tab content."; ?>
But, The template values does not post in product form save action.
How to solve this...
Thanks.
magento2.3 php-7.2
add a comment |
I have created custom tab and added template for this tab using this link.
- app/code/Namespace/Modulename/view/adminhtml/ui_component/product_form.xml
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<fieldset name="demotab">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="label" xsi:type="string" translate="true">Demo Tab</item>
<item name="collapsible" xsi:type="boolean">true</item>
<item name="sortOrder" xsi:type="number">100</item>
</item>
</argument>
<container name="fieldname_container" >
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="sortOrder" xsi:type="number">160</item>
</item>
</argument>
<htmlContent name="html_content_demo">
<argument name="block" xsi:type="object">NamespaceModulenameBlockAdminhtmlCatalogProductEditTabDemo</argument>
</htmlContent>
</container>
</fieldset>
</form>
- app/code/Namespace/Modulename/Block/Adminhtml/Catalog/Product/Edit/Tab/Demo.php
<?php
namespace NamespaceModulenameBlockAdminhtmlCatalogProductEditTab;
use MagentoBackendBlockTemplateContext;
use MagentoFrameworkRegistry;
class Demo extends MagentoFrameworkViewElementTemplate
{
/**
* @var string
*/
protected $_template = 'product/edit/demo.phtml';
/**
* Core registry
*
* @var Registry
*/
protected $_coreRegistry = null;
public function __construct(
Context $context,
Registry $registry,
array $data = []
)
{
$this->_coreRegistry = $registry;
parent::__construct($context, $data);
}
/**
* Retrieve product
*
* @return MagentoCatalogModelProduct
*/
public function getProduct()
{
return $this->_coreRegistry->registry('current_product');
}
}
- app/code/Namespace/Modulename/view/adminhtml/templates/product/edit/demo.phtml
<?php echo "This is demo tab content."; ?>
But, The template values does not post in product form save action.
How to solve this...
Thanks.
magento2.3 php-7.2
add a comment |
I have created custom tab and added template for this tab using this link.
- app/code/Namespace/Modulename/view/adminhtml/ui_component/product_form.xml
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<fieldset name="demotab">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="label" xsi:type="string" translate="true">Demo Tab</item>
<item name="collapsible" xsi:type="boolean">true</item>
<item name="sortOrder" xsi:type="number">100</item>
</item>
</argument>
<container name="fieldname_container" >
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="sortOrder" xsi:type="number">160</item>
</item>
</argument>
<htmlContent name="html_content_demo">
<argument name="block" xsi:type="object">NamespaceModulenameBlockAdminhtmlCatalogProductEditTabDemo</argument>
</htmlContent>
</container>
</fieldset>
</form>
- app/code/Namespace/Modulename/Block/Adminhtml/Catalog/Product/Edit/Tab/Demo.php
<?php
namespace NamespaceModulenameBlockAdminhtmlCatalogProductEditTab;
use MagentoBackendBlockTemplateContext;
use MagentoFrameworkRegistry;
class Demo extends MagentoFrameworkViewElementTemplate
{
/**
* @var string
*/
protected $_template = 'product/edit/demo.phtml';
/**
* Core registry
*
* @var Registry
*/
protected $_coreRegistry = null;
public function __construct(
Context $context,
Registry $registry,
array $data = []
)
{
$this->_coreRegistry = $registry;
parent::__construct($context, $data);
}
/**
* Retrieve product
*
* @return MagentoCatalogModelProduct
*/
public function getProduct()
{
return $this->_coreRegistry->registry('current_product');
}
}
- app/code/Namespace/Modulename/view/adminhtml/templates/product/edit/demo.phtml
<?php echo "This is demo tab content."; ?>
But, The template values does not post in product form save action.
How to solve this...
Thanks.
magento2.3 php-7.2
I have created custom tab and added template for this tab using this link.
- app/code/Namespace/Modulename/view/adminhtml/ui_component/product_form.xml
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<fieldset name="demotab">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="label" xsi:type="string" translate="true">Demo Tab</item>
<item name="collapsible" xsi:type="boolean">true</item>
<item name="sortOrder" xsi:type="number">100</item>
</item>
</argument>
<container name="fieldname_container" >
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="sortOrder" xsi:type="number">160</item>
</item>
</argument>
<htmlContent name="html_content_demo">
<argument name="block" xsi:type="object">NamespaceModulenameBlockAdminhtmlCatalogProductEditTabDemo</argument>
</htmlContent>
</container>
</fieldset>
</form>
- app/code/Namespace/Modulename/Block/Adminhtml/Catalog/Product/Edit/Tab/Demo.php
<?php
namespace NamespaceModulenameBlockAdminhtmlCatalogProductEditTab;
use MagentoBackendBlockTemplateContext;
use MagentoFrameworkRegistry;
class Demo extends MagentoFrameworkViewElementTemplate
{
/**
* @var string
*/
protected $_template = 'product/edit/demo.phtml';
/**
* Core registry
*
* @var Registry
*/
protected $_coreRegistry = null;
public function __construct(
Context $context,
Registry $registry,
array $data = []
)
{
$this->_coreRegistry = $registry;
parent::__construct($context, $data);
}
/**
* Retrieve product
*
* @return MagentoCatalogModelProduct
*/
public function getProduct()
{
return $this->_coreRegistry->registry('current_product');
}
}
- app/code/Namespace/Modulename/view/adminhtml/templates/product/edit/demo.phtml
<?php echo "This is demo tab content."; ?>
But, The template values does not post in product form save action.
How to solve this...
Thanks.
magento2.3 php-7.2
magento2.3 php-7.2
asked 40 mins ago
Mano MMano M
912219
912219
add a comment |
add a comment |
0
active
oldest
votes
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%2f263939%2fcustom-tab-in-admin-product-page-in-magento2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f263939%2fcustom-tab-in-admin-product-page-in-magento2%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