Questions tagged [dropdown-options]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
360 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: <...
user avatar
  • 925
1 vote
2 answers
2k 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 ...
user avatar
  • 1,443
1 vote
2 answers
203 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 ...
user avatar
1 vote
1 answer
142 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 ...
user avatar
1 vote
1 answer
410 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="...
user avatar
1 vote
0 answers
49 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 ...
user avatar
1 vote
0 answers
38 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 ...
user avatar
0 votes
2 answers
460 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 ...
user avatar
0 votes
2 answers
135 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 ...
user avatar
0 votes
1 answer
356 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 __('...
user avatar
0 votes
1 answer
958 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..!
user avatar
  • 2,154
0 votes
1 answer
1k 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 ...
user avatar
  • 103
0 votes
1 answer
22 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 ...
user avatar
0 votes
1 answer
23 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 ...
user avatar
  • 107
0 votes
1 answer
104 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 ...
user avatar
0 votes
0 answers
19 views

Magento2 how to get the custom dropdown options value in cart page & admin sales order view

I need to get the custom dropdown options value in cart page & admin sales order view.
user avatar
  • 3,426
0 votes
1 answer
30 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.
user avatar
  • 300
0 votes
1 answer
31 views

Get dropdown value in helper file?

$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); /** @var \Magento\Eav\Api\AttributeOptionManagementInterface $attributeOptions */ $attributeOptionsManagement = $...
user avatar
  • 188
0 votes
1 answer
93 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\...
user avatar
0 votes
2 answers
180 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( '...
user avatar
0 votes
1 answer
114 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
user avatar
  • 105
0 votes
1 answer
2k 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?
user avatar
  • 1,434
0 votes
2 answers
1k 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.
user avatar
  • 934