Skip to main content

Questions tagged [attribute-options]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
420 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 ...
Shell Suite's user avatar
  • 1,702
1 vote
1 answer
2k 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 ...
iuwqyir's user avatar
  • 41
4 votes
1 answer
6k 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 ...
mageDev0688's user avatar
0 votes
1 answer
478 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 ...
medmek's user avatar
  • 764
1 vote
0 answers
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?
omelandr's user avatar
  • 1,267
1 vote
0 answers
237 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 ...
Yogita's user avatar
  • 784
0 votes
1 answer
1k 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()->...
Sergiy Nenko's user avatar
3 votes
1 answer
5k 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->...
Karangar Meghnathi's user avatar
0 votes
1 answer
941 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/...
rameez.hashmi's user avatar
3 votes
0 answers
4k 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\...
Rajkumar .E's user avatar
  • 3,570
0 votes
1 answer
615 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 ...
Nidhishanker Modi's user avatar
1 vote
1 answer
155 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 ...
Matthew Wilson's user avatar
2 votes
0 answers
301 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 ...
user00247's user avatar
  • 638
3 votes
1 answer
6k 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 ...
Thomas's user avatar
  • 211
1 vote
1 answer
770 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
Muneeb Ahmad's user avatar
1 vote
1 answer
840 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::...
Steven Jeffries's user avatar
6 votes
3 answers
29k 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 ...
Arun SS's user avatar
  • 451
3 votes
4 answers
7k 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? ...
b_pcakes's user avatar
  • 493
2 votes
2 answers
3k 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 ...
Steve Webadelica's user avatar
1 vote
1 answer
79 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 ...
scrowler's user avatar
  • 2,014
1 vote
1 answer
46 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->...
Joshua Palan's user avatar
0 votes
1 answer
485 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 ...
user37184's user avatar
0 votes
1 answer
1k 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?
Sabina Orazem's user avatar
1 vote
0 answers
923 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 ...
Deepak Rai's user avatar
  • 1,155
1 vote
2 answers
3k 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())->...
Bizboss's user avatar
  • 597
3 votes
1 answer
360 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 ...
Bernhard Prange's user avatar
1 vote
1 answer
510 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/...
develophper's user avatar
  • 2,214
1 vote
0 answers
50 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 ...
T1mmy's user avatar
  • 11
1 vote
0 answers
51 views

Get final price of configurable option [duplicate]

I would like to know the best way of getting the final price of a configurable option. I can get the price by looping around eg: $productAttributeOptions = $product->getTypeInstance(true)->...
Goose84's user avatar
  • 2,611
2 votes
1 answer
2k 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 ...
Anshu Mishra's user avatar
  • 8,990
0 votes
1 answer
665 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 ...
Emir M.'s user avatar
6 votes
5 answers
20k 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?
Bizboss's user avatar
  • 597
3 votes
1 answer
100 views

How do I create a configurable product with 3 options

I apologise for the vague title, I didn't know exactly what I'm asking so I'll explain and maybe someone else can come up with a better title...or the solution. I'm trying to create a website that ...
Ross Coulbeck's user avatar
4 votes
2 answers
621 views

Get Product Options for each Product in the Catalog

I am trying to build a script that outputs all the product options for each product in the catalog into a CSV file. I have tried using the code on this page: http://www.atwix.com/magento/configurable-...
Jimmery's user avatar
  • 1,509
5 votes
3 answers
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 ...
klesk's user avatar
  • 81
2 votes
1 answer
142 views

Merging Options

Hi to everyone,  can I Merge Options from different Attributes? I have 3 Attributes (Length, Width and Height) that allows Customer to Filter Products by Length and/or Width and/or Height. In ...
Zig's user avatar
  • 51
0 votes
1 answer
5k views

Magento 1.9.1 Setting Default Value for Options

How can I set a default value if the radio buttons in the Associated Products doesn't appear anymore. According to the screenshot here you can select a default option by ticking one of the radio ...
jehzlau's user avatar
  • 437
0 votes
1 answer
78 views

programmatically creating attribute options - escaping

I'm using a script to programmatically create attribute options - the code is as follows: echo "Creating option ....\n"; $attr_model = Mage::getModel('catalog/...
Liam Wiltshire's user avatar
3 votes
1 answer
472 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 ...
Laura's user avatar
  • 31
0 votes
1 answer
454 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') == '...
nlife's user avatar
  • 1
2 votes
1 answer
633 views

How to retrieve option store label?

Could someone teach me how to retrieve the option label for current store view? There is a table eav_attribute_option_value where these information are already stored, but I don't know what model I ...
Magix's user avatar
  • 33
1 vote
0 answers
121 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> <...
Dmitry Jumagaliev's user avatar
0 votes
1 answer
546 views

How do you show image tiles as configurable product option?

I am trying to get my configurable products set up as shown below. I have looked all over and unless I'm using the wrong terms I can't see it anywhere. To confirm at the moment I have a dropdown ...
Ricky Banks's user avatar
1 vote
2 answers
677 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 ...
David Manners's user avatar

1
2