Questions tagged [attributes]

Magento Entity Attributes

725 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
0answers
869 views

Magento 2.2.1: Add Custom Upload file attribute in Checkout

I tried to add an Upload file attribute to the Checkout form, I am now able to add custom field, but still, I am unable to save values to database - I used add Plugin - added Below code Amit\...
7
votes
1answer
960 views

In Magento 2 , configurable product options disabled after the first selection.How to reset option?

I am using Magento 2, I have some Configurable Products with a lot of variants (in some cases there are 5 attributes, each with several options). Each variant has a Simple Product associated with it, ...
7
votes
2answers
4k 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. ...
7
votes
1answer
2k views

Custom /catalogsearch/ filters

Beforehand I have to tell: I'm a total n00b on Magento and what I need to know is more a "common practice" or "standard" about how is something achieved in Magento, since I have to maintain (in record ...
5
votes
1answer
151 views

many-to-one product attribute

I need to add an attribute that allows multiple values - but not from a set of pre-selected values, not multiple select but multiple text fields. One product, one or more values in the one field. ...
5
votes
0answers
2k views

Magento 2 - Export/Import Product Attributes

I'm trying to export my Product Attributes from one store to a new clean store database. I created a mysqldump for the following tables: catalog_eav_attribute eav_attribute_group eav_attribute_label ...
4
votes
0answers
94 views

How to add svg icons to Swatch attribute (disable admin panel file validation)?

Currently, I can load png/jpg files in swatch attribute, but when I tried to load save attribute with loaded svg file, it's not working. When I load svg from servers - it displays well, but when I ...
4
votes
0answers
235 views

Magento2 : How to add row/pattern type of customer attribute

How to add a row/pattern type of custom customer attribute (dynamic rows). We have the below attribute in Magento 1, we need to achieve the same in Magento 2. I don't find any code reference for this,...
4
votes
0answers
67 views

Magento 2.2.7 error when using bulk attribute update when item is enabled

When trying to use the bulk update attributes I get the following error: Exception message: Required parameter 'theme_dir' was not passed I've been chasing this error for the last 2 weeks. At ...
4
votes
1answer
255 views

Update select attribute in custom_attributes via catalogProductRepositoryV1 API PUT request

I'm trying to update a product with the catalogProductRepositoryV1. I want to change a custom select attribute for the given product. When sending the following request: { "product": { "...
4
votes
0answers
253 views

Unable to update custom product attribute value programatically

I have created a few custom product attributes in Magento 2.2.6 and have no problem saving a new product with these new attributes, load this created product, and update the standard Magento ...
4
votes
0answers
143 views

Apply unique images by attribute to each sku magento 2 programmatically

In magento2 - How can I perform this task through a script? I already relate the configurations to the product with this segment $attributeModel = $this->objectManager->create('Magento\...
4
votes
0answers
132 views

Custom additional custom address attributes not getting saved

I have created two custom address attribute latitude and longitude in custom address and they are showing fine in backend. However when I am creating a new customer from backend filling some value to ...
4
votes
0answers
48 views

How can I create a key value input type for a product attribute?

I'm trying to get a table on a product page that exists of 2 columns. I want to use this to display technical details about that product. The first column would have a value like: 'volume' and then ...
4
votes
0answers
791 views

Multiple Category Image Attributes Not Working Together (Uncaught TypeError: value.map is not a function)

I've created a custom module to get an additional image uploader on my categories using the following tutorial. https://belvg.com/blog/how-to-add-image-attribute-to-a-category-in-magento-2.html It ...
4
votes
0answers
364 views

How can I remove a custom attribute from a product via REST?

I can add or change a custom attribute of a product, i.e. via curl -X PUT --header "Content-Type: application/json" \ --header "Accept: application/json" \ --header "Authorization: Bearer MYTOKEN" -d ...
4
votes
1answer
596 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\...
4
votes
1answer
3k views

Color swatch and text swatch issue in magento 2

If I used color and text swatch in magento 2, sequence/order of option isn't changing. I mean I want to show 1. size 2. color but it always show 1. color 2. size if I used dropdown instead of ...
4
votes
1answer
778 views

Layered navigation showing child brands with bundles

Using Magento 1.9.1 and have a problem with Layered navigation and bundle product brands. I have many simple products that can be part of any bundle product. All of them can be with different ...
3
votes
1answer
132 views

Magento 2 - Clean SEO URL with attribute

We run Magento 2 - 2.1.6 Question: If I create a link based on layered navigation attributes (storeurl: /clothes?cat=1029&gender=124) for example. We get a lot of errors regarding Google Search ...
3
votes
1answer
162 views

More than one Free shipping issue with Shopping Cart Pricing Rule If General Free Shipping Enabled?

I have applied free shipping for purchase over 1000, If i try for free shipping specific products which is below 1000 using Shopping Cart Price Rule Free shipping not applying, Note : Created ...
3
votes
0answers
229 views

Manage Brands / Manufacturers in admin. Show brand logo and story in Product Page

I am looking for a best practice to show content about the manufacturer/brand on a product page. For example brand logo and story/description. This could be achieved just by importing the description ...
3
votes
0answers
70 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
47 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
310 views

Magento 2 - Configurable product with multiple price attributes

I'm facing a dead-end with my configurable product and my simple products. Right now, i am struggling setting up my configuration prices in a way that make sense for my products. Since Magento 2 , ...
3
votes
0answers
31 views

How to create a new attribute with two text fields for product in admin

How to create a new attribute with two text fields for product in admin Please find the below screenshot
3
votes
0answers
118 views

No results on layered navigation when filter applied

In Magento2 - We have a Multi-Store site with product category pages, with some attributes enabled in layered navigation. The fact is that in certain stores, filters counts shows the items per filter ...
3
votes
0answers
294 views

Magento 2: Filter by custom product/category attribute returns 0 results

I created a bool (int) attribute with a default value of 0 for both category & product entities. I reindexed, cleared cache, etc... Now, no matter what I do, I can't filter the collection using ...
3
votes
0answers
228 views

Magento 2: Show/Hide product attribute based on other attribute value

I created two custom attributes for product. One attribute is of type drop down and other attribute is of type multi select. I want to hide multi select type attribute when drop down attribute is ...
3
votes
1answer
643 views

Magento 2.2.1: Attribute values sort by name

I write here for an help. Magento 2.2.1: For a few days I'm using Magento 2, after I used it for a couple of years Magento 1. I am aware of the presence of an important discomfort: attribute values ...
3
votes
0answers
407 views

Magento 2: products collection with multi-selected values of multiple attributes

I have numbers of custom attributes with multiple selected values in magento catalog. I need to filter products by multiple attributes having multiple selected values. eg: Attribute set having a ...
3
votes
0answers
495 views

using swatches instead of dropdowns 2.1

Is there an option in admin to show swatches instead of drop downs? I seem to remember there being an option in magento 1.9 to do this but can't seem to find it in admin here. Just to clarify this ...
3
votes
1answer
181 views

Magento 2.1 :how to create export module in product attribute and attribute set

How to export attributes in magento 2.1 backhand ,like when i want to export attributes of particular attribute set
3
votes
0answers
923 views

Magento2: How to show Product Weight on Filter

Need to show Product Weight on Category Page Filter, so Customer can also filter via Weight. A user can also enter the weight in Text Box & Search, so it's vice versa between Slider & Textbox....
3
votes
0answers
585 views

Display Country of Manufacturer on Category Page Navigation Filter

When we add a product from Admin. We have field "Country of Manufacturer". Would like to display that as Navigation Filter on Frontend. From Admin -> Product Attribute By Inspect Element, able to ...
3
votes
0answers
55 views

Add text into attribute options

I want to add some info text to every option under the attribute Color. For example in Color with label Red I want to add the text "Color red is a color that we are using under the products...etc" ...
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
374 views

REST products web service filter by Price Attribute

Magento 1.9 provides a web service for products but the response parameters that are different for customer/guest and admin. The problem is that there is a price field in Admin response that gives ...
3
votes
2answers
1k views

Custom Attribute in Layered Navigation

I have a custom attribute called m2_price, which is the Metre Squared price of a piece of carpet. I've enabled it to be filterable with results in the layered navigation and this all works fine. ...
3
votes
1answer
583 views

Sorting Attribute (with custom source model) by dropdown label

I have a custom attribute called collection (in retrospect, a horrible name all things considered,) with a custom attribute source model. The important part is here: public function getAllOptions() { ...
3
votes
1answer
431 views

2.1.8 CE - Unable to set attribute set for new product

I have a clean install of Magento CE 2.1.8 and then imported my data from Magento 1.9. Now when I want to add new products on my old attribute sets which were created on M1, page is loading over and ...
2
votes
0answers
95 views

Magento2 filter products based on location (custom attribute) programmatically

I have a Magento2 Store (v2.4) where I have multiple locations. for (eg. Jaipur, Delhi, Mumbai etc). I have managed locations using custom attribute using multiple dropdown list and assigned it to ...
2
votes
0answers
67 views

Add Product Name to Advanced Pricing Export

I'm attempting to add the "Product Name" attribute export the Advanced Price List in Magento 2.3.4 but I cannot seem to get it to work. I am attempting to modify the AdvancedPricing.php ...
2
votes
0answers
26 views

Getting Error: Attribute ktype_motors exceeded max length

In my Magento Project at the time of updating products to the store programmatically, I am getting below import error: Following Error has occurred during the importing process: Attribute ...
2
votes
1answer
50 views

How to update custom product multiselect attibute in magento 2.3.3

I have an existing product with a multi-select attribute and I need to update that multi-select attribute update programmatically. So how can I Update that option selected through programmatically? In ...
2
votes
1answer
34 views

How to add attribute manage options image in magento 2.2.7

I have created the manage option attribute for product attributes. description,image and use_in_guide ina Manage Option section. I able to save the image, description but image data value is not ...
2
votes
1answer
167 views

How to add customer Attribute inside custom tab section insted of “Account Information” in magento 2?

I have created customer Attribute programmatically and need that attribute to outside of "Account information" tab... means in custom tab. I have tried with customer group.... ui component file as ...
2
votes
0answers
86 views

Magento 2: Retrieving and updating Attribute Options and Store Lables

I am currently trying to update an attribute options store label and facing some issues. I can successfully update option store labels by calling $storeLables = []; $optionLabel = $this->...
2
votes
0answers
47 views

Add Attribute Bulk Value Using CSV File in Magento 2.3.3?

I have Magento 2.3.3 Store And I have too many Product Dropdown Attribute And One Attribute have a something 500 1000 value. So How can I add multiple values using CSV file or other options so, ...
2
votes
1answer
165 views

How to rename third-party table from our module in Declarative Schema in Magento 2.3.0?

I wanted to rename table ThirdParty to NewTable So I wrote the following code: <?xml version="1.0" ?> <schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...

1
2 3 4 5
15