Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [eav-attributes]

Questions about Magento's Entity Attribute Value (EAV) implementation

0
votes
0answers
23 views

Reindexing issue after upgrading to magento 2.3

Preconditions (*) Install Magento 2.2.x Make custom multi-select product attribute with the source model Steps to reproduce (*) Upgrade above magento2.2.x to magento2.3.1 Reindex Data Expected ...
2
votes
0answers
26 views

Notice: Undefined index: magento_eav_attribute_set in/vendor/magento/framework/Setup/Declaration/Schema/Db/SchemaBuilder.php on line 152

bin/magento setup:upgrade Notice: Undefined index: magento_eav_attribute_set in /vendor/magento/framework/Setup/Declaration/Schema/Db/SchemaBuilder.php on line 152 If I understand correctly this is ...
1
vote
0answers
35 views

How to create an extra field in attribute information

I am trying to add a field to the attribute information section. This should be an text field for multistore ( just like the manage titles section). Magento version: 2.2.6 Here's what I got now: I ...
0
votes
0answers
20 views

Magento Fatal Error on Running Installation

I am facing below Fatal Error on Magento Running installation, Fatal error: Uncaught Error: Class 'MagentoEavModelEntityAttributeSourceTable' not found in /var/www/magento/vendor/magento/framework/...
0
votes
0answers
13 views

Magento2 Tax/VAT field not showing properly in customer registration based on admin configuration

I have Two Website in my magento2.2 webA & webB I want "Tax/VAT number" field in different scenarios on my website webA enabled and required webB enabled and optional I did the ...
0
votes
1answer
13 views

how to make VAT Number optional in magento 2 checkout for new customers

I enabled the VAT Number in Magento 2 admin I want to make the field is optional how i can do this??
1
vote
1answer
24 views

Magento 2 : get custom attribute options from custom eav entity type

In magento 2.3.1, I created custom eav_entity_type and attribute also assign under that custom eav_entity_type. Now, I added attribute options programmatically in that attribute and that record I ...
0
votes
1answer
24 views

Magento 2 - Hide/Show custom EAV attribute after if condition

I created a new EAV attribute using this code : 'information', [ 'group' => 'Content', 'type' => 'int', 'default' => null, 'global' => \Magento\Eav\...
1
vote
0answers
73 views

Magento 2 : Custom eav type attribute options returns allow memory size error

I created custom eav attribute and set in custom eav type. This is my attribute code : $attributes['custom_country'] = [ 'group' => 'General', 'type' => 'int', ...
0
votes
1answer
39 views

Should Magento\Eav\Model\AttributeRepository save 'used_in_forms' attribute value?

I add EAV attribute to a customer address. I can use \Magento\Customer\Model\ResourceModel\Attribute $attributeResource to save the attribute. According to Magento DevDocs https://devdocs.magento.com/...
3
votes
1answer
56 views

Doubt about attributes (getting the brand)

I am a little confused about attributes whether they are simple eav attributes or not. I dont fully understand when an attribute has option or option value. How can i check it? So, for example in ...
1
vote
0answers
18 views

Magento2 Create extra column in eav_attribute and eav_attribute_option table

I have created one extra column in the eav_attribute and eav_attribute_option table. Now I want to store values in those tables when I will create new attributes. Please suggest options.
0
votes
0answers
29 views

Magento2 add custom column in eav_attribute, eav_attribute_option table

I am trying to integrate 3rd party product API with magento2. I have some attributes(Like color, size, season) for which API product some master entries. I want to add those entries in magento2 EAV ...
0
votes
3answers
129 views

Magento 2 : get custom attribute value display blank

In Magento2 , I need to get eav attribute value in category data. I used this below code. But, it's not working. /** \Magento\Catalog\Model\CategoryFactory $categoryFactory**/ $category = $this->...
0
votes
1answer
25 views

Create attribute for several product

I have many hundred products and I want to create a product attribute to apply to all of them but with different value. But I don't want to change the attribute product by product, it would take so ...
0
votes
1answer
25 views

Is there any event on which we can observe eav attribute option save

I tried eav_entity_attribute_save_after but its not working. Which event triggerd during eav attrbiute save can anyone please help me on this.
2
votes
1answer
48 views

Magento 2.3 - The correct way to get custom attribute

I have added the custom attribute referral_code of type static to the customer entity. The attribute showing up correctly, and I can get/set it in easy way with $customer->getReferralCode() and ...
3
votes
1answer
52 views

Magento 2 - Add Customer Attribute with Select Field

I'm trying to insert a customer attribute in magento 2 This is the InstallData script: use Magento\Framework\Setup\InstallDataInterface; use Magento\Framework\Setup\ModuleContextInterface; use ...
0
votes
0answers
39 views

Export functionality not working properly with EAV UI Grid

I have added Export button on UI grid in my custom module. Module is create with EAV structure. But when i try to export in CSV only ID Column's data is export, Other column's data are missing. I ...
2
votes
1answer
33 views

How to update existing entity type values in Magento 2?

I created custom entity type which existing in eav_entity_type table. But, I want to update value of entity_model, attribute_model & etc. How to update it? Any help would be appreciated.
2
votes
0answers
28 views

Magento 2: Custom product attribute in FinalPrice afterGetValue

I have created a plugin to modify the final price with afterGetValue. <type name="Magento\Catalog\Pricing\Price\FinalPrice" shared="false"> <plugin name="my_module_plugin_product_price" ...
2
votes
1answer
311 views

Magento 2 : addAttributeToFilter, addAttributeToSelect, addFieldToFilter not working

I created eav entity module. But, when I use this addAttributeToFilter, addAttributeToSelect, addFieldToFilter function in my custom module collection. It's not working. My collection file : I ...
5
votes
1answer
44 views

How to use custom source model in eav_attribute

Ho can I use a custom source in the source_model of the eav_attribute table? Thats my source * * @category Mcas * @package Mcas_Industries * @copyright Copyright (c) 2019 * @license http://...
0
votes
2answers
58 views

How to set value for radio button in EAV attribute of product type?

We can add simple boolean Radio buttons as EAV attribute in install schema by this code: "type" => "int", "backend" => "", "label" => "Test", "input" => "...
2
votes
1answer
47 views

Adding data to EAV attribute deprecated

I have an existing module with code like this: $attribute = $customerUpgrade->getEavConfig()->getAttribute(Customer::ENTITY, 'my_custom_attribute') ->addData([ 'attribute_set_id' ...
1
vote
1answer
258 views

Attempt to load value of nonexistent EAV attribute for entity type Magento\Catalog\Api\Data\ProductInterface magento 2.3

Actually i am getting this error while editing products from product grid magento2.3 Actually i deleted some custom attribute using code as well as manually from backend after this i got ...
0
votes
1answer
134 views

Error after creating boolean attribute magento2

I have created a boolean attribute using below code. $setup = $this->_objectManager->get('Magento\Framework\Setup \ModuleDataSetupInterface'); $eav_setup_factory = $this->...
3
votes
2answers
177 views

Which entity allows scoped attributes?

/vendor/magento/module-eav/Model/Entity/Attribute/ScopedAttributeInterface.php There are 3 defined scopes /** * @api * @since 100.0.2 */ interface ScopedAttributeInterface { const ...
0
votes
0answers
128 views

Magento2 - category update attribute and add attribute not working together?

I need to change existing category attribute code from "thumbnail" to "thumbnail_migration" and just after that create a new category attribute with name "thumbnail". In upgrade data I have ...
1
vote
0answers
90 views

Error with Magento\Eav\Model\Entity\Attribute how to fix?

I have this error, 1 exception(s): Exception #0 (Exception): Item (Magento\Eav\Model\Entity\Attribute) with the same ID "87" already exists. it seems to me that there must be a duplicate row ? But ...
1
vote
0answers
28 views

“Custom Attribute” is a required field Error Message - Custom customer Attribute on register user

Hello I added an custom customer attribute "kndnumber" to my register page. Attribute is successfully created in DB. My Problem is when I submit the user register request the error Messsage "...
0
votes
0answers
38 views

Attribute Filter Not Working in Magento 2

I have two attributes option_id. 141, 633. I need to get the attribute_id for those attribute option id value and get attribute_code. when I loop the one option id at a time the below code is working ...
3
votes
0answers
29 views

Is it possible to reduce the default varchar size in catalog_product_flat? (M2)

I have a seemingly common problem. With too many custom attributes that are necessary and no way to change them in a way that would make the use of the default flat catalog possible I am searching for ...
0
votes
1answer
350 views

Update attribute Option label with id magento2

I am trying to update attribute option label with attribute optionid. Used below code. class Attribute { protected $eavAttributeFactory; public function __construct( \Magento\Eav\Model\...
0
votes
0answers
24 views

How can I get rows from the eav_attribute_option_swatch table

How can get some rows from the eav_attribute_option_swatch table ? Is there a model that I can use, if so how do i use it. Maybe there is something like get entity by id. (I have the option_id of ...
3
votes
2answers
400 views

Migration : Incompatibility in data. Source document: eav_attribute_group

I face issue when migrate from Magento 1 to Magento 2.3 Incompatibility in data. Source document: eav_attribute_group. Field: attribute_group_name. Error: The product attribute set "Testing" does ...
0
votes
0answers
100 views

Call to a member function isStatic() on boolean in vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php:483

Whenever I run bin/magento indexer:reindex I'm faced with the following error: PHP Fatal error: Uncaught Error: Call to a member function isStatic() on boolean in /var/www/public/vendor/magento/...
1
vote
1answer
125 views

How to change the Scope of a product system attribute like Status from website to global - Magento 2.2.5?

In my Magento 2.2.5 store, how can I change the scope of one of the product system attributes e.g. Status. There is a is_global field in the table catalog_eav_attribute. Do I have to change is_global ...
1
vote
1answer
758 views

Magento 2 attribute backend_type static vs varchar

Is Magento attribute value saved in database table static and varchar identical? when and why to use static backend_type instead of varchar?
2
votes
2answers
362 views

Customer custom attribute not being saved

I'm using magento v2.5 and i tried to create customer programmatically from frontend and backend, i share the same code between frontend and backend, after customer being save then i try to save the ...
2
votes
1answer
400 views

get eav attribute collection Code format in Magento2

I am migrating m1 code to m2, below is the code i used in m1 to get eav collection. $customerattrs = Mage::getModel('eav/entity_attribute')->getCollection(); $customerattrs->...
2
votes
0answers
78 views

Add one more data to the magento 2 eav_entity_type table

I am trying to add quote_address resource model to the eav_entity_type table, and add two eav_attribute to it, but not being able to do it. Following is my UpgradeData file under the setup folder of ...
2
votes
0answers
117 views

How to use modifier in product_action_attribute Form?

I have created an eav attribute and modified the field inside edit product form, that was easy. But in products mass action (Update attributes) page, the field I have created, by eav Attribute and ...
0
votes
1answer
228 views

Magento 2 Where is Product attribute Website_id stored in DB?

In Magento 2, when editing a product, we can choose which website this product belongs to. But I can't find where is this information stored in the database. I have checked eav_attribute, and I found ...
1
vote
1answer
334 views

Custom customer attribute not saving

I have created a custom customer attribute using the following code: <?php namespace MyNamespace\AccountActivated\Setup; use Magento\Eav\Setup\EavSetup; use Magento\Eav\Setup\EavSetupFactory; ...
2
votes
1answer
665 views

Magento2 custom attribute default value

Are default values for custom attributes taken into account at all? Create a yes-no/dropdown/text attribute, set a defautl value, add it to an attribute set. Open a poduct to edit it. Expected ...
1
vote
2answers
2k views

Magento2 : user define customer attribute not save value while create / save from admin

I have created two customer attribute one "abc" and second is "xyz" this two attribute display properly in customer admin. also attributes are created in database table "eav_attribute". But while save ...
0
votes
2answers
219 views

Magento 2.2 - Load eav attribute data for every product on collection load

I've created a multiselect custom eav attribute based on a flat table, so I used a dataSource, for a product everything is working fine, API (SOAP & REST), display on the product page etc but I'd ...
0
votes
2answers
113 views

Magento error : when creating attribute

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`bikeplus`.`eav_attribute`, CONSTRAINT `...
0
votes
1answer
547 views

Pull custom customer attribute and send in email? Magento 2.2

I am working in Magento 2.2 and I am using an extension which allows the site admin to confirm new accounts before they are active. The extension can be found here: https://github.com/enrico69/...