Questions tagged [dropdown-options]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
67 views

2.4.6: Filter available attribute sets according to product type, using a plugin

In my custom plugin, the InstallData.php script creates a custom attribute set. For the purposes of this Q&A, we will call it 'Custom Attribute Set #1'. I would like the attribute set to only be ...
Muckee's user avatar
  • 689
0 votes
1 answer
111 views

Magento 2.4.5p1 Remove Price From Custom Product Options Drop Down - No Solution Working

Hello and thank you for any assistance with this. I have tried many things to make this work but nothing has worked so far. I have tried every solution on this page: Magento 2.2.3 - Remove price from ...
drewski22785's user avatar
4 votes
0 answers
81 views

How Can I add a custom dropdown type field at the admin create order billing form in magento2

I want to convert the city text field in the dropdown field at the admin create order page. I had done the same thing in customer checkout using the Layououtprocessor plugin. Also, I did the thing in ...
Keval Chauhan's user avatar
2 votes
0 answers
69 views

How Can I add a custom dropdown type field at the Billing address form on the admin side

I want to override the magento the city (in the admin customer billing address) to be a dropdown list of cities. This has already been done in the Checkout for users.
Keval Chauhan's user avatar
0 votes
1 answer
402 views

Magento 2: Create Dynamic Category Dropdowns on Frontend

I, once again, have to ask for your help. I need to create a modal that let the customer select their car brand, model and year, and I need to populate the select options depending on the selections ...
Alberto Privado's user avatar
0 votes
1 answer
512 views

How to disable a knockout generated dropdown option by default

I am trying to disable a certain option of select generated from knockout on the checkout page. I tried what was mentioned on the knockout documentation i.e. to call optionsAfterRender. But this gives ...
nix's user avatar
  • 117
0 votes
1 answer
656 views

Magento 2: Select first dropdown option on change

I'm new in Magento 2 frontend development (and in development in general) and I am really lost at it, it's being hard to get arround some concepts, so I would like to ask for help in some specific ...
Alberto Privado's user avatar
0 votes
1 answer
132 views

Getting List / Deleting the Unused Option values using API in Magento 2

Need to get all the unused attribute value and delete it via API. How to get the Unused attribute list using SQL Query.
Sabareesh's user avatar
  • 328
0 votes
2 answers
928 views

Configurable Product Options Randomly Empty in Frontend

On Magento 2.3.6-p1 we have an issue where customers cannot select a product's options because the options list is empty. This is very inconsistent since different products with the same option ...
EightBitBoy's user avatar
0 votes
1 answer
53 views

Get dropdown value in helper file?

$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); /** @var \Magento\Eav\Api\AttributeOptionManagementInterface $attributeOptions */ $attributeOptionsManagement = $...
aich.khalid's user avatar
0 votes
2 answers
843 views

How to make the input is selected on admin form?

I have a form like this. This is used to save a new custom admin. But I have a problem with showing a value in the store_id field while editing. While showing this form the store field must be ...
Friska Sianturi's user avatar
0 votes
1 answer
308 views

Magento 2 get option label from custom admin dropdown

For my custom plugin I created an options array like this: path : => \Vendor\App\Block\System\Config; namespace Vendor\App\Block\System\Config; class NatureIva implements \Magento\Framework\Data\...
Davide Iandoli's user avatar
0 votes
2 answers
400 views

Magento 2 How to hide or show contents based on drop-down content in Admin page

Here am added a dropdown for a list of type. based on selected type I need to show or hide the another field. how to achieve it. Here is my code. $mainTypeField = $fieldset->addField( '...
Praveen Negimani's user avatar
0 votes
1 answer
177 views

How to Remove + Sign From dropdown from bundle product?

how can we remove +(Plus) sign from Dropdown list from bundle product? in Magento 2.3.4 i have tried this link but its not work for me.. Link
rocky9310's user avatar
  • 115
0 votes
1 answer
642 views

How to add dropdown for product qty in update cart page in magento 2?

I added dropdown for product qty box in addtocart.phtml like below: <div class="field qty"> <label class="label" for="qty"><span><?php /* @escapeNotVerified */ echo __('...
Kowsigan Atsayam's user avatar
1 vote
1 answer
307 views

Dropdown 'selected' not working in config

I created dropdown in a table similar to Store > Config > Catalog > Invenotry, everything is working perfectly except selected is not working in my dropdown, however values are stored in a ...
Sagar Parikh's user avatar
1 vote
1 answer
728 views

Magento 2: Ui form not loading after adding select field

I have a ui-form for adding new record to my table. But the form is not loading when I add a new select field into it. Here is the field component in the form.xml file, <field name="...
coderaiseR's user avatar
1 vote
1 answer
3k views

How can I change the City Name to Drop Down on Checkout Page. Magento 2

I want to change the city name to dropdown menu like in dropdown it shows specific cities name like NYC, Mumbai,HongKong,Karachi and etc how is it will be possible?
Asad Khan's user avatar
  • 1,476
1 vote
0 answers
85 views

City dropdown values on checkout page changes to other store cities on browser autocomplete

I am facing a very strange issue where the city dropdown shows the cities of KSA and when the user selects his dubai address from browser's autocomplete option in street address field the city ...
Shujaat Shaikh's user avatar
1 vote
3 answers
3k views

Magento2 + Need to display Configurable Drop Down option on category page

I need to display the only Size attribute drop-down on a category page listing. Size is a configurable option & Catalog Input Type for Store Owner value is Dropdown. I have enabled Used in ...
Yogesh's user avatar
  • 1,483
0 votes
2 answers
2k views

Magento 2 How to add country and state dropdown in admin form? [duplicate]

I need to add Country and State Dropdown in Magento 2 admin form. Please help me.
temper's user avatar
  • 974
2 votes
0 answers
473 views

How to pass custom option values from product detail page to cart page in Magento 2?

I want to pass custom option values from product detail page to cart page in magento2. Refer screenshot I have selected here size: 5 and want to pass the value to cart page. Here is my code: <...
Amy's user avatar
  • 935
0 votes
1 answer
1k views

Magento2 - How to display image inside dropdown?

I want to display image inside drop down option like below image, Can anyone suggest me how can i achieve this? Any help would be appreciate. Thanks In Advance..!
Sanjay Gohil's user avatar
  • 2,180
1 vote
0 answers
39 views

Edit dropdown attribute of Sub category

I am trying to fill-in the information of a product category in Magento v.1.9.4.1, however, I am unable to locate or figure out how to add an additional option under this "Dropdown" menu I was able ...
aj noguerra's user avatar
0 votes
1 answer
2k views

How to Fetch results from server using JQuery AJAX? on the basis of Drop-down Condition

I have two conditions, if two conditions are matching the given value should display. I am using input value as Drop down. If the value of two drop-downs matched i need to display my value on same ...
zus's user avatar
  • 145
1 vote
2 answers
547 views

Magento 2 - The right way to get a product attribute value

I'm wondering if there's a right way to get the value of a product attribute, in a generic way. EDIT: Or whatever I can use to get the info from a dropdown or text field using the same mechanism I ...
CJ García's user avatar