We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [attribute-set]

Denotes questions regarding Magento Attribute Set

Filter by
Sorted by
Tagged with
0
votes
0answers
66 views

can not create or edit attribute set

When I want to create a new attribute set, magento can not complete the process and the browser error "This page isn’t working" and if I want edit a attribute set that I created before magento error ...
1
vote
1answer
534 views

Magento2 : getting 503 Service Unavailable error on change attribute set in product

In my magento2.x store when I change attribute set then the post request return "503 Service Unavailable" error in console. POST request is : /catalog/product/reload/id/296/type/configurable/store/...
1
vote
1answer
115 views

Get related products per attributeset ID

My products have a bunch of related products, some of which are in a separate attribute set. I want to split these out in two different views on view.phtml. I figured to need addAttributeToFilter and ...
5
votes
3answers
478 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 ...
0
votes
1answer
139 views

Magento 2.1 Rest API save attribute group does not change attribute_set_id

Preconditions Magento 2.1.7 PHP 7.0.18 Steps to reproduce 1. Having a test attribute group: { "attribute_group_id": "103", "attribute_group_name": "Test", "attribute_set_id": 4, "...
1
vote
0answers
333 views

Magento : Layered Navigation on CMS Page is Only Filtering by 'Default Category'

I have a CMS page which displays products filtered by attribute (using 'Product List Plus' Magento extension widget). I am trying to get layered navigation to display on this CMS page to be able to ...
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 ...
0
votes
2answers
208 views

I have added new attribute set in magento 2.1.3 community edition, somehow I'm getting following error

1 exception(s): Exception #0 (LogicException): Method 'getExtensionAttributes' must be overridden in the interfaces which extend 'Magento\Framework\Api\ExtensibleDataInterface'. Concrete return type ...
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 ...
2
votes
1answer
199 views

Magento 2:Msrp in list page

I have extended the phtml file /vendor/magento/module-catalog/templates/product/price/amount/default.phtml`. I want to get the msrp price and attribute set id in the extended template in both list ...
1
vote
0answers
72 views

Magento 2 - many attribute set, bad admin catalog perfomace

I'm using Magento 2.1.3. Everything had worked ok till I've imported bunch of attributes and attribute sets. Now I have 74 attribute set, and 705 attributes. I've imported these via Store Manager. ...
0
votes
2answers
900 views

Getting value from product attributes in Magento 2

I have custom attributes for my products. Some attributes are in text format and some are in select list. I want to print those attributes in my template. Here is code I am using: ` $attributes = $...
2
votes
2answers
1k views

Map attribute set based on Default attribute set programatically in magento 2

I have below script for creating attribute set, sets are created, but none of the attributes are assigned to based on the Default. How do i map the attributes sets to have the default attributes? ...
0
votes
1answer
188 views

How to create attributes programmatically in magento?

I have different attributes in a product coming from opencart. Now i want to insert these attributes in magento and then assign attributes to configured products.
1
vote
0answers
27 views

Add property to AttributeSet class/database

I'm working on an import algorithm and I have to keep different IDs to identify attribute-sets at a later time. Is there an option to extend the class/database-object of attribute-sets? I mean not ...
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 $...
1
vote
3answers
3k views

Display navigation layered filters only on subcategory page, not on main category in Magento 1.9.3

The quick question I have is how can I display the layered navigation filters only on the subcategory page, not on the main category? Because I have 3-4 attribute sets, one for each subcategory. root ...
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?
0
votes
1answer
806 views

How to create custom atribute set using upgradeData in magento 2

I am trying to create custom attribute set by using upgradeData script in magento 2, but it doesn't create. Can anyone give me an advice?
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 > ...
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 ($...
1
vote
1answer
568 views

Importing attribute sets into Magento programmatically? Magmi?

Is there any way to import attribute sets into Magento? I'd like to be able to import products into attributes within new attribute sets. I've seen the Magmi import documentation but don't understand ...
0
votes
1answer
124 views

Attribute Set & Attributes Best Practices

So I have a fashion online store, and I'm currently faced with two options when planning the content structure and the attribute set. Lets say I have a size attribute, that have different options ...
2
votes
1answer
4k views

Magento 2 : How to get attribute group id using attribute set id ?

I need to get all the attribute group id associated with the product. Code: $product_coll = $block->getProduct($product_id); $pattr = $product_coll->getAttributeSetId(); $attrCodes = $...
0
votes
1answer
2k views

How do you remove the short product description from the product page Magento 2

I don't want the short description to show up on my product pages. How do I get rid of it? I am in Magento 2.1.2. I've tried deleting it from the attribute set but it won't let me remove it. Perhaps ...
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.
0
votes
1answer
4k views

Magento 2: get attribute set name for a product in phtml file [duplicate]

I try to get the attribute-set name for a product in a phtml file. In magento 1 the code for this is: $id = 2; $product = Mage::getModel(‘catalog/product’)->getCollection->load($id); $...
1
vote
2answers
2k views

How to get products with a specific attribute value

How can I get the products with a attribute (attribute name is "use_state") value of "new"? I added an attribute called "use_state" and an attribute set with that attribute. Then I created some ...
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. ...
1
vote
0answers
14 views

Scroll 100's of attribute sets when creating a new product

I have to create 100's of different attribute sets for our products. To filter all these products I use: first filter: scope area second filter: application So, when I have to create a new product, ...
0
votes
1answer
77 views

Updating product attribute

Suppose a product has five attributes. If you want to update one of the attributes, do you have to reference all existing attributes? Or will Magento remove attributes from the item if the attributes ...
0
votes
2answers
564 views

Media image attribute empty in backend

I have added a new media image attribute also added in the Attribute Sets but its not showing at all in the backend. Any ideas ?
2
votes
2answers
1k views

Set attribute value from other attribute

I have custom attribute 'brand'. I should set its value in attribute 'manufacturer'. How can i do this? For now, all that i cat do -> shell file require_once dirname(__FILE__) . '/../app/Mage.php'; ...
0
votes
1answer
62 views

Help with attribute on front-end and php code

So I have an attribute showing up on front end for each product. Front-end (Currently): 1: http://i.stack.imgur.com/bEVcq.png What I need: 1: http://i.stack.imgur.com/COctc.png Back-end code: <...
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/...
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. ...
1
vote
1answer
183 views

get attribute to create configurable product

i want to create configurable product. when i select attribute set how can i get related attribute to create configurable product? i use this code to select attribute jQuery('#attribute_set_id')...
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?
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 ...
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.
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.
1
vote
2answers
2k views

How to use a Media Image Attribute

Magento 2.1.1 I added a product attribute media-image and I added it in the attribute set. I then can add images in my product and select one to play this role. But how do I call this image in my ...
1
vote
1answer
46 views

Custom attribute dropdown

I am overriding the catalog/product/view/type/options/configurable.phtml file, but I notice how frustrating it is to change the style of the <select> and <option> elements. Is there a way ...
2
votes
1answer
733 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 ...
0
votes
2answers
266 views

Get attribute from multiple attribute sets

I'm trying to select all products with an attribute called uitgelicht_product set to Ja. It's not the first time that I'm doing this and it usually goes well, but this is situation is a bit different, ...
1
vote
1answer
149 views

merge two attribute sets to one attribute set

Except deleting one attribute set and merge its attributes to the other attribute set. Is there any easy way to merge two attribute sets to just one attribute set for Magento 1.9.2?
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
214 views

Add attribute group to only 1 attribute set

I use this code to add attribute group 'test1' into attribute set 'test'. But it always add to all attribute sets. $attributeSetId = $model->getAttributeSetId('catalog_product','test'); $...
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
0answers
31 views

Select Fabric First Then Color?

How can I set up attributes that if i pick this fabric, I get these color options, or if I select that fabric, I get a second list of colors?