Stack Exchange Network

Stack Exchange network consists of 175 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 [dropdown-attribute]

The tag has no usage guidance.

1
vote
0answers
14 views

How to call and place customer dropdown attribute in Customer Registration Page and One Step Checkout?

I have made a custom customer dropdown attribute like shown in the screenshot (through Silk Software). See Screenshot: I was wondering how to make show the dropdown in the customer registration form ...
0
votes
2answers
50 views

How to create customer custom Drop Down attributes in magento 2

Namespace/Module/setup/installData.php $customerSetup->addAttribute(Customer::ENTITY,'credit_type', [ 'type' => 'int', 'label' => '...
0
votes
1answer
67 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.
0
votes
0answers
35 views

Layered Navigation: Create Attribute Options for Drop Down During New Product Import

so I currently have product data in XML format. 1 XML File = 1 Product. Each XML has tons of product data and I am using a Wyomind's Mass Product Import to get them in. 90% of this process is perfect,...
1
vote
0answers
123 views

How to show dropdown configurable attribute in Product Category View in Magento 2?

I have color attribute of type visual swatch, which is displayed on category view as well as catalog search view below the product images, on selecting the swatches, it changed the image as well price....
1
vote
0answers
100 views

Magento 2: Configurable product dropdown attributes on category listing page

I am looking for an option to get the configurable product attributes with each product on category listing page. Magento 2 defaults to swatches only. How can we change it to dropdown? Thanks
1
vote
1answer
480 views

Magento2 Add dropdown option in product listing page for configurable product

I want to change text-swatch to dropdown in category page. I want here drop down instead swatch
0
votes
1answer
43 views

How to remove special characters in a dropdown menu in product view page?

I am using a dropdown attribute but it is displaying special characters. Can you please give me a solution for removing special characters in dropdown menu. Thank you in advance !
3
votes
0answers
246 views

Display custom drop down in registration page using Magento2.1

I tried this code but it's not working app\code\Customer\Attribute\Setup\Installdata.php $customerSetup->addAttribute(Customer::ENTITY, 'customer_type', [ 'type' => '...
0
votes
0answers
215 views

Custom dropdown attribute magento 2

How to create a custom attribute for configurable product using setup script. and the drop down list out all the bundle product and the value of drop down displayed in product detail page of a ...
0
votes
1answer
450 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
2answers
26 views

Remove Free shipping option

Not sure how to remove free shipping option from sort by options. There is currently no free shipping products but it picks up all products, hence misleading. Thanks
0
votes
0answers
163 views

How to set string value in dropdown attribute programmatically in magento 2.2.X?

I want to set one string value to sizes attribute in drop-down ? //get sage dimension value $dimension = $value->Dimensions; //set value $product-...
1
vote
1answer
859 views

Magento 2 how to add city dropdown

i am trying to city as dropdown in only checkout page with following script in Magento\Checkout\Block\Cart\LayoutProcessor.php $elements = [ 'city' => [ 'visible' => true, ...
3
votes
0answers
333 views

Magento 2 - Product options drop-down empty on front-end

We are doing a mass product integration. For configurable products we are getting an issue where options are not appearing within the drop-down like so: I've narrowed it down to the following method: ...
4
votes
2answers
1k 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
533 views

Magento 1.9: validate custom attribute

I want to make it a last step in onepage checkout process and mandatory. So far I am able to store the value of that attribute in the database and also display it in admin/sales/order but not able to ...
0
votes
1answer
166 views

How to add onchange to a custom option (drop-down)

This should be simple but for some reason I can't find a solution. I have some custom options that are listed on a drop down I'd like to call a javascript function when the user changes the option. ...
0
votes
1answer
558 views

Add a custom field's in registration form with relationship

I need a little help .. I need to create a new field in the registration form, and this field needs to be dynamic. I enter the panel and add the options that I want to appear in this form, and in ...
1
vote
1answer
94 views

Product Options are not coming for the configurable products in magento

Product options for the configurable products are not coming at the product page. echo $this->getJsonConfig() did not return any value and the page breaks after var spConfig = new Product.Config(....
0
votes
1answer
310 views

dropdown list not shown

I have a store in 2 languages. i create attribute Input Type for Store Owner is Dropdown. the list of choices are shown and work very well in store of English language but store in other language not ...
1
vote
6answers
684 views

Update dropdown attribute value Programtically for single product

Onclick Add to cart button we are trying to update the Attribute value from "NO" to "YES". [ attribute code : cart_status (Yes/No dropdown) Attribute ] I tried below code, its changing attribute ...
0
votes
2answers
2k views

Magento 2: Get Product Attribute’s Select Option Id as Per Option Value For Configurable Product

I have fetched options attribute value as <?php $packaging = $_product->getResource()->getAttribute('packaging')->getFrontend()->getValue($_product);?> I am getting options ...
0
votes
1answer
70 views

How can i enable mouse scroll up/down for attribute list

How can i enable mouse rollover on attribute list for up/down list of attributes.
0
votes
1answer
124 views

Output attribute text on product view page from simple product which is associated with configurable product

The above question may sound confusing, so I'll simplify and explain it more below - I tried to look for this answer but couldn't find anywhere. I have a configurable product for t-shirts which has ...
1
vote
2answers
1k views

Magento 2 Rest API - how do I add values to dropdown product attribute

I have problems in adding values to an existing product attribute, using the API POST /products/attributes/:attribute_id/options. The corresponding GET API is working fine, as explained below. I have ...
0
votes
2answers
1k views

getAttributeRawValue gives an id

I'm trying to compare an attribute value with a custom value. We use the getAttributeRawValue to get the product's attribute. That give's me the ID of the value. (If that makes sense). Currently I ...
0
votes
1answer
173 views

Show the SKU in the dropdown of Configurable Products?

Possible this is a very simple task. But is it possible to add the SKUs of the Simple Products in the dropdown on the Configurable Products views? There seem to be no option for doing this, so I ...
1
vote
2answers
760 views

How to get value of custom dropdown product attribute?

I created a custom attribute in my products page. The attribute is a dropdown list. The name of the attribute is soldby. I want to extract the value of that attribute. I wrote: $seller= Mage::...
1
vote
0answers
304 views

Sort Configurable Attribute Options Alphabetically Except for First One (Default)

I've made changes to my Magento code to remove the "Choose an Option" in the drop down for configurable products. Now, I want to ensure that the drop down menu options are loaded in alphabetical ...
3
votes
0answers
431 views

using swatches instead of dropdowns 2.1

Is there an option in admin to show swatches instead of drop downs? I seem to remember there being an option in magento 1.9 to do this but can't seem to find it in admin here. Just to clarify this ...
1
vote
0answers
544 views

How to filter coloums with no value in grid? [closed]

In Store>Manage Grid , I have added a "empty" value to drop downs which filters out all the records in which this particular field is empty. It works fine for all but is having problems for those drop ...
0
votes
1answer
67 views

Switch order of attribute after creating a lot of products?

How do you change the order of attributes, that are already in use in configurable products? For example I have an attribute with the sizes: S, M, XL, L. These attributes have different "Position" ...
1
vote
0answers
191 views

Text attribute to drop down

I am running magento 2 and would like to convert my text attribute to a dropdown menu. I am comfortable to mysql and php but i do not really understand that database structure. Is it possible to ...
0
votes
2answers
101 views

Magento 2 - Configurable products not pairing with simple products?

When I import my .csv - with my simple and configurable products inside, the document is imported correctly with no validation errors. The issue I'm having is the configurable products aren't paired ...
0
votes
2answers
413 views

Manufacturer attribute is not working on advanced search page

I have added manufacturer attribute in advanced search page. when i am searching product by manufacturer its showing error You have to specify at least one search term. but when i am searching with ...
9
votes
5answers
9k 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 ...
0
votes
1answer
26 views

magento2: drop-down attribute call an image if its Yes

i would like to call an image if the drop-down attribute is marked as "yes" from drop-down - if its "No" then i dont want to call an image. i am using the below code but this seems to pull the image ...
0
votes
1answer
1k views

how to get attribute all dropdown values selected by the product in magento 2?

I am trying to show the attribute's dropdown values selected in product. For that I am using this way. <?php $parentIds = $objectManager->create('Magento\ConfigurableProduct\Model\...
0
votes
0answers
45 views

Clear All form including dropdown on Save

I have a block of code that I call for a dropdown in the form. The issue is when the product data is 'submitted' from the save button the form the old data stay there, but only in dropdowns . The '...
3
votes
3answers
4k views

Changing sort-order of attribute dropdown (configurable product, magento 2) [duplicate]

I want to change the order of the dropdown (where a customer can select the variant he/she wants). I already tried to change the order in the attribute itself but it does not apply to the products ...
0
votes
1answer
332 views

Fetch Dropdown Selected Value on “list.phtml”

I am created one custom dropdown attribute , now i want to fetch dropdown selected value display in "list.phtml".
1
vote
1answer
254 views

How can i change Attribute FIlter as a Drop Down Instead of list

I need to change my attribute selection as a drop down instead list. User can manually click what they are need to be applied filter of products. Attribute List :
1
vote
2answers
1k 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 ...
1
vote
1answer
537 views

How to enable search for selected dropdown values?

I want to keep the dropdown attribute along with their values at frontend (Home Page) for searching the catalog. I entered following code: <div class="search"> <li class="fields"> <...
0
votes
1answer
148 views

Dropdown Values Option with Multi Store Issues

I have some dropdowns I'm using on a mobile form using getSelectValues. However, if I use Frontend Options as well, in this case I'm using values Yes/No for Admin and C/B for Store 2, it changes the ...
1
vote
1answer
3k views

set custom dropdown attribute for customer

I have create a custom attribute (dropdown) for customer as follow: $installer = $this; $installer->startSetup(); $entityTypeId = (int)$installer->getEntityTypeId('customer'); $...
0
votes
2answers
449 views

Magento 1 - How to display static block based on dropdown selection of created attribute?

I am trying to display a static block based on the selection that has been made when adding a product in the magento backend. So the situation is, I am adding the product and select a option from a ...
0
votes
0answers
405 views

Custom source model or attribute options

I have a few attributes that come with input select or multiselect. I have created source models to provide options for inputs. Everything seems to work (values are saved). But today I realized that ...
1
vote
1answer
794 views

How to add an option into a custom created dropdown-attribute for category in magento

I have created a custom dropdown-attribute for magento category with few option, Now I want to add one more option to this select attribute. Is there any way to do this without deleting the existing ...