Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [attribute-options]

The tag has no usage guidance.

0
votes
0answers
33 views

The Best Extension for Product Customization in Magento 1&2 [closed]

We need an extension for the customization of our new products in jewelry. It's a bracelet with some combinations, like Pandora..but we want the original options and 4 steps with the selection of ...
0
votes
1answer
19 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
2answers
13 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 ...
1
vote
1answer
20 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 (...
0
votes
0answers
17 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
71 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
1answer
282 views

How to add new Option to drop down attributes magento2?

How to add an new option to product dropdown attribute? If the option already exist it has to skip adding else add option with new value. I followed the below link How Magento2 add attribute option ...
0
votes
0answers
67 views

How to change the option label of an attribute via programmatically in Magento 2

I need to update the option label for the existing option in colour attribute in Magento 2. Please provide me with a solution. I have tried like below but not working function getExistingOptions($...
0
votes
0answers
19 views

`is_unique` is ignored when creating option via POST to /V1/products/attributes/{attributeCode}/option

When I repeatedly add new option (with same label) via API, multiple options are created. In UI the attribute options cannot be saved, because the unique constraint is violated. Why does not the ...
0
votes
1answer
397 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 ...
0
votes
0answers
27 views

Update Product Attributes Select-Options in an update script

I want to upgrade the options of a attribute. Currently it has 0 => 1, 1 => 2, 2 => 3, ... as value. I want to update it to 0 => 0, 1 => 1, 2 => 2, 3 => 3, ... how would I do ...
0
votes
0answers
36 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 \...
4
votes
2answers
809 views

How to get additionnal options product from quote item

I have some Vitrual product with options, I need to get his options but I can just get the info_buyRequest instead of additional_options Here is my code: $objectManager = \Magento\Framework\App\...
0
votes
0answers
131 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
0answers
69 views

Need to get simple product options from configurable

I have simple product and parent product and i need to get choose options from configurable product(parent). Not in quote and order. In any place I want to get something like this :
0
votes
0answers
279 views

How to update attribute's option label programmatically magento 2.X

I want to update the color swatch option label by option id Is there any way so that I can change/update attribute's option label. I am using following scenario: <?php class myclass { ...
0
votes
1answer
25 views

Magento 2: Is there any way to add bulk option add in attribute?

I have list of option value for attribute, But i just need to save this value in attribute at one time . i already used below script, using this script i have to save attribute on every new option ...
1
vote
0answers
28 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
116 views

Configurable product option values in database

Where are configurable product option values, stored in the database?
1
vote
1answer
142 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) ...
4
votes
1answer
627 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->...
2
votes
3answers
1k 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')->...
1
vote
1answer
174 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 ...
0
votes
1answer
889 views

Foreign key constraint fails when trying to add custom product attribute option

I added a product attribute called size from admin with the same settings as color attribute. Now when i programmatically try to add an option to this attribute I get a MySQL error: Cannot save ...
3
votes
1answer
3k views

Magento 2 how to get product attribute options on checkout cart

How I can get the configurable products attribute options in front end checkout cart page? I have tried with the below answer but can't get any success. Magento 2 - How to get attribute options value ...
0
votes
1answer
328 views

Custom Select Attribut in admin have different values set than InstallData

I'm trying to make a 3 value select attribut in the customer edit page in admin. The attribut is created in DB after setup:upgrade but stored in eav_attribute_option table as follow : the value ...
1
vote
0answers
1k 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
124 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 ...
0
votes
1answer
503 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()->...
2
votes
1answer
2k views

how to get swatches attribute option in magento 2

how to get progmatically swatches attribute option data in magento 2. I tried this:- \Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\CollectionFactory $options = $this->...
0
votes
1answer
479 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/...
2
votes
0answers
2k 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\...
0
votes
1answer
324 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 ...
1
vote
1answer
88 views

Programitically created attribute displaying incorrect attribute options

I have written the following code to create an attribute in magento 1.9 $name = $data['name']; $attributeSetId = $data['attributeSetId']; $attributeGroupId = $data['attributeGroupId']; //create a ...
2
votes
0answers
207 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 ...
2
votes
1answer
2k views

Get option label associated with admin store in Magento 2

I want to go through all options of attributes configured for filtering and output the label of the Admin Store View. I only managed to get the Default Store View (store_id 1) label with the following ...
0
votes
1answer
594 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
1answer
529 views

How to get list of attribute options in frontend view?

I'm writing a custom display for certain attributes based on its label. Within the 'configurable.phtml' file, it has the following lines: $_product = $this->getProduct(); $_attributes = Mage::...
5
votes
3answers
10k 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 ...
3
votes
4answers
3k views

How to get option_id of an option by label? (magento 2)

I want to get the option_id of one of the options on an attribute, but I only know the label of the option (by label, I mean the 'value' column in eav_attribute_option_value). How can I get it? ...
2
votes
2answers
2k views

Some product options remain disabled after the first selection

I am using Magento CE 1.9.2.4, and the Porto Theme. I have some Configurable Products with a lot of variants (in some cases there are 5 attributes, each with several options). Each variant has a ...
1
vote
1answer
57 views

Select attributes with numeric labels

I believe this is a core Magento bug, but thought I'd come here to ask for some suggestions anyway. I've got an attribute, let's call it colour_code. It's a select attribute (backend is int) and it's ...
1
vote
1answer
34 views

How to I add another option to an existing select attribute?

I have created an attribute using the following install script: <?php $installer = $this; $installer->startSetup(); $setup = new Mage_Eav_Model_Entity_Setup('core_setup'); $setup->...
0
votes
1answer
339 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
90 views

Add option to attribute in database table [closed]

In database where can I find a table where I could add another option to admin attribute?
1
vote
0answers
726 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
2answers
2k views

Get Attribute Option Position from Option value

I have a dropdown attribute with many options. In cart.phtml I already get the attribute value for each item Mage::getModel('catalog/product')->load($_item->getProduct()->getId())->...
3
votes
1answer
292 views

Configurable Options within a modal for non-selected options

I want to write a frontend functionality for configurable products. If there is no configurable attribute given, I want a modal to popup which asks the user to select options. The options should be ...
1
vote
1answer
362 views

Sorting attribute options

I am adding new options to some existing attributes using the method below. $option['attribute_id'] = $attribute->getId(); $option['value'][$value][0] = $value; Mage::getModel('eav/...
1
vote
0answers
45 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 ...