Questions tagged [attribute-options]

The tag has no usage guidance.

45 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
115 views

Magento 2: Retrieving and updating Attribute Options and Store Lables

I am currently trying to update an attribute options store label and facing some issues. I can successfully update option store labels by calling $storeLables = []; $optionLabel = $this->...
3
votes
0answers
63 views

How to disable duplicated values options when adding new option of an attribute magento 2

I have set the attribute color as unque value but still can add same value and i have tried with an event catalog_entity_attribute_save_before but now he delete all the label and values please any ...
3
votes
1answer
418 views

How to group the options of an attribute in layered navigation frontend

How can I group the options of an attribute alphabetically in layered navigation frontend? I have approx 300 options for an attribute and I need to group them, such as [A-C] [D-F], etc. The idea is ...
2
votes
0answers
57 views

Magento 2 : Add new Product attribute options

I have added a product attribute programmatically. so in store->product->attribute it shows option values readonly. Is it possible to add new option from admin side ? Ex. because it is system ...
2
votes
3answers
3k views

Get values of your attribute option text from product

I want to get value of attribute option text from product based on store id. I want to get admin text for attribute option. $attribute_option_id = Mage::getResourceModel('catalog/product')->...
2
votes
0answers
3k views

How to add multi select Custom Attribute Options Programatically

I am working on to create custom attribute, While creating the attribute i need to add multiselect custom attribute option via code. $eavSetup->addAttribute( \Magento\Catalog\...
2
votes
0answers
269 views

Manage option value of attribute option disappears

I have an attribute named as Product_type. Catalog > Manage attributes > Attribute Name(Product_type) > Manage Labels/Options > Manage Options (values of your attribute) When I choose Use In Layered ...
1
vote
0answers
21 views

How to add existent options inside product options

I trying to add simple products and after associate these products in a configurable product, but some options of these products can't be exists. So, I add options using EVA config and return id of ...
1
vote
0answers
44 views

The image is not assigning to the correct attribute option after sorting when use visual swatch- Magento 2.3.1

Summary of Issue: I am looking to sort the color attribute options programmatically with input type 'Visual Swatch'. I have made customization in below files to sort the attribute options: File 1:...
1
vote
0answers
46 views

How to get a selected simple product id from configurable option in category product listing in magento 2

How to get a selected simple product id from configurable option in category product listing in magento 2
1
vote
0answers
396 views

magento 2.2.2 You need to choose options for your item

I want to add a configurable products to cart via ajax, for this I have tried below code but it always raised the error “You need to choose options for your item”. Code public function execute() {...
1
vote
0answers
21 views

Change store attribute option value to display in product edit magento 1

I added my attribute, but it can not display another store view option value (ex: below picture) in product edit. It always display default value. Please help me find a solution to this problem. ...
1
vote
1answer
2k views

Magento 2 get attribute options by attribute code?

How to get the list of option values for particular attribute code in magento 2? <?php namespace Sample\Shopbyage\Block; use ...
1
vote
0answers
108 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 ...
1
vote
1answer
292 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) ...
1
vote
1answer
310 views

Retrieve all the available color in product collection

I have a custom product collection and products inside this collection has variety of colors. I want to retrieve all the colors available inside this product collection and store it in array. $layer ...
1
vote
0answers
2k views

Multiselect attribute The value of Admin must be unique

I upgraded magento2 to 2.1.6 When I try add option to multiselect attribute i see message: The value of Admin must be unique. How can I fix it?
1
vote
0answers
211 views

Configurable Product attibute option selection from Wishlist in magento 1.9?

I want to Display all Configurable swatches and Attribute Dropdowns to Wishlist for Configurable Product, so the customer can select from there and directly move product to cart. No need to go on ...
1
vote
1answer
749 views

Import Bulk Attribute Options in Magento 1.9.2.3

i am using Magento 1.9.2.3 version. I have a brand attribute and i want to import all its option through csv file. Is there any way to import bulk attribute option? thanks
1
vote
0answers
883 views

How To Add Product Option of configurable product To Wish List in magento and show selected on product page

I want to add product option in magento wishlist. And when we click on product it will show selected on product page. I search extension for this but i did not not found this. My need is to saved wish ...
1
vote
0answers
46 views

Invisible, not transparent images for inactive attribute options in Configurable swatches

I use the same attribute "color" for different "textures" of the product. I am using configurable swatches with magento default rwd theme. The problem is, when a certain texture in frontend is ...
1
vote
0answers
119 views

Rewrite bundle product options in admin

I want to rewrite bundle options, i.e getProduct() in my project. This is my code: <bundle> <rewrite> <...
1
vote
1answer
309 views

How to add new field in product attribute options in Magento 2

I want to add custom field for attribute options in Magento 2 how can I do?
0
votes
1answer
38 views

How to getSku for configurable products in magento 2

I want to get Sku for selected options. Above image i have select blue and M. So this options product sku get in magento 2. Please Help me. THANKS.
0
votes
2answers
105 views

Magento2 Graphql get select attribute options label instead of option id

I am using v2.4 in which in the products query I am getting the Optionid of select attribute instead of attribute option label. Like if i try to get color(select type) then I get value of red instead ...
0
votes
0answers
13 views

get product manufacturer option id by label

how can I get product manufacturer option id by label if it exists and if not create new manufacturer option? I tried something like this but I couldn’t manage to make it work protected $...
0
votes
0answers
33 views

Magento 2 - How to map option value to sub item?

I have one configurable product and added few items which have product type as "Single" For example : Configurable product : Echo Fit Compression Short Simple Product : Echo Fit Compression ...
0
votes
0answers
22 views

Using product options/attributes to add a separate line item during add to cart

This is a bit hard to describe so please bear with me and hopefully it will all make sense. My basic goal is to have product options/attributes function to add a second, separate line-item to the cart....
0
votes
2answers
75 views

Magento 1.9: How to translate TITLES and TITLES OPTIONS of the “Custom Options” of simple products?

I need to translate all the TITLES and OPTION TITLES of the Custom Options related to simple Magento products. The need is: 1- Export all the fields of the "custom Option" 2- Translate them (or how to ...
0
votes
0answers
258 views

How to add a text column to magento dropdown attribute option in Magento 2?

I would like to extend the options grid for a dropdown product attribute with a new text field which will appear as a new column. In that field I'm going to store the matching ERP_ID but I would ...
0
votes
1answer
118 views

Manage Attributes - New Options not saving - 1.9.4.1

In Magento Admin going to catalog/attributes/ Choose a specific attribute, such as "Artist" Go to Manage Label/Options Add Option (in this case an artist's name) Click Save Attribute or Save and ...
0
votes
0answers
34 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
0answers
28 views

How to display options of custom attribute product magento 2?

I have created a custom attribute for product and I can add options dynamically as well. But the problem now I'm facing is that I want to display just the option relative to the current product, so ...
0
votes
2answers
54 views

What is the recommended method of overriding protected methods?

I was going to create a plugin so that I could extend Magento\Eav\Model\ResourceModel\Entity\Attribute::_processAttributeOptions(). However, because this method is protected, I am unable to do so. I'...
0
votes
2answers
688 views

Magento 2 Get product attributeId in foreach loop

I have a collection of product I am looping and displaying for E.G ... $product->getName() ... $product->getProductUrl() ... Now Also I am getting it some option like attributeText foreach ...
0
votes
0answers
153 views

Attribute options import in magento 2

I have added additional colomns description and image in eav_attribute_option_value table. Which means each option of an custom attribute has its own description and image. I have saved the ...
0
votes
0answers
562 views

Magento 2 update product attribute options programatically

I have a website with multiple stores (One for each country, around 170 countries in total) and each store has two store views. One for the English language and one for the Greek. Is it possible to ...
0
votes
0answers
130 views

How to get the attribute option list custom block in magento 2?

I tried to get the attribute option list in my custom block for filter the product collection. But not able to get the option list. My Code is: <?php namespace Sample\Shopbyage\Block; use \...
0
votes
0answers
337 views

Can't Access Checkout Page

I tried to access my checkout page, but it returns blank page, and when i checked the error log, i got this message: [Thu Mar 29 10:30:46.928754 2018] [proxy_fcgi:error] [pid 17712] [client x.x.x....
0
votes
1answer
959 views

How i can join eav_attribute_option_value table into my collection and get from him “frontend_label” of colors?

I have a products collections. But in "color" i see option_id number. Mage::getModel('catalog/product') ->getCollection() ->addStoreFilter(Mage::app()->...
0
votes
1answer
832 views

How to add options in Attribute in magento 1.9 programmatically?

I want to add options in an attributes programmatically like in Size attribute i want S,M,L,XL as an option . My code is creating attribute but i want options with attributes. require_once '../app/...
0
votes
1answer
536 views

Truncate Custom Attribute Label/Options using SQL Query

I am using Magento 1.9.x. I have created several custom attributes in Magento project. They all have thousands of labels or options. I don't want to remove custom attribute just want to delete all ...
0
votes
1answer
441 views

If Statement for attribute value is set to no

Just trying to write an if statement for this situation: We do have some attributes which could have 3 values: empty space, yes and no. The statement should require a yes value to display a jpg and ...
0
votes
1answer
322 views

How to add conditional statement related to configurable product and the quantity of options

I am trying to add a condition statement to add certain text in front of price. I've got the code to check whether it's configurable product or not: if ($_product->getData('type_id') == '...
0
votes
1answer
620 views

Sort Attribute Option Collection

I'm getting so mad that it literally hurts with a problem related to attribute option collection on Magento 1.8.1 I have a dropdown type attribute populated with dozens of values and frequently ...