Stack Exchange Network

Stack Exchange network consists of 174 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]

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

0
votes
0answers
5 views

Magento 1.9.2. - Set Order by position attribute value of associated products

I'm trying to order my foreach for the products associated with the configurable product. I would like the values ​​to be printed in ascending order by position relative to the size attribute. At the ...
0
votes
0answers
21 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 ...
0
votes
0answers
8 views

Magento 1.9.2. - foreach remove duplicate from options attribute value

I'm pulling out all the values ​​of the color attribute of the products associated with the product configurable with this foreach. foreach($simple_collection as $simple_product){ echo $...
0
votes
1answer
33 views

How to create a custom tab with custom attributes in Customer admin

I am a beginner in Magento (version 2.3). I am looking for a solution to create a form with custom attributes, which would be displayed by clicking on a custom tab in Customer admin. I have ...
0
votes
0answers
12 views

how to get all the attributes and values for all product entities from product collection model

i have created a custom attribute user_id of [type => int] for catalog_products_entity in my Install Data script $productSetup = $this->eavSetupFactory->create(['setup' => $setup]); $...
0
votes
1answer
20 views

Magento 1.9.2. - Get Admin value of attribute option in frontend

I'm trying to recall in my configurable product the value of the 'color' attribute of the products associated with the foreach method: foreach($simple_collection as $simple_product){ echo "$...
0
votes
1answer
14 views

Could a hybrid data model, like using JSON in fields, allow us to eliminate the need for EAV within something like magento 2?

I was reading about EAV, and what options are available to avoid the pain caused by it, and stumbled upon using JSON in fields. This mariadb feature page shows an example like, SELECT name, ...
0
votes
2answers
53 views

Magento 2 How to add custom attribute to customer address and how to insert value in that attribute?

I want to add a new custom attribute to "customer_address" that I did with an attribute installer script, now I am able to see that field in "eav_attribute" table. I have created a module and I have ...
0
votes
1answer
25 views

Magento 2 How to add new address in 'customer_address_entity' from helper?

I am using helper data function to add the new address in customer_address_entity but it is not working. code as below : <?php namespace Name\Module\Helper; use \Magento\Framework\App\Helper\...
0
votes
1answer
48 views

Magento 2 How to add custom field in customer_address_entity table? which will not use for front end or back end

I want to add one custom field in "customer_address_entity" table, for custom module. I have custom module installed. I am trying with "InstallData" script to add custom field. I do not want to show ...
0
votes
0answers
32 views

Magento 2: Good way to modify a custom attribute field dynamically from admin

I have added a custom customer attribute. I need to enable backend validation for this field in registration form, edit customer form, etc. It needs to be required and unique field. Or not, depending ...
0
votes
1answer
17 views

Magento 2: get all values of an EAV

I have defined a custom attribute for my products, and now would like to get a list of all values I have entered for this attribute, not for a specific product, but in general. It is a text field, it ...
0
votes
0answers
11 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 ...
0
votes
0answers
25 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
votes
0answers
14 views

Magento 2: How to get status id from EAV model

I am beginner in Magento2. I am using MX blog Module by Mirasvit and trying to filter results in my blog posts by getting status value. But the status Value is not stored in the module default ...
1
vote
1answer
43 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
0answers
20 views

Use a Data Grid Table to assign values to an EAV attribute in admin

I have a custom attribute for Catalog Categories that represents the IDs of products associated with the category in question (this is a separate requirement from the usual association of products and ...
0
votes
1answer
220 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?
1
vote
1answer
56 views

Product EAV Index never finishes processing

For some reason my Product EAV index never finishes... Well I have left for over two days and it still says Processing... I have 42,000 products in my catalog and 92 attributes. Is this normal? How ...
0
votes
1answer
24 views

magento 2 lost code for EAV attributes

I use git and composer in my project. My flow: 1 Each module has its own git repository. 2 I use composer and install and update modules to my project update composer.json composer update <module ...
0
votes
1answer
64 views

Product Images force default sort value

This question has been asked before, but the answer to it which was updating a UAV attribute did not help. Product images use default value Is there a way to make all store views always use the ...
0
votes
0answers
140 views

Magento 2 Custom EAV addAttributeToFilter not working

I created custom EAV entity.When using addAttributeToFilter and addAttributeToSelect is not working on it.
1
vote
1answer
14 views

Module with cron job to fetch all products where custom attribute is true

I am brand new to Magento module development, and I need some help getting started. My goal is relatively simple: I'd like to create a module which fetches all products with a custom attribute '...
1
vote
0answers
55 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 ...
1
vote
0answers
22 views

Eav Attributes options

Script below add new eav attribute to product model. But who can explain me what mean everyone option in third paramater from function addAttribute() and where it using or give some links where i can ...
0
votes
0answers
82 views

Get attribute value of custom eav model in magento 2

I made a custom eav model follow this tutorial http://techjeffyu.com/blog/magento-2-creating-new-eav-entity-and-model and I made few attributes for my custom attribute also. I don't know why I can't ...
0
votes
1answer
61 views

How to implement a Customer custom attribute using EAV?

Scenario I'm trying to implement a custom attribute for Magento Customer, that should accept boolean values (True/False, Yes/No...). I'm using Magento CE 2.2.4. This is part of a custom Module ...
0
votes
1answer
32 views

Creating admin grid for custom eav model using ui component

I have created a UI component to represent the data in my custom eav model. But it didn't work at all. The spinning animation didn't disappear and my page looks like this I checked all the log file ...
0
votes
0answers
54 views

Create custom EAV model in magento 2 extension

I checked on the https://mage2gen.com/ . They will release the EAV model code generating function in the future. Is there any way to generate custom EAV model automatically when I create a new ...
0
votes
1answer
245 views

Invalid method Magento\Eav\Model\Entity\Attribute::isAllowedForRuleCondition

I am getting an issue on Magento 2.2 when trying to create promotion rule. This error occurs sometimes and the error disappears if run Magento upgrade command. But it comes again sometime.
0
votes
0answers
37 views

Product EAV Reindexer failing after upgrading from 2.1.7 to 2.2.4

After correcting our xml layout for the category page following the upgrade from Magento 2.1.7 to 2.2.4, none of our products are displaying. I did some research and the next step is to reindex, but ...
0
votes
0answers
280 views

Magento 2 : How to Update Swatch Attribute Text and Image Path

We have configurable products with color, size options. Color is a swatch attribute. Somehow, when we importing our colour options using our custom script, some swatches are wrongly updated with Label ...
0
votes
0answers
21 views

How to create a new eav attribute in Magento 1 [duplicate]

How can I create a new EAV attribute for customer in Magento 1 using SQL script.
1
vote
1answer
285 views

Magento2 How to get the default attribute set id for Customer?

How to retrieve default attribute set ID for the customer? And also is it possible in the practical scenario to have multiple attribute sets for EAV entity type Customer? I know in the case of entity ...
1
vote
1answer
141 views

Hide EAV custom field

I've create a custom attribute for the customer_address. It is at backend: $customerSetup = $this->customerSetupFactory->create(['setup' => $setup]); $customerSetup->addAttribute('...
1
vote
1answer
101 views

SQL query: getting customer attributes (M1) - This type of clause was previously parsed

I'm trying to output customer information: total sales number of orders email dob phone firstname lastname country state zip code I am using this to create custom reports using this plugin: https://...
0
votes
1answer
81 views

Special price time dependent on frontend

I am trying to make special price dependent to time on frontend. I have already managed to save the date with time on backend and inside data table catalog_product_entity_datetimethanks to this post ...
1
vote
0answers
190 views

Magento 2 - How to create custom EAV entity with backend crud operations

I want to create custom EAV entity module with back-end crud operations like in Magento default Product Attributes functionalities. So i can create new attribute multiselect, dropdown, text and etc.. ...
0
votes
0answers
94 views

Custom EAV Entity Type Missing “default_attribute_set_id” In Model

In creating a custom EAV entity type for a module, I followed the same basics of the core catalog/category entity (since I'm creating a category hierarchy). So I create a module and EAV entity type ...
0
votes
0answers
244 views

Foreign key constraint fails Entity_Type_ID

Transferring my website database from 1.9.2.2 to 2.2.3 is successful. However if I then export and import again my database with foreign key checks enabled the below error is displayed. -- ...
0
votes
1answer
212 views

Magento 2.2.2 How to implement EAV database structure

Up till now i had been working in (Simple)flat database structure in my custom modules, but now i have to use EAV database structure but i don't have any idea, how to implement EAV structure. Any ...
0
votes
1answer
71 views

How to create an adminhtml grid with custom category attribute?

I am starting my adventure with Magento 2.2.2, so my question may be considered stupid by most of you. I'm trying to write a module, which adds custom category attribute and then displays it on ...
4
votes
2answers
301 views

What is the right way to get both, the admin translation and the frontend value of a multiselect attribute?

I am using the following code to fetch the admin option value as well as the frontend label from an ID list of vales of a multiselect. $attribute = $this->eavConfig->getAttribute('...
0
votes
0answers
231 views

Wrong entity ID

I'm trying to use the following script to basically add a new field 'COM ID' to all of the Customer Address forms in the admin so that each address can store this 'COM ID' - for Magento 1.9.1.0. My ...
1
vote
0answers
87 views

Magento2 Custom EAV attribute text in layered navigation

Im having multiple custom EAV Attributes which only contain numbers and I want them to be used for filtering in the layered navigation. I got an extra plugin for the layered navigation but I have to ...
2
votes
0answers
112 views

What is the distinction between defining a customer attribute as “system” versus not “user defined”?

General Context When adding custom attributes to EAV-storage data types such as customers and customer_addresses, two seemingly redundant configuration values are allowed to be passed in: // File: ...
2
votes
1answer
281 views

How do you manually create an EAV attribute on Magento 2.2?

I have been fighting with a module with an InstallData.php that will not execute on Magento 2.2.1, but I need to get this task done today. For the meantime, how can I create the needed category ...
3
votes
1answer
294 views

Sales flat order: ext_customer_id, ext_order_id

Does anyone know what the purpose is of the order attributes "ext_customer_id" and "ext_order_id"? The Magento code appears to introduce these attributes and they appear on each order, but never ...
0
votes
3answers
1k views

Magento 2 Can't add Attribute option upto 100 ? Is there any limit for the option?

I have an issue with the product options. There are 500 option for the attribute but can't add after 100 options. Can you please let me know about this issue? The Product Attribute is successfully ...
0
votes
1answer
123 views

Resolved - M2: user creation fails with “class does not exit”

Magento 2 site, that had data transferred from a Magento 1.9 site. When attempting to create a user, it fails with: Class Magento\Eav\Model\Attribute\Data\Datetime does not exist There are no ...