Questions tagged [attribute-options]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
1k 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\...
5
votes
3answers
4k views

Can't update or delete attribute options

I have a strange problem with Magento. Recently I'm not able to delete an attribute option or update the postion of an attribute option. When I change the position i.e. from "3" to "0", it will just ...
0
votes
1answer
333 views

Create/Update Attribute Option Custom api issue

I have created custom rest api to create/update attribute options by attribute_id. Here is my webapi.xml file code. <route url="/V1/attribute/AttributeOption" method="POST"> <service ...
6
votes
3answers
19k views

Get Custom Option Values of a product magento 2

I have two custom options for a product. Color and Size and both are drop-downs. In product detail pages, I have to display all available colors of that product. I tried the following code and it ...
6
votes
5answers
18k views

Get Attribute option Id by Attribute admin value

For a Magento Dropdown Attribute, it is possible to get an Attribute option Id by Attribute admin value?
3
votes
3answers
6k views

Create Product Attribute Of Type MULTISELECT or dropdown select & Create Option Labels Diffrent for Diffrent Store using install or upgrade schema

I am creating custom Product Attribute Of type MULTI SELECT, I want to create different option label for each stores for this particular Attribute, I have tried with this below code, $eavSetup->...
1
vote
1answer
1k views

Magento 2 Get Attribute option Id issue with core method

I am using below code to get the option Id with an attribute value/label in a custom extension. /* * Get attribute id based on option value */ protected function getAttributeOptionId($attributeCode, $...
1
vote
1answer
258 views

Magento BUG : Not able to delete Products Attributes Option/Labels?

If i delete one of the attributes values and save, keep the value exist, it's not delete.. how can i solve the issue magento error. Note: php.ini => max_input_vars = 8000000 (master Value) ...
2
votes
2answers
2k views

Magento 2: How to get value from attribute from store_id 0 (admin/unique)?

I'm trying to get store label for admin (store 0 - zero) but since I have something in "Default Store Label" I'm getting only that value. I need to find the solution to get always only the admin (...
1
vote
2answers
643 views

Add new option to existing product attribute

I am trying to use the function addAttributeOption to add a new option to an attribute. I do not want to change the current option order or defaults but simply want to append a new option to the end ...
1
vote
1answer
1k views

Not able to update or delete attribute option in admin

I am not able to update or delete the product attribute options in admin-end. When I am clicking "save" or "save or continue" after updating or deleting the attribute option, Magento shows me the ...