The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [attribute-set]

Denotes questions regarding Magento Attribute Set

Filter by
Sorted by
Tagged with
1
vote
3answers
3k views

How to get the attribute id by attribute code in magento 2

I have the attribute code, But how do I check whether the attribute is exist in the attribute set or not. Please provide me a solution how to get the attribute id from attribute code in magento 2
0
votes
1answer
617 views

How to change the attribute set of the product via programatically in magento 2

I have created custom attributes for the attribute sets namely set1 and set2. I have created the products via script with attribute set name as set1. The products are saved successfully. But Now I ...
0
votes
1answer
27 views

Discount attribute is not visible in attributes set

I am new to Magento 2 and I am wondering why discount attribute is not visible in the store -> Attribute set -> Default -> Groups. I checked that the discount attribute is present in the ...
1
vote
0answers
16 views

Magento 2 exclude products from catalog price rules

I'm facing this problem. I have around 70 products in different categories and different attributes sets, but with the same common attribute (SKU). I have 3 catalog price rules which applies ...
0
votes
1answer
12 views

Magento 2 Exclude specific products from catalog price rules

how can I exclude specific products from Catalog Price Rules?. I have 3 price rules that applies to all products depending on the customer group, however I don't see anything in conditions that can ...
0
votes
1answer
2k views

How to export all the attribute and its options in magento 2

I wish to export all the attribute and its options in magento 2 via script. Please provide me a solution, How to export attributes and its options
0
votes
1answer
655 views

Magento how to set attribute seo meta title and description product

I have a catalog of 30,000 products on Magento, and I would make sure that the plugin I of seo (free) all products have tag, store name, category name. I turned on the network, to see how to build an ...
1
vote
1answer
35 views

Attribute set is missing after upgrade to magento 2.2.9 from 2.2.6 which is migrated website from magento 1.x

I had migrated Magento 1 website to Magento 2.2.6, so after some days i had upgraded my Magento version to 2.2.9, after upgrade i can see that my attributes sets are missing and when i checked into ...
0
votes
0answers
35 views

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'e.attribute_set_id'

I am trying to Filter the products based on vendorid with attribute_set_id. if i use print_r in the collection i am getting the result like below $objectManager = \Magento\Framework\App\...
5
votes
3answers
130 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-&...
1
vote
2answers
789 views

What is the difference between eav/attribute and eav/entity_attribute?

Looking at eav_setup file and trying to understand the difference between the eav/attribute and eav/entity_attribute table. If I have to guess, eav/attribute is the entity that represents the ...
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. ...
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. ...
0
votes
1answer
627 views
0
votes
1answer
15 views

How can I add an attribute to all products?

How can I add an attribute to all products? Now i am adding this attribute to all sets. Is there a way it can be done faster?
0
votes
1answer
617 views

Importing Products, Super attribute not allowing any other from that attribute be selected in admin panel?

I am having an issue with importing a defined configurable product not allowing anything from that attribute set to be selected from the admin panel. I am getting results like this Here is an example ...
2
votes
1answer
729 views

Show or hide Attribute that is used in layered navigation based on category

By default, if an attribute is set to Use in Layered Navigation > Filterable (with results), then this attribute will be shown on layered nav's of all categories /attribute-sets that use this ...
2
votes
1answer
98 views

Cant drag back product Attribute to unassigned attribute in Magento 2.2

Cant drag back product Attribute to unassigned attribute in Magento 2.2 I am not removing a default attribute, its created by me Manufacturer.
0
votes
2answers
2k views

Magento2 How can get the Attributes based on the Attribute Set Id or Attribute Set Name

In Magento2, How can get the all (product) Attributes based on the Attribute Set Id or Attribute Set Name in the Custom Product List Page.
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 ...
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: ...
0
votes
1answer
30 views

Magento does not use specified default value on attributes of type yes/no

I added a new attribute with Default Value set to Yes. I added the attribute to my attribute set and edited the product, but it is set to No by default. How can I fix it?
0
votes
1answer
91 views

Magento 2.3 - what's in the Default attribute set? (migration wiped it)

I have used the Data Migration Tool and now am cleaning my migrated attribute sets, wanting to remove attributes that dont make sense. My attribute sets have many groups called Migrated_ and a few ...
5
votes
3answers
15k 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 ...
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....
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 ...
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 ...
1
vote
2answers
622 views

value of specific group attributes of product

in manage attributes set say default i created a group say "my custom group" now i want to get value of all attributes under this group for current product how can i do this?.. $attributeValue = Mage:...
0
votes
0answers
32 views

Magento 2: Snippets for call (get) product attributes incl. helper via if statement in phtml to get the values in custom tab in product page

Trying to reproduce the phtml files content from M1.9 to M2.3. Calling a phtml file via: {{block class="Magento\Framework\View\Element\Template" name="delivery" template="Magento_Theme::html/...
0
votes
0answers
44 views

Attribute Groups not saving in magento 2 from admin panel

I am trying to add a group to an attribute set from admin panel, but it is not getting saved. But without adding any group name it is getting saved. When ever adding new group name and saving I am ...
1
vote
0answers
43 views

Attribute set sort order has gone - how to rebuild?

This code returned attributes set for dropdown menu - ordered by attribute set name ... $sets = Mage::getResourceModel('eav/entity_attribute_set_collection') ->setEntityTypeFilter(Mage::...
2
votes
0answers
41 views

Product dimensions visible on product configuration page

How to get these attributes visible on product configuration page? ts_dimensions_height ts_dimensions_length ts_dimensions_width I already added them to my attribute-set, set 'Visible' ...
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.
3
votes
1answer
36 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
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 ...
4
votes
3answers
322 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->...
3
votes
1answer
31 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 ...
2
votes
1answer
727 views

An error occurred while saving the attribute set. magento 1.9.1

I am trying to save to attribute in attribute set but getting error like An error occurred while saving the attribute set can anyone help. In Exception Log file getting below error Exception ...
2
votes
0answers
777 views

Migration: How can I map own product attributes and attributesets in Magento 2?

I tried several migration ways for products from Magento 1 to Magento 2: Data-Migration-Tool by Magento Including mapping but only for documents (tables) and fields (table columns). Another problem ...
0
votes
0answers
19 views

Attribute Sets: pros & cons of using a few broad ones vs many specific ones?

Is it better to have a small number of very general Attribute Sets or a large number of very detailed Attribute Sets? Why? Obviously it depends on a lot of factors (eg: the number of products, how ...
0
votes
1answer
22 views

Need to remove a product page statement

There is a statement that needs to be removed from all products that are in 1 attribute set. It is not located in the short description but is located just below. Thoughts on where I might find and ...
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(); //...
0
votes
0answers
16 views

'Select Configurable Attributes section' screen does not appear when creating a new simple product

I've attached the attribute size to the attribute set clothing. However, when I want to create a new simple product, after Create product setting screen, I don't get the Select configurable Attributes ...
3
votes
0answers
544 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 ...
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 ($...
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 $...
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 ...
1
vote
1answer
264 views

Why Product attribute assigned to all attribute set

While creating set of product attributes via program, it gets assigned to existing Product Sets as well as to newly created Product Sets. I don't want to assign those created attribute to any ...
0
votes
1answer
60 views

make custom attribute set as default selected

I have created new Attribute set say "My attribute set" . now when i add new product "default" one is selected by default , i want my custom attribute set to be selected as default one . i can not see ...
0
votes
1answer
1k views

Magento 2.2 - How to change default attribute set

I have two attributes sets Set1 Set2 While adding the product, By default Set1 is selected for Attribute Set. I want this default Attribute set to be Set2. How to change this attribute set. ...