Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [attribute-set]

Denotes questions regarding Magento Attribute Set

Filter by
Sorted by
Tagged with
18
votes
2answers
5k views

Configurable products and attribute set

TL; DR: Is there any reason why the simple products associated to a configurable product have to be in the same attribute set as the configurable product itself? I mean, is there any technical reason? ...
14
votes
2answers
37k views

How to export all attributes and attribute sets from one magento installation and import to other installation?

I need to export all the product attributes and attribute sets from my current website (Enterprise Edition 1.12.0.0) and import all of them to a new website (CE 1.8). I've gone through these: ...
10
votes
2answers
15k views

Add Custom attributes to Custom attribute set programmatically

Hi Could someone help me with this? I created a custom attribute set and custom attribute as $installer = $this; /* @var $installer Mage_Eav_Model_Entity_Setup */ $installer->startSetup(); //...
9
votes
2answers
1k views

Handling grouped product attributes

I'm working on building a new Magento shop (this is my first with Magento). I'm looking to replicate the look of an existing shop for my product pages, at least in terms of layout: http://www....
8
votes
1answer
11k views

magento 2 - How to get attribute set name in product listing and product detail page

How can we retrieve the attribute set name for a product. I want to use it on product detail and listing page.
7
votes
4answers
5k views

How to show the dropdown attibute value using getData() method in magento 2?

When I try to get data from the material attribute like $_product->getData('material'), it shows the integer value. How can I convert it to the actual front-end value.
7
votes
2answers
2k views

Magento 2: Import/Export Product Attribute Set & it's Attributes

I refer Magento 2 - Export/Import Product Attributes but no one answered :( I have already created new Attribute Set & it's Attributes. I have checked Magento Default Import/Export for Products. ...
6
votes
2answers
7k views

Detect default attribute set id

There's 'Default' attribute set in the default Magento installation. You have no ability to remove that attribute set using admin gui (Remove button is hidden for this set). I did not found something ...
6
votes
1answer
6k views

Magento 2 Get a list of Attribute Set Names and IDs

How would I get a list of Attribute Set names and IDs in Magento 2? Edit: Adding code. Edit 2: Added code that worked for me <?php namespace Company\CustomAttributes\Model\Config\Source; use ...
6
votes
3answers
8k views

Change attribute set of existing products

How can I change attribute set of existing products in magento version 1.9. I searched the solution in google got this Flagbit change attribute (for upto 1.6). But I want it for version 1.9 or more.
6
votes
1answer
3k views

How to get attributes by attribute set ID in Magento 2?

How can I retrieve a list of attributes and values by given attribute set ID in Magento 2?
6
votes
1answer
1k views

Magento 2 : How to get the product attributes based on attribute set id on listing page

I am trying to get product attribute in product listing page based on attribute set id but its not working properly. can anyone help on this. $attributes = $_product->getAttributes(); foreach ($...
5
votes
3answers
16k views

Create and add attribute group with attributes to all attribute sets

I need to create and add an attribute group with 6 attributes to all attributes sets in an existing install. I have found a script for creating an attribute group, this works great, but this can not ...
5
votes
2answers
4k views

How to retrieve custom attribute set ID by name

I have created couple of custom Attribute Set and now I want to assign a group in those attribute sets programmatically, so is there any way to retrieve attribute set IDs based on name?
5
votes
5answers
9k views

Magento : Filter Collection by Attribute that Doesn't Exist or Null or another condition

I have created a new product eav attribute, assume it is created correctly. Now I write something in this attribute in some products (5 for example), and I delete it from some of them (4). So this ...
5
votes
3answers
481 views

Create Product Programatically with different attribute sets

Current Feature Once we Click on Custom button "Button1" present in Original Product view page [ This original product is created with Attribute set id 1 ] , We are creating new Product ...
5
votes
3answers
142 views

How to Display Attribute value in magento 2 using getProducts() Method

When I Try to get data using below code,But return null value. $_attributeValue = $block->getProduct()->getResource()->getAttribute('weight_spices')->getFrontend()->getValue($block-&...
5
votes
2answers
2k views

Howto add attribute to multiple attribute sets programmatically in magento2?

Subject. Which classes I need to use to deal with it? It seems that I don't understand much about how attributes work. For example I use this code to add attribute to one attribute set and to one ...
5
votes
1answer
6k views

Programatically add attribute sets Magento2

I need idea on how to create a script for adding bulk attribute sets and attributes in magento2? This is the script i have tried: AttributeSetupscript.php <?php require __DIR__ . '/app/...
5
votes
3answers
1k views

Remove custom attribute from attribute set programatically magento2

I am trying to create a custom attribute and add it to a custom created attribute set. The problem is that it is being added to the Default attribute set. How can I make it only appear in my attribute ...
4
votes
1answer
3k views

Layered Navigation not showing Attributes

I have a Magento install which has several attributes in attributes sets, but they are not showing up in the layered navigation on the left hand side of the page. I have made sure that the attributes ...
4
votes
2answers
14k views

Programmatically add Custom Product Attribute to attribute set

Is there a way to add a custom Attribute (DB-Column, whatever) to product attribute sets? I tried the following but it I get the error 'Wrong Entity ID': /** @var Mage_Catalog_Model_Resource_Setup $...
4
votes
3answers
2k views

How to sort the Attribute Set list on the Manage Products Grid dropdown menu?

We are using Magento 1.8.1. When I navigate to the Catalog > Manage Products grid view of our products, I see the Attribute Set column, which displays as a selectable dropdown menu. The challenge we ...
4
votes
1answer
140 views

migrating entire set of attributes and attribute sets to a fresh installation

I have a rather large set of attributes and a dozen attribute sets that I need to migrate to a fresh installation of Magento of the same version down the road. I'd like to do this without carrying ...
4
votes
1answer
948 views

Magmi: Attributes not being associated with attribute sets

I've successfully added attributes and attribute sets to the store I'm working on, however I'm running into trouble with creating associations between the attributes and attribute sets. When I check ...
4
votes
2answers
475 views

Attribute sets based on user role

I have been charged with customizing Magento 1.9.1 and my question seems complicated to me, but might not to a seasoned MageDev. What I want to do is have an attribute set, say "UniqueChoice", and in ...
4
votes
1answer
1k views

What purpose have category attribute sets?

Since Categories are EAV Models, they also have an attribute set. All categories, which are created from the admin panel get the default attribute set. This is set by the controller (\...
4
votes
3answers
357 views

Save is deprecated when try to create attributes set

I try to create programmatically some attributes set. I find this code : $setup = $this->moduleDataSetup->getConnection(); $setup->startSetup(); $categorySetup = $this->...
4
votes
1answer
467 views

Magento 2 hardcoded attribute sets

Is there any reason why Attribute sets are hardcoded in magento 2 in interfaces? Example in Magento\Customer\Api\CustomerMetadataInterface has const ATTRIBUTE_SET_ID_CUSTOMER=1 Magento\Rma\Api\...
3
votes
1answer
7k views

Please re-run Magento compile command?

I am trying to setup one of the magento 2 extension with cygwin which is from this source https://github.com/ibnab/magento2-extension-change-attribute-set and I am getting this error during installion ...
3
votes
3answers
2k views

magento2 create customer attribute

Anyone Can help me, I want to add customer Attribute and i have put my code as below.I have installed it, not getting any error but noting happened. Customer/Attrib/Setup/InstallData.php <?php ...
3
votes
3answers
3k views

Magento as a product information management (PIM) tool for multiple marketplaces (ebay, amazon, Rakuten, etc)

We are selling products on over 10 different platforms, each of which has different category sets. Also, we are selling internationally and a product can belong to different categories on different ...
3
votes
1answer
2k views

Best Practices for Planning Attributes and Attribute Sets

We have a tool shop and anticipate having around 40K simple products. With that we anticipate having around 2500 attribute sets, and as many as 10,000 attributes. I'm concerned about system ...
3
votes
1answer
2k views

Product view attribute value different on two store views

I have a Magento website which uses the value of an dropdown (Yes/No) attribute in a if statement condition. The problem I'm having is based on one store view I'm getting '1' and the other is '0' (...
3
votes
1answer
32 views

Create an Attribute Set and create a Product Attribute in Product Details Group for only One Attribute Set

I asked a question here about this just over a week ago, but it took a little while to edit the post to include some code. The original post and code can be seen here I am able to create an ...
3
votes
0answers
39 views

Magento hierarchical attributes

Does anyone know how to make product attributes visible only when they exist? Ex. you have a T-shirt, models are Spiderman and Thor (model attribute), and available on red, blue and green (color ...
3
votes
1answer
37 views

Mageno 2 after programatically removing product attribute group the attributes are no longer visible

(Magento 2.2.6) Hi, normally when you remove attribute group from an attribute set you still see the attributes that belonged to the group under "Unassigned Attributes" section of attribute set edit ...
3
votes
1answer
156 views

Get attribute groups from multiple attribute sets

I'm trying to retrieve in some custom code the existing attribute groups from multiple attribute sets. For this, I am using the Magento\Eav\Model\Attribute\GroupRepository::getList method with search ...
3
votes
0answers
165 views

Backend Product “General” tab disappearing

Disclaimer: I'm not having quite the same problem as described here What I've done is add an Attribute using Stores > Attributes > Product. In there I entered a name, changed Storefront Properties > ...
3
votes
0answers
84 views

Magento 2.0 rollback to Magento 1.9x - question about attributes

Being a new magento "developer" (use quotes because honestly, I can barely navigate the admin let alone build this site properly!) I still have tons to learn. Recently tried to procure cheap hosting ...
3
votes
0answers
545 views

How to display Attribute Group Name on Product page in Magento 1.9.0.1? [duplicate]

I would like to create an Attribute Sets with more grouped Attribute inside. In admin, the custom attributes are displayed in groups (tabs) as I created them. But, on the product page, all the ...
2
votes
2answers
3k views

Get all Attribute Sets in Static Block

Display all atrribute sets as a dropdown list in a static block.Then selecting one, display all the products from corresponding attribute set
2
votes
1answer
698 views

Saving Attribute Sets - Very SLOW

We have over 1200 attributes sets. Every time we make a change to an attribute set, it takes about 5 minutes to save. We have indexing set to Manual. I'm not sure what else we can do to speed this up. ...
2
votes
2answers
214 views

Different default value of an attribute in different attribute sets

I have attribute sets which I use when adding new products. All products have a weight attribute. I know you can set up a default value which will appear along all attribute sets with that attribute. ...
2
votes
2answers
3k views

Magento 2: How to Change Default Attribute Set & Set Our Own

I have created my Attribute Set. Now all current & future products belongs to that Attribute Set Only. So i want to set my "Attribute Set" as Default. Instead of Magento Default Attribute Set. ...
2
votes
2answers
3k views

Magento 2: How to override Magento\Catalog\Block\Product\View constructor to inject \Magento\Eav\Model\Entity\Attribute\SetFactory

I am attempting to override the __construct method in the Magento\Catalog\block\Product\View block so that I can access the Magento\Eav\Model\Entity\Attribute\SetFactory to get the AttributeSetName of ...
2
votes
1answer
1k views

Programatically created atrributes on layered navigation

I'm creating an attribute set then creating several attribute groups and add them into the previously created attribute set, then createing several attributes and fill them up with options. It goes ...
2
votes
3answers
768 views

When to use Attribute Sets

I'm setting up a Magento site and am so far we're only using the default attribute set which has several configurable attributes. size hat size table cloth size Size and hat size relate to ...
2
votes
1answer
1k views

Are there any mandatory attributes for Products attribute sets?

When building a new Attribute set for Products in the backend. Are there any mandatory attributes that should be included in the custom attribute set?
2
votes
1answer
653 views

Create Attribute set in Magento 2 using Api

I am trying to create an attribute set and assign multiple attribute into it using rest api in Magento2. Please help me in this regard.