Questions tagged [attributes]

Magento Entity Attributes

Filter by
Sorted by
Tagged with
0 votes
1 answer
64 views

Magento 2: How to add custom attributes to Customer group?

I want to add a custom attribute(image upload) here on customer groups. I have searched a lot. can anyone help me about that?
Amiyo Ghosh's user avatar
1 vote
3 answers
94 views

How to create and save a product with global scope set to use default values programmatically in Magento 2.4.6

I am trying to create and update products in the global scope while making sure any attributes are set to "use default" values set in global scope. The script is triggered by CRON so there ...
Baz's user avatar
  • 161
0 votes
0 answers
26 views

Magento 2.4.4 p4 save attribute brand logo error show A technical problem with the server created an error

Magento 2.4.4 p4 add brand option logo edit attribute page error show -> A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, ...
arun's user avatar
  • 3
4 votes
0 answers
67 views

How to group by elasticsearch results/Remove duplicate items from Elasticsearch results

I need to customize my elasticsearch query based on a custom attribute. I have a product attribute with code product_code, I have added this attribute to search and in elasticsearch results, the value ...
Jaimin Sutariya's user avatar
0 votes
0 answers
18 views

additional attributes are collected in one colomn,separated only with comma, i want split into separate columns into multiple columns

in magenro 2 All additional attributes are collected in one colomn, separated only with comma. Here is also "cost" placedi want to Extend the standard Entity Type 'Products', so '...
admin's user avatar
  • 1
1 vote
1 answer
58 views

EAV_ATTRIBUTE auto increment issue

I am trying to save product attributes in my Magento2 system and there may be 100 thousands of attributes. However, I see that the value specified as auto increment in the eav_attribute table is ...
Zalmoxis's user avatar
0 votes
1 answer
167 views

Magento 2.4: Programmatically add an attribute from the default set to a custom attribute

I'm aiming to programmatically create a custom attribute set during setup. The attribute set should not inherit from the default set, but it should copy some of the default attributes. For example, ...
Muckee's user avatar
  • 689
0 votes
0 answers
23 views

Incorrect dipslay of size from Text Swatch attribute

we are having problem with correct display size from Text Swatch attribute. If the size is to long, text is displaced to next line with one line space. For example "30 - 34 cm". It does not ...
Michał Parma's user avatar
0 votes
1 answer
68 views

Magento2 issue Cannot process definition to array for type enum

<pre>Array ( [name] => status [default] => 'enabled' [type] => enum [nullable] => 0 [definition] => enum('enabled','disabled') [extra] => [comment] ...
Arjun's user avatar
  • 3,526
0 votes
1 answer
98 views

what does $this->_coreRegistry->registry('current_category') return in magento 2?

what does $this->_coreRegistry->registry('current_category') return in magento 2 ?
duies's user avatar
  • 3
0 votes
0 answers
19 views

How to add Product Attribute based on Attribute Set

In Magento 2.4, I need to add a product attribute only for one product, that is set to One Attribute Set. Is it possible to add for only one Attribute Set?
Saravanan DS's user avatar
  • 1,118
0 votes
1 answer
101 views

How to add Product Custom Options for specific Product?

In Magento 2.4, I need to add "Date", "Time" fields for only One Product - That is Belongs to a Separate "Attribute Set" Called "Services". How to add this ...
Saravanan DS's user avatar
  • 1,118
0 votes
3 answers
268 views

Difference between Extension Attributes and Custom Attributes magento 2

I have a question in my mind what is the exact difference between Extension Attributes and Custom Attributes with the example? Is anyone here who can provide me with some ideas ?!
Rana Zain's user avatar
  • 616
0 votes
1 answer
39 views

what does this error mean and how to solve it "message":"Products \"%1\" and \"%2\" have the same set of attribute values.","parameters"

I did an upload and the simple skus were created, but the configurable sku shows this error and is not created. What does it mean and how can I fix it?
Erick Vernaza's user avatar
0 votes
1 answer
31 views

Display and link custom attribute in product page mangento 2

I have installed magneto 2.4.5 and trying to show manufacturer above product title . I have set custom theme using Luma as base , I have found many example of showing custom attribute on the product ...
tonysar's user avatar
  • 51
0 votes
0 answers
22 views

How to clear Price field in duplicate product in Magento 2

Please help me solve the task. I use Magento 2.4.1 You need to make sure that when creating a product using duplication, its price field is cleared or empty by default. I would appreciate any help!
Andrii's user avatar
  • 1
0 votes
1 answer
23 views

Sorting by one field in the collection does not occur

I have a plugin for the afterSetCollection method, which is hung on the Magento\Catalog\Block\Product\ProductList\Toolbar -> setCollection method. But for some reason, sorting occurs by the price, ...
Edward Brown's user avatar
0 votes
1 answer
25 views

Magento 2 Exclude Paypal BuyNow button for certain products

Certain products cannot be paid with Paypal, we have a Custom Attribute with a Yes/No value. where can I create a simple query or css condition with a display=none? Thank you!
Franz's user avatar
  • 1
1 vote
3 answers
240 views

Get possible sizes of product on product page in Magento 2

I am using the method public function afterToHtml(ProductView $subject, $html) on use Magento\Catalog\Block\Product\View as ProductView; to attach code on the product page for an item with multiple ...
Teun K's user avatar
  • 23
0 votes
1 answer
107 views

I need filter products by discount percentage in layared navigation (category page)

I have applied several price cart rules, I would like to see those frontend rules that work as a filter for discounted products. Someone can help me?
GerranoMargeno's user avatar
0 votes
0 answers
19 views

Populate Custom Attribute in customer account information section with a value from custom table

I have a custom customer attribute that appears under the customer account section. What would be the steps to populate this attribute with data from the custom table programmatically in adminhtml? ...
Tebby's user avatar
  • 13
0 votes
2 answers
87 views

attribute on category page don´t show in second store view

I show a few attributes in my categories(list view) on my default store view and that is working well. Magento ver. 2.4.3 Now I created a second store view but unfortunately the attributes didn´t show ...
guest123's user avatar
0 votes
0 answers
28 views

Add Atribute to "Bulk Images, Price and Quantity" in configurable products

I would like to add a custom attribute to the configurable products as a unique value per product. (Step 3 Bulk Images, Price and Quantity) It now lets me set images, price and quantity in the product ...
YJB's user avatar
  • 1
0 votes
2 answers
232 views

Magento 2 Attribute Property - How 'user_defined' and 'system' attribute propety are different?

'system' attribute property tells if attribute is system defined or not. 'user_defined' attribute property tells if attribute is custom (define by developer) or not. It means, if 'system'=0, the ...
Wakar Ahamad's user avatar
3 votes
1 answer
78 views

How to manage many product attributes in Magento 2

We have a website and fetching the products from the third party ERP. In the third party ERP there are around 2100 product attributes. So we need to create all attributes in the Magento. So want to ...
Sunny Rahevar's user avatar
0 votes
1 answer
197 views

Remove attribute from the database

When the patch is uninstalled then the attribute is also removed from the database in the Magento 2 is it possible?
Rana Zain's user avatar
  • 616
0 votes
0 answers
100 views

Remove Category_id attribute from the filterable product attributes GraphQl

Remove the category_id attribute from the filterable product attributes GraphQl Native app development using Apolo APIs and that API adds category_id attribute with null value as a filter and the ...
Knight017's user avatar
  • 622
0 votes
0 answers
34 views

Magnto 2.4.5 Configurable product options are showed separately on Layered Navigation Category Filter

after upgrading to Magento 2.4.5v in the Layered Navigation Listing, configurable products are shown separately. All configurable options are shown as simple products separately even are selected as &...
Riste1992's user avatar
0 votes
0 answers
35 views

How to add pagination to attribute option grid?

We have a product attribute with over 3k option values, making it virtually unmanagable in the admin - lots of memory errors. Is there a way to add pagination to the attribute option grid so we can ...
theJoey's user avatar
0 votes
2 answers
241 views

Adding Custom attribute to Quote magento 2

I need to set a custom attribute to Quote entity. I saw some tutorials on how to set a custom attribute to quote_item, followed a similar structure, but it didn’t work. I'm on Magento 2.4.4 Here is ...
David Oliveira's user avatar
0 votes
2 answers
71 views

Create custom attribute for specifi product

i'm tring to create a custom attribute only for a specific product. Into apply_to field i have setted a list "configurable, grouped" , a array('configurable', 'grouped') or single type, but ...
user3665773's user avatar
1 vote
1 answer
92 views

Is it possible to get a collection containing the attributes of all entities (customers, products, etc)?

I'm trying to get a collection from the table eav/attribute (where product's attributes are present along with customer's, category's, etc). I already tried to retrieve it like a normal model ...
Matheus Delazeri's user avatar
0 votes
1 answer
76 views

How to enable 'Use in Layered Navigation' for EAV attribute?

The options are disabled and I would like to activate them. The module I am using is Mirasvit
Alessandro Scalesse's user avatar
1 vote
2 answers
127 views

Read product attribute from phtml file - Magento 2.4

I have created a simple phtml file to add a 3D viewer in the product page using the following code. I have also created a custom attribute for the product, called model_file_name in which I type the ...
Nicola Lepetit's user avatar
1 vote
1 answer
311 views

Custom attribute not present in getProduct()

I try to retrieve one custom attributes for a product and print in title.phtml. I have followed all the steps for create a custom attribute and add it to a group correctly and it appears in admin ...
madenGlitch's user avatar
1 vote
0 answers
41 views

Filters don't hide out-of-stock products

I have a couple of custom filters, size and warehouse availability. When I select for example, size "XS" and "Warehouse1" I still see the product in the catalog that has size XS in ...
Захар Joe's user avatar
1 vote
0 answers
95 views

How to fetch extension attributes from Magento checkout page

I added custom address field in magento checkout and i want to save it to sale_order and qoute table. I follow this tutorial on how to add and save custom field in magento checkout. https://...
John Ivan C Eslabra's user avatar
0 votes
1 answer
153 views

How to retrieve custom product attributes through product description or short description using phtml templates?

Using: Magento 2.4.5 Community Edition I currently have two custom phtml blocks {short_description.phtml, description.phtml} located in app/code/Vendor/Theme/view/frontend/templates. As an example, ...
AleBalari's user avatar
1 vote
0 answers
72 views

ERROR Illegal offset type on reindexing catalog_product_attribute. Cant reindex product attributes

Upgraded from Magento2.4.2pt1 to Magento2.4.4-pt1. Now reindexing from SSH I am getting error with reindexing catalog_product_attribute. php -d memory_limit=2G bin/magento indexer:reindex ...
Jonathan's user avatar
  • 103
3 votes
1 answer
166 views

Magento 2 : How to fetch custom input data in product attribute form

I have created plugin for add textbox in product attribute form. di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Darshit's user avatar
  • 43
2 votes
1 answer
116 views

how to copy customer attribute values of phone number attribute to mobile number attribute using CLI Command in magento2

After migration of magento1 to 2 i am getting the issue.The Phone Number Attribute has the values.But I want that values in my new attribute Mobile Number. how to copy customer attribute values of ...
Benit's user avatar
  • 23
1 vote
0 answers
200 views

Magento 2.4 catalog search search for products by name attribute only

I need the magento search engine to only take into account the "name" attribute to perform the search, could someone help me please? I found a way to modify the search parameters with the ...
GStiven's user avatar
  • 21
0 votes
2 answers
672 views

Special Price From Date attribute not showing

On the product edit page, if I click on the Advanced pricing link, the modal/slide-over panel comes in to show additional (editable) details. However... the special_from_date and special_to_date are ...
Drew's user avatar
  • 131
0 votes
1 answer
242 views

How to get custom attribute value in magento2

How to get custom attribute value in magento2
Benit's user avatar
  • 23
0 votes
1 answer
107 views

How to change the value "is_required" in the table eav_attribute in the entity_type_id "2" and with the attribute_code "lastname" programmatically

Good day people, I have been trying to change the value is_required in the table eav_attribute in the entity_type_id 2 and with the attribute_code lastname in Magento 2 but without success, this is ...
Jesús Iasenzaniro's user avatar
0 votes
1 answer
10 views

Better Magento2 data management

At our company, we have a lot of products, almost all have color attribute assigned to them. As a result of that we have a lot of color options (hundreds). I was wondering if we can maybe manage this ...
instalab's user avatar
1 vote
2 answers
215 views

how to get error message if QTY exceed ask QTY

How to get error message if ask QTY higher than the QTY in stock. like IsSalableWithReservationsCondition.php file that echo the "The requested qty is not available" how to use the same ...
Bayzel's user avatar
  • 167
0 votes
2 answers
239 views

how to get attribute value to show on error message

I have this code that show error message if QTY requested is smaller than QTY on stock. i have created attributes and assign values into them. how to get those values in those attributes shown in this ...
Bayzel's user avatar
  • 167
0 votes
1 answer
59 views

EAV attrubute load value from DB - low level code

During some tasks, I was not aware of exactly how Magento loads values for attributes that are available. for example, if we have loaded Product Model and attributes in $product->getData(). Which ...
Sebas's user avatar
  • 27
0 votes
1 answer
2k views

Fastest way to get attribute value of custom product attribute by attribute_code and sku

Hello fellow Magento developers, What is the most efficient way of getting an attribute value of a custom eav product attribute, by only using its attribute_code and the products sku? => The ...
Emanuel's user avatar
  • 33

1
2 3 4 5
45