Questions tagged [attributes]
Magento Entity Attributes
2,218
questions
0
votes
1
answer
22
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 ...
0
votes
1
answer
9
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 ...
1
vote
2
answers
24
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 ...
0
votes
2
answers
34
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 ...
0
votes
1
answer
16
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 ...
0
votes
0
answers
16
views
Configurable Products This is a required field Error
Configurable Product: It returns the error message 'This is a required field' when add-to-cart button is clicked including the required attribute(s) selected.
You open the catalog product you select ...
0
votes
0
answers
10
views
M2 - Layered navigation adding "_1" in URL
I have an issue with the layered navigation, it's adding _1, _2, _3 etc. behind the URL when the values of an attribute are the same.
For example;
We have an attribute called "Brand", it ...
0
votes
1
answer
50
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 ...
0
votes
0
answers
22
views
Select multiple options in a single attribute in catalog
Not sure if I'm doing something wrong or if it's by design, or if it's a theme. I've added a custom option (size) and enabled it for catalog pages, it does display as a filter on the left. However I ...
0
votes
1
answer
17
views
Attribute with Image to show next to title
I have created an attribute and when clicked on, I need it to show this image
next to the product title on the front end.
https://www.ukmadesweets.co.uk/pub/media/logo/stores/1/icon-echo.svg
Could ...
0
votes
0
answers
16
views
Why dropdown items are displayed in the wrong order?
I created a module with a custom dropdown attribute, but the numbers are not displayed in the right order on the product page. How do I fix this?
InstallData.php
<?php
namespace Test\RingSizes\...
0
votes
2
answers
30
views
What is the product attribute for product ID?
Every product recieves a unique ID, shown on the left on the product page screenshot.
I do not choose this nunmber, the number is assigned by the system.
Now I am trying to create a pricefeed with XML ...
1
vote
1
answer
54
views
Show a Text if attribute is set to "yes"
I want to display "it working" on default.phtml if the product is assigned to attribute [Franke] with "yes".
Please help. I have tried the below code, but it doesn't work
...
0
votes
1
answer
60
views
Magento 2 : Get Configurable Product using swatch-option
I want to get product id on selecting swatch option.for that i have used code as given below.
i am getting error of "Cannot read properties of undefined (reading 'options')" as per given ...
0
votes
1
answer
96
views
Magento PWA show custom product attribute in details page
I am trying to modify product details page on Magento PWA Studio. I have a custom attribute(text-editor type), and I have some html there. When I am trying to call that attribute it comes as string ...
0
votes
0
answers
14
views
How to get attributes based on attribute set in dynamic row?
I have created dynamic rows and there I have two fields. 1st field is I am listing out the attribute sets and in the 2nd field I need to show the attributes based on the attribute set. How can I set ...
0
votes
0
answers
102
views
Magento 2 : How to add product attribute as color picker in product form?
I'm trying to add color picker attribute in product form
I have referred this link:- https://kiwicommerce.co.uk/blog/how-to-add-a-color-picker-in-product-edit-form-in-magento-2/?unapproved=1745&...
1
vote
1
answer
38
views
How do I get all option value id's for a given attribute in a specific category in my custom block?
My shop has an attribute manufacturer.
This attribute has option values like adidas and nike etc.
I have a custom module with a block
I placed the block on a specific category through a widget
The ...
1
vote
1
answer
90
views
How to enable Use in Layered Navigation field in admin panel?
I don't know why with some attributes, Use in Layered Navigation field is disabled.
0
votes
0
answers
9
views
custom attribute on catalogus page
I'm trying to display a custom attribute on the catalogus page (grid).
I've created catalog_category_view.xml and placed it in app/design/frontend/THEME_VENDOR/THEME_NAME/Magento_Catalog/layout and ...
0
votes
1
answer
19
views
How can I get the codes from the options of an attribute?
public function getOptions($attributeCode)
{
$attribute = $this->eavConfig->getAttribute('catalog_product', $attributeCode);
$tmpOptions = $attribute->getSource()->...
1
vote
0
answers
34
views
Magento 2 we are unable to change attribute set from product edit
it shows an error in the exception log and the screen is stuck when trying to change the attribute set of the product
0
votes
0
answers
32
views
How to copy a product's attributes value to Manufacturer - Magento 2
I want to copy a product's attributes value to Manufacturer
e.g.
I have attribute CAR MANUFACTURER with values OPEL, TOYOTA, AUDI, BMW...
I need to copy values OPEL, TOYOTA, AUDI, BMW... to ...
1
vote
0
answers
79
views
Page Builder was rendering for 5 seconds without releasing locks
My products have small descriptions and description attributes.
A small description is a Tinymce field and a description is a pagebuilder.
When I edit a product, if I open the content section, here ...
0
votes
1
answer
61
views
Magento 2 -> Error Checkout -> Notice: Undefined index: number in vendor/magento/module-checkout/Block/Checkout/AttributeMerger.php on line 174
The problem appears when entering the checkout page
1 exception(s): Exception #0 (Exception): Notice: Undefined index:
number in
/var/www/../vendor/magento/module-checkout/Block/Checkout/...
0
votes
0
answers
12
views
Preventing todays date in datepicker when existing date is null
I have added a date attribute to magento in a custom product import module, if the value is null in the db, which is what i am looking for the frontend date picker defaults to todays date on null ...
0
votes
1
answer
29
views
General system exception happened - The custom_range value wasn't found in the algorithms
When importing a csv spreadsheet I am getting the following error:
0
votes
1
answer
13
views
add "add to cart" button in popup containing attribute information
in catalog page, there is a tool tip next to each product,once we click on it a popup, that contain attribute detail and add to cart button, should appear.
my question is how to add 'add to cart' ...
1
vote
0
answers
51
views
How to add category filter with OR condition in product collection?
I'm using magento v2.4.1 and i have a custom attribute name landmark, and i want to filter a product collection using landmark attribute and category id using OR condition. Currently i'm doing it like ...
0
votes
1
answer
26
views
Update attribute : add source
I have a product attribute that have been added directly in the database threw a migration process.
I want to update that attribute to give him a source.
But this seems not to be working.
$attribute = ...
0
votes
2
answers
76
views
How to delete all custom product attributes
How can delete all custom product attributes from database and keep only system attributes in Magento 2.4
0
votes
0
answers
72
views
Magento2 remove specific filter on specific category value under Layered navigation
I'm trying to hide/disable a particular attribute filter in layered navigation for a specific category.
I do not want to show all filter in left side bar.
If I disable in Anchor is "No" ...
0
votes
0
answers
16
views
Customer Address attribute not getting saved from backend and frontend in magento 2.2
I have created customer address attribute using InstallData.php. The attribute gets successfully created in backend but when i add some value in it, the value is not getting saved and again returns as ...
1
vote
0
answers
35
views
Magento 2.3.4: Add new column to Manage Options of Product Attribute
Like the title, I'm trying add new column to Manage Options.
The problem is that the style of the row I want to add is select.
It is showing but when I click on the select box, the list of options is ...
0
votes
3
answers
77
views
Magento ver. 2.4.3 sort attributes in additional tab on catalog product view
I need to re-order / sort the attributes on product detail page.
They are sorted with there attribute_id but I don´t want to delete and recreate them.
I know that the attributes can be sorted for the ...
0
votes
0
answers
23
views
How to create a product with multiple variables for set a prices
I am struggling trying to create a product in magento with diferent prices
We will sell travel package but the price have to change in this 3 cases.
Season (more expensive in hight season)
3 ...
0
votes
0
answers
26
views
Magento 2.3.7 filter without results in prod system
On Product-Listing the available Filters got listed for the configured Product Attributes, also the availabe amount of products for this attribute is shown within braces on the listing.
When apply a ...
0
votes
1
answer
33
views
How to Delete Attribute Sets
I have a site where we have about 300 attribute sets that we are not using. I want to mass delete this attribute set but I can't find how to do that.
I will prefer an option where I can delete it from ...
0
votes
1
answer
78
views
Magento 2.4.2: how to add a custom attribute field
I need to add a custom attribute field named google_product_category in addition to those already existing for products. I tried doing it with Add attribute button, but ended up seeing a new field ...
0
votes
0
answers
99
views
Add a custom attribute to Cart Price Rule Coupon
I want to add a boolean attribute published to the coupon rule form (different from activate) but the same kind of attribute.
From what I see the only attribute linked are product attributes.
I've ...
0
votes
1
answer
133
views
How to get Multiselect attribute admin value in magento 2?
I am trying to get admin value in multiselect but I am not able to get this can anybody suggest?
0
votes
0
answers
21
views
Magento 2 - How to make a customer attribute required in admin_checkout form only
Magento 2 - How to make a customer attribute required in admin_checkout form only
0
votes
1
answer
75
views
How can I get an attribute option id from its label?
Magento 2.4: I have a custom product attribute called shop_status. It has two possible options:
ACTIVE
INACTIVE
I would like to get the option ID from the text label, eg:
$id = $attribute->...
0
votes
1
answer
41
views
How to display cms block in product page if some attribute is set to yes
I want to display cms block if product has the attribute set to yes. A product may have multiple attributes set to yes, and may display multiple cms blocks. Attribute label text will be a BlockId. It ...
0
votes
1
answer
73
views
How to delete empty attribute values in Magento 2
We have an attribute for some of our products that has hundreds of empty values. If you try to make and save any changes to any values, it kicks you back out to the dashboard and the changes are not ...
1
vote
1
answer
55
views
how to get custom product attribute in block file?
I have created one custom attribute on the admin product details page,
the attribute name is hsn_code.
now I want to get this attribute value in
Block/Adminhtml/Sales/Igst.php
I need in Igst.php ...
0
votes
0
answers
35
views
How to get category name and count product when selecting manufacturer select attribute in Magento 2?
I have created a new page where I want to get the number of selected products from the same manufacturer in all categories into a list.
Does anyone have any idea, how to get this data? Thanks.
https://...
1
vote
3
answers
119
views
How to save stock attribute value ('qty') for a product with Magento 2 objectmanager?
I've found out how to do this with other attributes.
For example a custom 'location' attribute:
$product = $this->objectManager->get('Magento\Catalog\Model\Product')- >load($post['id']);
...
0
votes
0
answers
14
views
Magento 2 - Adding Attributes on Attributes?
Anyone know if its possible to add a column here like a dropdown for us to basically group these swatches (Attribute to be used for something else later on).
0
votes
3
answers
177
views
Magneto2: Base table or view not found table amasty_conf_group_attr doesn't exist
The changes made in products attributes doesn't show on the frontend. The part of the database won't update and shows the following message.
"Base table or view not found table ...