Questions tagged [dropdown-attribute]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
9
votes
6answers
14k views

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 ...
12
votes
5answers
10k views

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 ...
3
votes
2answers
2k views

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 ...
2
votes
2answers
3k views

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 ...
6
votes
5answers
8k views

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 ...
6
votes
2answers
2k views

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 ...
3
votes
3answers
8k 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
3k views

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.
3
votes
2answers
5k views

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; $...
2
votes
1answer
2k views

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; ...
0
votes
2answers
503 views

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/...
0
votes
2answers
2k views

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, ...