All Questions
Tagged with eav-attributes magento2
45 questions with no upvoted or accepted answers
6
votes
0
answers
337
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 ...
3
votes
0
answers
87
views
Magento 2 Edit Product page Error: Every derived table must have its own alias
I'm using magento 2.2.5 and when i opened the edit product page the product name, price,etc doesnt load at all, and when i checked the var/log/exception.log i got the following error:
...
3
votes
1
answer
839
views
Product attribute with store labels
Is there any way to add product attribute with different store labels through Magento2 setup script?
If we pass 'label' it only assign default label of the attribute. I tried with frontend_label but ...
2
votes
1
answer
249
views
Filter by attribute is slow for customer collection using addAttributeToFilter() function
I have created a custom attribute called username for Customer which is searchable in admin grid. But whenever I search by username for SSO it takes much time (2-3 sec). Below are the code:
$...
2
votes
0
answers
34
views
Why can't I display anything on the product page? product.info.main
app/module/vendor/View/layout
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:
noNamespaceSchemaLocation=
&...
2
votes
0
answers
162
views
Magento 2 : Extension attributes & Eav Attributes
Few question based on extension attributes & eav attributes.
Answers to this question will clear the concept of this topic.
What are extension & eav attributes in magento ?
What is the ...
2
votes
1
answer
835
views
How to create product attribute and assign it to specific attribute set and attribute set group? Magento 2.3
I have an attribute set with name Gold and attribute set group with name Ring, i want to add a boolean product attribute with name biodynamic like this:
namespace Vendor\Module\Setup\Patch\Data;
use ...
2
votes
0
answers
428
views
EAV load collection issue (High Load Time)
We have an eCommerce platform. The issue is that when we increased the products to ~3000, the EAV:load_collection is taking a lot of time(~20 sec) and eventually slowing the site. If I remove the ...
2
votes
0
answers
1k
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 ...
2
votes
2
answers
1k
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 ...
2
votes
0
answers
192
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.
2
votes
3
answers
3k
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->...
2
votes
1
answer
235
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 ...
2
votes
0
answers
217
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
2
answers
874
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 ...
1
vote
1
answer
280
views
Order custom attribute, extension attribute or EAV attribute | Magento 2
I want to add custom attribute for Order
From what I have learned, there are two ways this attribtue can be associated to Order entity
Having extension_attributes.xml + custom repository (and ...
1
vote
0
answers
298
views
How to get the unused attributes from the table Magento 2 using SQL Query
I need to get the unused attributes from Magento DB that is not assigned to the Attribute set and not assigned to the production. Also i need to get the unused attribute sets. from Magento table
1
vote
0
answers
194
views
Magento 2 - Data Migration Tool - Triggers
Intro
Regarding the Data Migration Tool (M1 to M2), the migration creates m2_cl_ trigger tables that I can eventually run bin/magento migrate:delta will only update those triggered tables, or do they ...
1
vote
0
answers
205
views
How to get Custom Attributes in Carts Item REST API?
End Point: /rest/V1/carts/mine/
Added Custom Attribute Name: Unit
Type: Dropdown
Response:
{
"id": 10,
"created_at": "2019-10-19 10:23:20",
"updated_at": "2019-11-01 09:27:51",
"is_active":...
1
vote
0
answers
22
views
Looking up Product Attributes and Customizable Options
I'm working with info_buyRequest data stored in Quotes. There are cases where super attributes as well as options are present in the buyRequest. These appear purely as DB id's, and I am trying to ...
1
vote
0
answers
928
views
Magento 2: How to add multiple AND conditions to one single attribute that could be used to join other condition groups?
I could filter a product collection by (attribute A: condition A OR condition B) AND (attribute B: condition C OR condition D) with the following codes:
$collection->addAttributeToFilter('...
1
vote
0
answers
762
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 ...
1
vote
1
answer
808
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 ...
1
vote
0
answers
546
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..
...
1
vote
0
answers
275
views
Magento2 custom EAV in ui component listing
I created a custom EAV for my module. Now I want to show all the columns in my **ui_component** listing. But only the field from my **main** table can be displayed.
How do I get all the other field ...
1
vote
0
answers
113
views
Add internal code to Eav Attribute option?
I am new to Magento 2.
All my data comes from an external db.
Before importing my products into Magento, I want to prepare the environment.
I am currently trying to set up custom EAV attributes with ...
0
votes
1
answer
46
views
How to fix duplicate id's in multiselect options
Via the api, multi select options were accidentally inserted as duplicates.
So instead of 11111,22222 being stored in catalog_product_entity_text.value it was submitted as 11111,22222,11111,22222 and ...
0
votes
1
answer
394
views
Getting an EAV option's value (eav_attribute_option_value) instead of ID when fetching products using GraphQL
I should preface this by saying I know nothing about Magento 2 development, and barely anything about GraphQL, yet I've been added to this project so I have to learn both of them at the same time. I'...
0
votes
1
answer
670
views
what is the purpose of eav_entity_attribute table
in Magento i have seen entity table, eav_attribute table and attribute table, which has links.
But i don't find any link to eav_entity_attribute. I want to know the purpose of the table
0
votes
2
answers
374
views
Removing a custom module doesn't remove it from the database
I created a customer EAV attribute to collect the users postcode on registration. I realized Magento already has this feature, so I removed the module. The problem is the module does not seem to be ...
0
votes
1
answer
133
views
entity_type_code_entity table is empty in magento2
I am trying to insert data into the EAV tables, but my main entity table isn't saving any data but the value tables data is inserted.
My Entity Type code is vinay_employee, my table ...
0
votes
1
answer
670
views
Magento 2 customer attribute not saved in database
So I have created an attribute for customer entity, used it in frontend create account form, but it's not showing anything in customer_entity_varchar table, it's empty. However, in eav_attribute table ...
0
votes
2
answers
29
views
What is the query readers here i can't understand magento 2.3
I can't find the what query rendes here and i can't it is not readable so any can to find what query renders hear please tell what are the table involved here
public function getCount(\Magento\...
0
votes
1
answer
339
views
How to filter bestseller collection with a product attribute
You can addAttributeToFilter for product collection;
$this->_productCollectionFactory->create()->addAttributeToFilter('att_x', ['eq', $att_x_value]);
How can we do this with bestseller ...
0
votes
2
answers
124
views
Can not open "Admin -> Customers -> All customers" after Magento 1 to 2 data migration
I have a similar issue like this one here, after migrating from Magento 1 to 2.
But the report is a little bit different and the provided solution in the thread did not help me at all.
I already ...
0
votes
1
answer
67
views
Magento 2 Attempt to load value of nonexistent EAV attribute with CategoryInterface after migration
after 1.x to 2.3
I am getting error as following in my System.log file.
[2020-02-06 13:29:01] main.WARNING: Attempt to load value of nonexistent EAV attribute '903'
for ...
0
votes
0
answers
339
views
Magento 2 Catalog Input Type for Store Owner from Visual Swatch to Dropdown programatically
How can I change Catalog Input Type for Store Owner from Visual Swatch to Dropdown in Magento 2 programmatically
$eavSetup->updateAttribute(\Magento\Catalog\Model\Product::ENTITY, 'size', '...
0
votes
0
answers
56
views
Magento 2 :- How to get newly added options id of product attribute & Deleted option id of attribute
I want to get lastly added product attribute options id and also need to deleted option id in the following event: catalog_entity_attribute_save_after
Anyone can help me with this?
0
votes
1
answer
283
views
Magento 2 - join using EAV attribute
I created an EAV attribute on product entity, this attribute named user_id and has the ID of the user who's added the product.
After works, I crashed on this point, I need to join tables to get ...
0
votes
1
answer
146
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
1
answer
268
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??
0
votes
1
answer
822
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/...
0
votes
0
answers
79
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 ...
0
votes
1
answer
473
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 ...
0
votes
0
answers
271
views
Magento2 : get all user define attributes using attribute set id on detail page
I got attribute_set_id on product detail page. like this
[attribute_set_id] => 14
Using this i want to get all custom attribute which are set in this attribute set id.
so if you have any clue ...