Questions tagged [dropdown-attribute]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
27 views

Default value for checkout field

I have a custom drop down field on my checkout on the shipping address and am having a difficult time making a default value. I have tried creating a template, specifying a default in a custom layout ...
user avatar
0 votes
0 answers
10 views

AEM: Getting Label value from Dropdown using CIF

I'm using AEM and CIF Components 2.4.2 to connect to Magento ver. 2.4.2-p2 We have a custom Product java class that adds some custom fields to be fetch by the GraphQl. However one of those fields is ...
user avatar
0 votes
0 answers
14 views

How to move the attribute text into the select box label in magneto 2 product details page?

In Product page how to move all configure attribute title on dropdown label and replace with default label (Choose an Option...)? currant : https://prnt.sc/1zwviuh expected : https://prnt.sc/1zwv9ap ...
user avatar
0 votes
1 answer
90 views

Display product attribute dropdown box value on product page, with custom placement?

I'm building a Luma child theme and I want to display my "brand" product attribute above the product title on my product page. I am currently using the following code in my child theme's ...
user avatar
-1 votes
2 answers
96 views

Magento2 get the customer custom attribute option value

In Magento2 observer, How can I get the customer custom attribute option value as my customer custom attribute in a dropdown. I tried below code but it is not working in observer, it works in block $...
user avatar
  • 3,446
0 votes
0 answers
381 views

Notice: Array to string conversion in vendor/magento/framework/Data/Form/Element/Select.php on line 135

When I am trying to delete any CMS page or delete any product in the admin backend it throws an error of the Array to String Conversion in directory /vendor/magento/framework/Data/Form/Element/Select....
user avatar
0 votes
1 answer
44 views

Change entries in dropdown list (Customer Title/Prefix list items)

We set up a Magento 2 shop. There are forms for customers to fill out e.g. register in the shop. In the dropdown menu for Name Prefix, I can see some entries for the user to choose. Where can I change ...
user avatar
  • 1
0 votes
1 answer
45 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 __(...
user avatar
  • 148
0 votes
1 answer
79 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 ...
user avatar
0 votes
1 answer
32 views

Get dropdown value in helper file?

$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); /** @var \Magento\Eav\Api\AttributeOptionManagementInterface $attributeOptions */ $attributeOptionsManagement = $...
user avatar
  • 198
0 votes
0 answers
42 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....
user avatar
1 vote
0 answers
170 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 ...
user avatar
  • 700
1 vote
0 answers
59 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 ...
user avatar
  • 518
1 vote
0 answers
75 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 ...
user avatar
  • 518
1 vote
0 answers
66 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 ...
user avatar
  • 518
1 vote
0 answers
40 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 / ...
user avatar
1 vote
0 answers
79 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:...
user avatar
1 vote
0 answers
56 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.
user avatar
2 votes
0 answers
14 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; ...
user avatar
1 vote
0 answers
402 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 ...
user avatar
  • 344
1 vote
1 answer
534 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 ...
user avatar
  • 298
0 votes
0 answers
28 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.?
user avatar
3 votes
3 answers
432 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 ...
user avatar
1 vote
0 answers
87 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-...
user avatar
  • 418
1 vote
1 answer
678 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 ...
user avatar
  • 700
1 vote
0 answers
101 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 ...
user avatar
  • 661
0 votes
1 answer
71 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
user avatar
  • 1
1 vote
1 answer
1k 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 ...
user avatar
0 votes
2 answers
146 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('...
user avatar
  • 434
1 vote
0 answers
67 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.
user avatar
  • 2,537
0 votes
1 answer
95 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)){ $...
user avatar
0 votes
1 answer
44 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/...
user avatar
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 ...
user avatar
0 votes
0 answers
44 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.
user avatar
  • 584
1 vote
0 answers
38 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 ...
user avatar
0 votes
2 answers
3k 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' => '...
user avatar
  • 409
1 vote
1 answer
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.
user avatar
1 vote
0 answers
263 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....
user avatar
1 vote
1 answer
680 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
user avatar
  • 151
4 votes
2 answers
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
user avatar
  • 2,463
0 votes
1 answer
135 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 !
user avatar
3 votes
0 answers
545 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' => '...
user avatar
  • 309
0 votes
0 answers
551 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 ...
user avatar
0 votes
2 answers
3k 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 ...
user avatar
  • 1,739
0 votes
2 answers
29 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
user avatar
0 votes
1 answer
504 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-...
user avatar
  • 3,111
1 vote
1 answer
2k 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, ...
user avatar
  • 932
5 votes
0 answers
545 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: ...
user avatar
3 votes
3 answers
12k 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->...
user avatar
  • 1,830
1 vote
1 answer
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 ...
user avatar