Questions tagged [dropdown-attribute]

The tag has no usage guidance.

72 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
596 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: ...
Chris Rogers's user avatar
5 votes
0 answers
1k views

Magento 1.7 : Custom Option Validation Dependent on another Custom Option

I need help to apply validation on custom option, that is dependent on another custom option value. Here is the image, which describes what I actually want : Please suggest, I am using Custom ...
LuFFy's user avatar
  • 413
4 votes
2 answers
3k 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
Ketan Borada's user avatar
  • 2,603
3 votes
0 answers
591 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' => '...
gill's user avatar
  • 329
3 votes
0 answers
501 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 ...
Sackling's user avatar
  • 283
3 votes
1 answer
291 views

Magento 1.9.2.4 is not hiding unused attribute combinations in configurable products

I have an issue with my Magento shop based on Magento 1.9.2.4. In backend if you check the screenshots you'll see that I have 2 attributes (global, dropdown, included for configurable products): ...
ovidake010's user avatar
2 votes
1 answer
66 views

how to make country dropdown with search box in magento 2

How can i add search input on country drop dawn field in magento i need to add the search input like show in below screenshoot
Jay Parmar's user avatar
2 votes
0 answers
16 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; ...
Agustina Fernandez's user avatar
2 votes
0 answers
981 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 ...
Rui Silva's user avatar
  • 374
2 votes
1 answer
1k 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 ...
Nafsss's user avatar
  • 760
2 votes
2 answers
3k 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 ...
Nicola Lepetit's user avatar
2 votes
1 answer
1k views

How to place sizes in order

We sell clothing and have configurable products that consist of simple products with sizes S,M,L,XL etc. When we choose a product and click on the size dropdown the sizes turn up in random order: M ...
stefaniiia's user avatar
2 votes
1 answer
563 views

How to change attribute title

Hi recently I have create a dropdown attribute,now client need to change the title of attribute I have tried to change title from catalog->manage Attribute->Manage Attribute->Manage Label/options->In ...
konika's user avatar
  • 579
2 votes
1 answer
160 views

Hide attribute type dropdown if no value

I use this code to hide attributes when they do not have data: <?php foreach ($_additional['items'] as $_data): ?> <?php $_attribute = $_product->getResource()->...
JGeer's user avatar
  • 1,418
1 vote
0 answers
628 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 ...
Nafsss's user avatar
  • 760
1 vote
0 answers
154 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 ...
Paul Fan's user avatar
  • 654
1 vote
0 answers
126 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 ...
Paul Fan's user avatar
  • 654
1 vote
0 answers
129 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 ...
Paul Fan's user avatar
  • 654
1 vote
0 answers
52 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 / ...
Paloma Martinez's user avatar
1 vote
0 answers
435 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:...
Rafael Fagundes's user avatar
1 vote
0 answers
148 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.
Rafael Fagundes's user avatar
1 vote
0 answers
94 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-...
Mr Zid's user avatar
  • 438
1 vote
0 answers
127 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 ...
Haerriz's user avatar
  • 681
1 vote
0 answers
76 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.
Anas Mansuri's user avatar
  • 2,627
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
1 vote
0 answers
42 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 ...
Julian Murillo's user avatar
1 vote
0 answers
277 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....
Rizwan Dhuka's user avatar
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, ...
Ramesh's user avatar
  • 986
1 vote
1 answer
116 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(....
PBCoder's user avatar
  • 33
1 vote
0 answers
482 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 ...
NotJay's user avatar
  • 515
1 vote
0 answers
217 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 ...
Richard's user avatar
  • 11
1 vote
1 answer
347 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 :
Gem's user avatar
  • 699
1 vote
1 answer
812 views

attributes not hiding unavailable product options on product page

I switched from an old magento version ( 1.9.0.1) to the latest stable release (1.9.2.4) and suddenly discovered that the new version has a lot of issue with product attributes. I've managed to solve ...
giancarlo's user avatar
  • 151
1 vote
2 answers
404 views

Compare attribute value of different attribute sets

What I'm trying to accomplish: I have 2 types of products. Rental cars Rental companies (of those cars) When comparing rental cars I want to show the rental cars attributes but also the attributes ...
user1897753's user avatar
1 vote
1 answer
443 views

How do I make the country field unrequired?

In the addressbook I already made the telephone field unrequired by setting the field is_required to 0 for attribute with the attribute_code "telephone" in the eva_attribute table. I searched for an ...
user26806's user avatar
1 vote
1 answer
307 views

Fresh Magento 1.9.1 install shows wrong price format in dropdown menus of configurable products

Every other place where the price is shown it is done in the correct 1.234,00 € (dot for thousands, comma for decimal) format except for dropdown menus of configurable products where the incorrect ...
Dan's user avatar
  • 21
1 vote
0 answers
181 views

Sort products by drop-down attribute on category page

I created an attribute which Input Type is drop-down and has custom source model, similar with brand. Now if I sort the product list by this attribute products are sorted by option id rather than ...
mageUz's user avatar
  • 6,234
1 vote
2 answers
1k views

How to set the default option in existing dropdown attribute

How do I set an option in a dropdown attribute as the default? I am adding the options to an existing attribute with this code where $aName is an array of names. $installer = new ...
Dan's user avatar
  • 405
1 vote
1 answer
590 views

Load fields based on selected option in add new product admin page

Hi Could someone help me with the following, In Add new products page, I have an attribute 'code generate' with a dropdown list of values Yes, No. I need to show additional attribute fields such as '...
Magento_Newbie's user avatar
0 votes
1 answer
37 views

Magento 2 Add Quantity Dropdown and to show Textbox when Quantity selection is 10 from dropdown at Cart Page

I want to add dropdown of 1 to 10 of quantity at cart page and if customer choose the 10 from quantity dropdown then the textbox appears for quantity field. please help me. thank you.
Jantar Mantar's user avatar
0 votes
1 answer
43 views

Magento 2 - how can I add 2 dropdowns in the same row?like the picture below

how can i add 2 dropdowns in the same row,how can i add 2 dropdown like the image above
Hải Lương's user avatar
0 votes
0 answers
17 views

Magento 2: Dropdown function before "Place Order"

Good day! i'm a newbie in magento, i've already created a custom payment method. I would like to replace the "success" and "fraud" into payment gateway e.g. Paypal & Paymaya. ...
vinz vinz's user avatar
0 votes
2 answers
373 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 ...
Magedev's user avatar
0 votes
0 answers
1k 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....
Manoj Jarial's user avatar
0 votes
1 answer
159 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 ...
Jasmin's user avatar
  • 1
0 votes
1 answer
350 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 __(...
zlep's user avatar
  • 168
0 votes
1 answer
55 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
0 answers
69 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....
weirdedout23's user avatar
0 votes
0 answers
31 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.?
Mayur Sisodiya's user avatar
0 votes
1 answer
113 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
J.Dev's user avatar
  • 1