Questions tagged [dropdown-attribute]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
68 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
25 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
22 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
24 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
0answers
13 views

Unable to change attribute type from swatch to dropdown magento2.2

i am using magento 2.2 , i have made a configurable product , but on my product page its keep displaying visual swatch although i setted dropdown in attribute. attribute set = colortest , attribute = ...
0
votes
1answer
29 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
0
votes
0answers
40 views

How to add price whenever dropdown attribute option selected in configurable product In Magento 1.9

How can I add price from drop-down selected value, whenever I selected drop-down attribute value then price are remove form selected option, but price is showing in option but when selected then ...
0
votes
1answer
115 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
0answers
19 views

How to create Dropdown list for custom attributes in grouped Products in Magento 2?

I have created two custom attributes like File Length and File Size. Now i have to create Dropdown list for above custom attributes and by using custom attributes i have to filter the table data in ...
0
votes
2answers
44 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
40 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
43 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
0answers
22 views

How to create a configurable attribute dynamically M2

i have a configurable product that depond on the choice of the customer of the attribute choice but this attribute is not static (not a static dropdown that contain values added by admin) but it's a ...
0
votes
1answer
34 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
20 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
26 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
26 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
814 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' => '...
0
votes
1answer
1k 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
211 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
218 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
2
votes
2answers
1k 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
83 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
386 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
375 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
1k 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
0answers
199 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, ...
4
votes
0answers
390 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
2answers
5k 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
804 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
236 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
640 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 ...
1
vote
1answer
103 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(....
0
votes
1answer
418 views

dropdown list not shown

I have a store in 2 languages. i create attribute Input Type for Store Owner is Dropdown. the list of choices are shown and work very well in store of English language but store in other language not ...
1
vote
6answers
857 views

Update dropdown attribute value Programtically for single product

Onclick Add to cart button we are trying to update the Attribute value from "NO" to "YES". [ attribute code : cart_status (Yes/No dropdown) Attribute ] I tried below code, its changing attribute ...
0
votes
2answers
2k views

Magento 2: Get Product Attribute’s Select Option Id as Per Option Value For Configurable Product

I have fetched options attribute value as <?php $packaging = $_product->getResource()->getAttribute('packaging')->getFrontend()->getValue($_product);?> I am getting options ...
0
votes
1answer
74 views

How can i enable mouse scroll up/down for attribute list

How can i enable mouse rollover on attribute list for up/down list of attributes.
0
votes
1answer
148 views

Output attribute text on product view page from simple product which is associated with configurable product

The above question may sound confusing, so I'll simplify and explain it more below - I tried to look for this answer but couldn't find anywhere. I have a configurable product for t-shirts which has ...
1
vote
2answers
2k 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 ...
0
votes
2answers
2k views

getAttributeRawValue gives an id

I'm trying to compare an attribute value with a custom value. We use the getAttributeRawValue to get the product's attribute. That give's me the ID of the value. (If that makes sense). Currently I ...
0
votes
1answer
194 views

Show the SKU in the dropdown of Configurable Products?

Possible this is a very simple task. But is it possible to add the SKUs of the Simple Products in the dropdown on the Configurable Products views? There seem to be no option for doing this, so I ...
1
vote
2answers
785 views

How to get value of custom dropdown product attribute?

I created a custom attribute in my products page. The attribute is a dropdown list. The name of the attribute is soldby. I want to extract the value of that attribute. I wrote: $seller= Mage::...
1
vote
0answers
373 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 ...
3
votes
0answers
489 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 ...
1
vote
0answers
637 views

How to filter coloums with no value in grid? [closed]

In Store>Manage Grid , I have added a "empty" value to drop downs which filters out all the records in which this particular field is empty. It works fine for all but is having problems for those drop ...
0
votes
1answer
88 views

Switch order of attribute after creating a lot of products?

How do you change the order of attributes, that are already in use in configurable products? For example I have an attribute with the sizes: S, M, XL, L. These attributes have different "Position" ...
1
vote
0answers
204 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 ...
7
votes
4answers
6k views

How to show the drop down attribute value using getData() method in magento 2?

When I try to get data from the material attribute like $_product->getData('material'), it shows the integer value. How can I convert it to the actual front-end value and in which file do I have to ...