Questions tagged [dropdown-attribute]
The dropdown-attribute tag has no usage guidance.
175
questions
2
votes
1
answer
40
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
0
votes
1
answer
35
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
0
votes
0
answers
16
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. ...
0
votes
2
answers
316
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 ...
0
votes
1
answer
266
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 ...
-1
votes
2
answers
698
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
$...
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....
0
votes
1
answer
130
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 ...
0
votes
1
answer
318
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
1
answer
270
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
1
answer
54
views
Get dropdown value in helper file?
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
/** @var \Magento\Eav\Api\AttributeOptionManagementInterface $attributeOptions */
$attributeOptionsManagement = $...
0
votes
0
answers
64
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....
1
vote
0
answers
537
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 ...
1
vote
0
answers
149
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
0
answers
122
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
0
answers
114
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
0
answers
50
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
0
answers
411
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
0
answers
138
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
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;
...
2
votes
0
answers
913
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
1
answer
942
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
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.?
3
votes
3
answers
606
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
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-...
1
vote
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 ...
1
vote
0
answers
124
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
1
answer
107
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
1
answer
2k
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
2
answers
812
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('...
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.
0
votes
1
answer
119
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
1
answer
45
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
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 ...
0
votes
0
answers
68
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
0
answers
41
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
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' => '...
1
vote
1
answer
4k
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
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....
2
votes
1
answer
798
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
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
0
votes
1
answer
182
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
0
answers
589
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
0
answers
577
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
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 ...
0
votes
2
answers
30
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
1
answer
540
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
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,
...
6
votes
0
answers
594
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
3
answers
14k
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->...