Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [dropdown-attribute]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
9 votes
6 answers

Configurable product attribute sort order in Dropdown 2.12

The order of the dropdown is not consistent with the order of the attribute itself. Within the attribute size I have it ordered Newborn 0-3 mo and in the dropdown it shows up as 0-3 Newborn the ...
babywit's user avatar
  • 659
14 votes
5 answers

How to show the drop down attribute value using getData() method in magento 2?

When I try to get data from the material attribute like $_product->getData('material'), it shows the integer value. How can I convert it to the actual front-end value and in which file do I have to ...
user avatar
6 votes
5 answers

Swap Multiple Images with Configurable Swatches

I've got a question about the new lovely feature Configurable Swatches. I am setting up a configurable product with Colour and Size options, and I have set it up so that when a Colour is selected in ...
Naeem's user avatar
  • 163
6 votes
2 answers

How to display core Country of Manufacture attribute in layered navigation?

I like to have core Country of Manufacture attribute displayed in the layered navigation but it seems simply selecting one of the "Filterable" options in Use In Layered Navigation field is not ...
monocat's user avatar
  • 550
4 votes
2 answers

Magento 2 - Set simple product Color when creating product programmatically

Can any one help me? When I create simple product in GUI I can set color value by dropdown menu. My question is: How to assign color value programmatically, when I create simple product? I have ...
user3748173's user avatar
2 votes
2 answers

How do I get the ID of a dropdown attribute by its text label?

I have a product attribute which is configured to be a dropdown with a fixed list of available values. Now I need to write a script which will filter based on the selected value of the dropdown ...
STW's user avatar
  • 2,047
3 votes
2 answers

How to create custom dropdown attribute for customer in magento

I want to create a custom dropdown attribute for magento customer account. For this I have used $installer script but it is not working for me. My script as below : <?php $installer = $this; $...
Vinaya Maheshwari's user avatar
3 votes
3 answers

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->...
Rizwan Khan's user avatar
  • 1,939
3 votes
1 answer

how to add attribute in search results?

I have set some custom attributes (with dropdown). This code works in grid + product view: $_Promo = $this->htmlEscape($_product->getData('promos')); switch ($_Promo) { case 0: break; ...
fran35's user avatar
  • 189
1 vote
1 answer

Add a drop-down field in checkout form Magento 2

I want to add a drop-down here I can add area text field but when it comes to drop-down, I am facing problem.
Developper Magento 's user avatar
0 votes
2 answers

Getting custom attribute value from simple product load based on product collection

I have built a collection (includes ->addAttributeToSelect('*')) to generate a CSV and then from this collection, I need to fetch the associated simple products so that I can load different sizes, ...
zigojacko's user avatar
  • 1,754
0 votes
2 answers

Attributes did't selected in backend after changed from dropdown to multi-select

we converted dropdown attribute to muti-select attribute using following queries: step1) UPDATE eav_attribute SET entity_type_id = '10', attribute_model = NULL, backend_model = 'eav/...
Baby in Magento's user avatar