Questions tagged [dropdown-attribute]

The tag has no usage guidance.

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

How to get value for dropdown in custom form?

customform.phtml <div class="field country required"> <label class="label" for="country"><span><?php /* @escapeNotVerified */ echo __(...
0
votes
1answer
17 views

Unable to select first value from dropdown in jquery

I populated the dropdown with the help of array. for example I have array with elements (ali,abid,naqvi). Problem..... when I clear the cache and reload the page. and first time I am unable to select ...
0
votes
1answer
28 views

Get dropdown value in helper file?

$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); /** @var \Magento\Eav\Api\AttributeOptionManagementInterface $attributeOptions */ $attributeOptionsManagement = $...
0
votes
0answers
12 views

How to change/edit the wording of dropdown menu “Please select…” from getRegionHtmlSelect()?

I have a custom module that prompt customer to enter their ship to location (US state). I have implemented and everything is working. The only thing that I want to change is the dropdown menu, it is ...
0
votes
0answers
33 views

The Text Appears with the dropdown on Custom Module

My code on a custom delivery time module works all fine but it shows the given text outside the dropdown box , I racked my brain trying to fix this and I still couldn't , please do help!! WorkingOff....
0
votes
0answers
18 views

SelectAll option for product attribute multiselect dropdown

I'm trying to add functionality for SelectAll option in product attribute. Like if i click SelectAll option all other options should be disabled. How can i achieve this in attribute multiselect ...
0
votes
0answers
8 views

Show only assigned attribute options in advanced search form Magento 2

i am trying to change the advanced search form layout. I need the multiselect attributes to be shown as dropdown and only assigned options needed to show in it. First task sucessfully done by ...
1
vote
0answers
41 views

How to remove price from configurable products drop down options in magento 2.3.2

I have configurable products made with multiple simple products on my magento 2.3.3 site. I have one attribute called Product lenght which consists of Yards and Swatch option. In the dropdown along ...
0
votes
0answers
19 views

Remove “Choose an Option…” in Configurable Attribute Dropdown Menu

I'd like to COMPLETELY REMOVE Choose an Option… line from the dropdown menu in the configurable product page as in the pic and select the first option by default. What I already tried: I already ...
1
vote
0answers
17 views

how can I get the custom customer attributes dropdown box to checkout page?

I created a customer custom attribute with options. It did show on the user profile(able to save and edit). How do I make this dropdown box also show at the checkout page? (above shipping method) It ...
1
vote
0answers
32 views

I create attributes for customer, how to add storefront properties?

I created a dropdown customer attributes by default Magento2. I would like to pull this dropdown box out to the checkout page. When customer at checkout page, they will see that dropdown box above ...
1
vote
0answers
31 views

Magento 2: How use attributes options for the dropdown box?

I created a customer attribute. it is a dropdown box, I did create Options inside the attributes. It was use in customer profile page. I have a checkout page, want to display this attributes dropdown ...
1
vote
0answers
29 views

Magento 2: Customer dropdown attribute not selecting first option

I have added a new customer attribute which is working fine. The only thing is that I would like it to display the first option selected by default in both admin and frontend side (account create / ...
1
vote
0answers
41 views

How to get Data of a UI Component Admin Form and use it in Controller?

So i'm creating a UI Component Admin Form with a few fields, and one of them is a Dropdown field. I want to get the value that user selects, using a custom controller that i made. I tried this comands:...
1
vote
0answers
16 views

How to create a custom UI Component dropdown field?

Hi i'm new at magento 2 and i want to create a dropdown field with two custom strings options. And if possible in other ocasion i would like to customize with a sql select values.
2
votes
0answers
13 views

Create 3 product attributes of dropdown, with its values

I am not able to make appear 2 of the 3 new attributes in magento_admin_site here is the code in InstallaData.php <?php namespace Ht\Mymodule\Setup; use Magento\Eav\Setup\EavSetup; ...
0
votes
0answers
10 views

Options Not Displaying in Configurable Products Dropdown On Front End

We have a configureable product, with a couple options under each Configurable option. On the front-end, when viewing the product, the dropdowns do not populate with these options. We see "Choose an ...
1
vote
0answers
101 views

Configurable Product - Disable and grey out out of stock

I've seen some posts about this but can't get to a conclusion. In a configurable product with dropdown all option appears (in stock and out of stock), what I need is to disable the ones out of stock ...
1
vote
1answer
188 views

How to show the product attribute in the product listing page Magento 2.3

How to show the product attribute in the Product listing page i had used the helper in Magento_Catalog (Magento_Catalog/templates/product/list.phtml) but it gives the value of the product attribute ...
0
votes
0answers
24 views

Magento 2 : Custom dropdown for city and state not loading in IE

I created custom city and state dropdown all working fine but in the IE it is not loading. Can anyone please help.?
3
votes
2answers
197 views

How to Show Admin Label in drop down fillter on product grid?

Admin: When we add any product attribute(Type Drop-Down) in the filter on the product list at that time default store value is showing in filter drop-down options so I want to show admin label value ...
1
vote
0answers
70 views

Limiting the number of drop-down options

I have created an attribute which consists of two option. say A and B and on the front-end, I have another attribute which is a drop-down. Is it possible to limit the number of options in the front-...
1
vote
1answer
180 views

Magento2 - Set value for dropdown type product custom attribute programatically

I have a custom attribute with code 'manufacturer'. Its Catalog Input Type for Store Owner is 'Dropdown'. How can i set the value for this attribute programmatically on product save. I am trying ...
1
vote
0answers
75 views

Strike orginal price and show advanced pricing and show total saving in 2.3.3

I have a configurable product in which each simple product is given as advanced pricing. I need to show the both advanced pricing and the original price to be striked out as shown below. It has to ...
0
votes
1answer
55 views

Changing Dropdown attribute to text in magento 1.9 without changing data

In Magento 1.9, I am going to convert my drop-down attributes to text field without changing my current data Below is the image of current attribute set
1
vote
1answer
888 views

Magento 2 : Display dropdown attribute with its label in product listing page [duplicate]

How to display dropdown type product attribute in product listing page and I also want to display that label name? How to display that drop-down attributes? I created in admin. But, it's not ...
0
votes
2answers
89 views

How to get dropdown product attribute value Magento2

I have created a product drop-down attribute and assigned a value to it on the product. I need them on product detail page. $_attributeValue = $_product->getResource()->getAttribute('...
0
votes
0answers
61 views

Magento2 - add dropdown city everywhere in store

Magento2 - I want to show city in dropdown for everwhere in store. I was tried with https://github.com/EaDesgin/Magento2-City-Dropdown but its not working properly.
0
votes
1answer
58 views

Add options to quote programmaticaly

I'm creating quote and order programmaticaly. I can't figure out why options product are not added to my order / quote. See : $superAttr = $item["super_attribute"]; if(!empty($superAttr)){ $...
0
votes
1answer
40 views

Add options to Sub-category attribute in Magento 1

I want to add additional option to the subcategory attribute but I cannot locate where to update its content within the Magento Admin Panel. See this link for full image - https://drive.google.com/...
1
vote
0answers
33 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 ...
0
votes
0answers
36 views

Empty row in dropdown admin panel magento 2

I had empty row in drop down for attribute in adminpanel. Although there is no empy value while creating attribute.How to remove it.
1
vote
0answers
30 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
2k 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' => '...
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.
1
vote
0answers
234 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
1answer
463 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
3
votes
2answers
2k 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
105 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
491 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
510 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
2answers
2k 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
28 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
1answer
411 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
1k 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, ...
5
votes
0answers
506 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: ...
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
1k 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
269 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
655 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 ...