Remove custom Product Attribute from 'Default' Attribute SetIs it possible to use custom attribute set on...
Is the child responsible for the Parent PLUS Loan when the parent has passed away?
Removing whitespace between consecutive numbers
What happens when I Twin Life Transference?
Separate environment for personal and development use under macOS
Boss asked me to sign a resignation paper without a date on it along with my new contract
Explanation of a regular pattern only occuring for prime numbers
Does diversity provide anything that meritocracy does not?
How to deal with possible delayed baggage?
Why was Lupin comfortable with saying Voldemort's name?
Why don't key signatures indicate the tonic?
I have trouble understanding this fallacy: "If A, then B. Therefore if not-B, then not-A."
Plausible reason for gold-digging ant
How to assess the long-term stability of a college as part of a job search
Can 5 Aarakocra PCs summon an Air Elemental?
How to visualize the Riemann-Roch theorem from complex analysis or geometric topology considerations?
Looking for a specific 6502 Assembler
Why did Luke use his left hand to shoot?
Do authors have to be politically correct in article-writing?
Can you tell from a blurry photo if focus was too close or too far?
How can the probability of a fumble decrease linearly with more dice?
What is the difference between "...", '...', $'...', and $"..." quotes?
Short story where statues have their heads replaced by those of carved insect heads
Why are all my replica super soldiers young adults or old teenagers?
How do you funnel food off a cutting board?
Remove custom Product Attribute from 'Default' Attribute Set
Is it possible to use custom attribute set on categories?Magento 2 disabling product by custom attributeCustom attribute values Not showing while compare the product in magento2Layered Navigation doesn't show Custom AttributeGet product custom attribute data Magento 2?When creating a configurable product all attributes show for the attribute set selectedMagento2 How can get the Attributes based on the Attribute Set Id or Attribute Set NameMagento 2.2.4 adding new custom attribute error “Attempt to load value of nonexistent EAV attribute”How to set customer custom attribute in magento 2?Unable to update custom product attribute value programatically
I added a custom product attribute to the default attribute set in Magento 2, but now when I try to remove it, by dragging the property to 'Unassigned Attributes' list, nothing happens. Its not clear how to remove a custom product attribute, once you added it to an attribute set.
I also tried this with a new custom product attribute set, added the custom attribute by dragging it to the Product Details group, saving the changes, and then trying to remove it again, but it does not seem to work.
I am using Magento 2.0.7.
magento2
bumped to the homepage by Community♦ 1 min 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 added a custom product attribute to the default attribute set in Magento 2, but now when I try to remove it, by dragging the property to 'Unassigned Attributes' list, nothing happens. Its not clear how to remove a custom product attribute, once you added it to an attribute set.
I also tried this with a new custom product attribute set, added the custom attribute by dragging it to the Product Details group, saving the changes, and then trying to remove it again, but it does not seem to work.
I am using Magento 2.0.7.
magento2
bumped to the homepage by Community♦ 1 min ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
Here is a screenshot showing the red cross when trying to remove an attribute: imgur.com/09wkJ88
– omencat
Jul 17 '16 at 22:50
add a comment |
I added a custom product attribute to the default attribute set in Magento 2, but now when I try to remove it, by dragging the property to 'Unassigned Attributes' list, nothing happens. Its not clear how to remove a custom product attribute, once you added it to an attribute set.
I also tried this with a new custom product attribute set, added the custom attribute by dragging it to the Product Details group, saving the changes, and then trying to remove it again, but it does not seem to work.
I am using Magento 2.0.7.
magento2
I added a custom product attribute to the default attribute set in Magento 2, but now when I try to remove it, by dragging the property to 'Unassigned Attributes' list, nothing happens. Its not clear how to remove a custom product attribute, once you added it to an attribute set.
I also tried this with a new custom product attribute set, added the custom attribute by dragging it to the Product Details group, saving the changes, and then trying to remove it again, but it does not seem to work.
I am using Magento 2.0.7.
magento2
magento2
asked Jul 17 '16 at 22:40
omencatomencat
1062
1062
bumped to the homepage by Community♦ 1 min 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♦ 1 min ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
Here is a screenshot showing the red cross when trying to remove an attribute: imgur.com/09wkJ88
– omencat
Jul 17 '16 at 22:50
add a comment |
1
Here is a screenshot showing the red cross when trying to remove an attribute: imgur.com/09wkJ88
– omencat
Jul 17 '16 at 22:50
1
1
Here is a screenshot showing the red cross when trying to remove an attribute: imgur.com/09wkJ88
– omencat
Jul 17 '16 at 22:50
Here is a screenshot showing the red cross when trying to remove an attribute: imgur.com/09wkJ88
– omencat
Jul 17 '16 at 22:50
add a comment |
2 Answers
2
active
oldest
votes
As a workaround, try dragging the unwanted attribute into the middle of the list instead of into the whitespace.
add a comment |
You can remove it by adding the following code to the app/code/MyVendor/MyModule/Setup/InstallData.php
file of your module (make sure to change the my_attribute
value).
<?php
namespace MyVendorMyModuleSetup;
use MagentoEavSetupEavSetup;
use MagentoEavSetupEavSetupFactory;
use MagentoFrameworkSetupInstallDataInterface;
use MagentoFrameworkSetupModuleContextInterface;
use MagentoFrameworkSetupModuleDataSetupInterface;
class InstallData implements InstallDataInterface
{
private $eavSetupFactory;
public function __construct(EavSetupFactory $eavSetupFactory)
{
$this->eavSetupFactory = $eavSetupFactory;
}
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
$eavSetup->removeAttribute(
MagentoCatalogModelProduct::ENTITY,
'my_attribute');
}
}
Hope it helps.
Purge cache and deploy static content by running the following commands.
php bin/magento cache:flush
php bin/magento setup:static-content:deploy -f
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%2f126081%2fremove-custom-product-attribute-from-default-attribute-set%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
As a workaround, try dragging the unwanted attribute into the middle of the list instead of into the whitespace.
add a comment |
As a workaround, try dragging the unwanted attribute into the middle of the list instead of into the whitespace.
add a comment |
As a workaround, try dragging the unwanted attribute into the middle of the list instead of into the whitespace.
As a workaround, try dragging the unwanted attribute into the middle of the list instead of into the whitespace.
answered May 30 '17 at 15:07
nshiffnshiff
486313
486313
add a comment |
add a comment |
You can remove it by adding the following code to the app/code/MyVendor/MyModule/Setup/InstallData.php
file of your module (make sure to change the my_attribute
value).
<?php
namespace MyVendorMyModuleSetup;
use MagentoEavSetupEavSetup;
use MagentoEavSetupEavSetupFactory;
use MagentoFrameworkSetupInstallDataInterface;
use MagentoFrameworkSetupModuleContextInterface;
use MagentoFrameworkSetupModuleDataSetupInterface;
class InstallData implements InstallDataInterface
{
private $eavSetupFactory;
public function __construct(EavSetupFactory $eavSetupFactory)
{
$this->eavSetupFactory = $eavSetupFactory;
}
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
$eavSetup->removeAttribute(
MagentoCatalogModelProduct::ENTITY,
'my_attribute');
}
}
Hope it helps.
Purge cache and deploy static content by running the following commands.
php bin/magento cache:flush
php bin/magento setup:static-content:deploy -f
add a comment |
You can remove it by adding the following code to the app/code/MyVendor/MyModule/Setup/InstallData.php
file of your module (make sure to change the my_attribute
value).
<?php
namespace MyVendorMyModuleSetup;
use MagentoEavSetupEavSetup;
use MagentoEavSetupEavSetupFactory;
use MagentoFrameworkSetupInstallDataInterface;
use MagentoFrameworkSetupModuleContextInterface;
use MagentoFrameworkSetupModuleDataSetupInterface;
class InstallData implements InstallDataInterface
{
private $eavSetupFactory;
public function __construct(EavSetupFactory $eavSetupFactory)
{
$this->eavSetupFactory = $eavSetupFactory;
}
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
$eavSetup->removeAttribute(
MagentoCatalogModelProduct::ENTITY,
'my_attribute');
}
}
Hope it helps.
Purge cache and deploy static content by running the following commands.
php bin/magento cache:flush
php bin/magento setup:static-content:deploy -f
add a comment |
You can remove it by adding the following code to the app/code/MyVendor/MyModule/Setup/InstallData.php
file of your module (make sure to change the my_attribute
value).
<?php
namespace MyVendorMyModuleSetup;
use MagentoEavSetupEavSetup;
use MagentoEavSetupEavSetupFactory;
use MagentoFrameworkSetupInstallDataInterface;
use MagentoFrameworkSetupModuleContextInterface;
use MagentoFrameworkSetupModuleDataSetupInterface;
class InstallData implements InstallDataInterface
{
private $eavSetupFactory;
public function __construct(EavSetupFactory $eavSetupFactory)
{
$this->eavSetupFactory = $eavSetupFactory;
}
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
$eavSetup->removeAttribute(
MagentoCatalogModelProduct::ENTITY,
'my_attribute');
}
}
Hope it helps.
Purge cache and deploy static content by running the following commands.
php bin/magento cache:flush
php bin/magento setup:static-content:deploy -f
You can remove it by adding the following code to the app/code/MyVendor/MyModule/Setup/InstallData.php
file of your module (make sure to change the my_attribute
value).
<?php
namespace MyVendorMyModuleSetup;
use MagentoEavSetupEavSetup;
use MagentoEavSetupEavSetupFactory;
use MagentoFrameworkSetupInstallDataInterface;
use MagentoFrameworkSetupModuleContextInterface;
use MagentoFrameworkSetupModuleDataSetupInterface;
class InstallData implements InstallDataInterface
{
private $eavSetupFactory;
public function __construct(EavSetupFactory $eavSetupFactory)
{
$this->eavSetupFactory = $eavSetupFactory;
}
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
$eavSetup->removeAttribute(
MagentoCatalogModelProduct::ENTITY,
'my_attribute');
}
}
Hope it helps.
Purge cache and deploy static content by running the following commands.
php bin/magento cache:flush
php bin/magento setup:static-content:deploy -f
answered Jan 24 at 17:41
Rakesh DongaRakesh Donga
1,234314
1,234314
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%2f126081%2fremove-custom-product-attribute-from-default-attribute-set%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
1
Here is a screenshot showing the red cross when trying to remove an attribute: imgur.com/09wkJ88
– omencat
Jul 17 '16 at 22:50