Questions tagged [multiselect-attribute]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
20 votes
2 answers
8k views

How to implement multiple category filter in Magento 2 layered navigation

I am implementing multiple category filters for layered navigation. I am getting the result as per my requirement but the collection size is coming wrong remains same as the parent categories ...
  • 1,496
17 votes
3 answers
16k views

How to Programmatically set a Product's Multi-Select Attribute by Labels

If have a multiselect attribute and want to set the selection on a product. $selectedOptions = "red,green,blue"; $product->..... // # what to do? How can I do that?
  • 14.1k
14 votes
4 answers
24k views

Get value of selected multiselect attribute

Take the following "car" product: Volkswagen Golf. It has a multiselect attribute car_options with the following possible options and their ids: Airco (id=123) selected Radio (id=124) selected ...
  • 1,307
10 votes
1 answer
19k views

Collection with FIND_IN_SET on multiselect attributes, but some has only one value

I am building a product collection, which will find results from a multiselect attribute. (relevant code that adds finset to collection - adjusted to display real id values) $attribute = Mage::...
  • 9,836
9 votes
2 answers
11k views

How to create multi select attribute for customer using install script?

I'm following many articles but i'm not able create multi select attribute. and i'm getting following error. a:5:{i:0;s:50:"Source model "" not found for attribute "exinent1"";i:1;s:3008:"#0 C:\...
  • 237
8 votes
1 answer
7k views

Custom product multiselect attribute not saving in admin

I have created custom product multiselect attribute successfully. But when i edit the product in admin and selecting some options(countries) of my multiselect attribute and if i click save its saved ...
  • 237
6 votes
2 answers
799 views

Multi select attribute not indexing CE 2.6.1

I migrated my site from 1.9x to 2.6.1. I have at least 2 multi select attributes that are not being indexed to catalog_product_index_eav. In researching this issue, I found that if the eav_attribute....
  • 171
5 votes
2 answers
7k views

How to add store multiselect to magento system configuration?

I have a scenario where i need to be able to select magento stores like this from the system configuration section.
  • 869
4 votes
3 answers
14k views

Magento 2: How to set default option in configurable options?

How to set drops downs on configurable products to be set to the first option rather than please select. I have tried below code: <script> require(['jquery', 'jquery/ui'], function($){ $('....
  • 5,265
4 votes
3 answers
9k views

Magento 2: Import multiple select attribute values using CSV

How can we import multiple select attribute values using CSV ? For example SKU "test" has two values for attribute "xyz" - "val1" and "val2". When I use both value as val1<space><comma>&...
4 votes
1 answer
3k views

Magento 2.1.2 - Importing multiselect attribute values from CSV

Is it possible to create values for a multiselect attribute via CSV upload? For example we want to populate a multiselect attribute for Car Year. We added a few sample entries and the ...
4 votes
2 answers
1k views

Support Multiselect Attribute in Admin Grid Column without UI

I'm extending a Magento 2 module which doesn't use UI. I've added a new column for a custom attribute to the module's Admin grid. However, I'm trying to change the attribute to a multiselect, and I ...
  • 2,967
3 votes
2 answers
4k views

Unable to save multi selected values to db from magento admin form and render it to grid

I have created a custom grid, I need to add a multi select field. Multi select field will be getting value from "customer_group" table as you can see in /www/Abc/app/code/local/Abc/Bar/Block/...
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->...
  • 1,850
3 votes
2 answers
1k views

How to make options default for multiselect attribute in Magento 2

select attribute programmatically in Magento 2, is there any way to make the options specified in the code as default so that whenever I create a product I don't have to select options manually. ...
  • 1,484
3 votes
1 answer
1k views

Default values of a multiselect input in widget options using widget.xml

I have this option in my widget.xml: <animation_effects> <label>Effects</label> <visible>1</visible> <required>0<...
  • 443
3 votes
1 answer
2k views

Multi Select Category Attribute not saving

I'm using Magento Community 1.9.0.0. I have programmatically created a custom category attribute which is a multi select. The attribute can be seen in my admin category section. When i select any ...
  • 1,366
3 votes
1 answer
2k views

product custom attribute multiselect not able to save the values

I have created product custom attribute called package which is multiselect. $this->addAttribute( 'catalog_product', 'packages', array( 'group' => 'Package', ...
  • 3,046
3 votes
1 answer
172 views

How to select all fields in multi-select on single click in magento 1.9

I am working in magento 1.9 . I am making a muliselect field. I want to select all fields on single click . Did magento 1.9 gave such tag by default ? . My code in system.xml looks like . <...
3 votes
1 answer
2k views

Add Custom Attribute in Customer Account admin side and its value from another Module?

I want to add a multiselect dropdown attribute to Customer module in Customer Account Tab (Admin Panel) and Want its value from my another module. Please let me suggest how can I achieve this. I am ...
  • 759
3 votes
1 answer
1k views

Assigning multiple sizes to one product SKU

We sell shoes online. Some shoes come in European sizes (37, 38, 39 etc.) while others come in U.S sizes of 7, 8, 9 etc. We have a search option whereby shoppers can select to view only shoes in ...
  • 31
3 votes
3 answers
331 views

Values from multiselect attribute

I have this code to get values from select/multiselect attributes <?php $attributes = $_product->getAttributes(); $themeColor = $attributes['theme_color']->getFrontend()->getValue($...
2 votes
2 answers
7k views

How to get a custom customer attribute on the frontend

I added an extra customer attribute using this code: $installer->startSetup(); $setup = new Mage_Eav_Model_Entity_Setup('core_setup'); $entityTypeId = $setup->getEntityTypeId('customer'); $...
  • 973
2 votes
1 answer
10k views

How to add multi-select field in magento2 ui form

I have created a custom module in magento2. And created ui component form to save title and sort_order value, now I want to add brands as multi-select field in my module's form. How to add a multi-...
2 votes
1 answer
121 views

If a configurable product has only one option available, should it automatically select it?

I was wondering what is best practice from the customers perspective. I have got a few configurable products from our webshop that have only one option available for selection. Should I make this ...
2 votes
1 answer
4k views

Custom Attribute Source Model for Multiselect

I followed this tutorial here: http://inchoo.net/ecommerce/magento/how-to-create-custom-attribute-source-type/ In this tutorial, there are two key settings which I want to change: 'type' ...
  • 2,967
2 votes
1 answer
2k views

Magento 2 how to get product multi select attribute? [duplicate]

How I can get the value of multi select attribute. I tried with below code but all return null $pro->getCustomAttribute('offer') $pro->getAttributes('offer'); $pro->getAttributeText('offer')...
2 votes
1 answer
318 views

$installer->addAttribute Some Settings Ignored

Inside a mysql4 upgrade script for my module, I have the following: $installer = $this; $installer->startSetup(); // Code that builds the var $optionList is here $collection = array( 'label' ...
  • 2,967
2 votes
1 answer
7k views

Magento Edit Product from Cart and get selected options

Problem: in the cart is a product set together from selected options. Now I want to edit one of those products. Question: how do I get the same option values to the configure page? The page that has ...
2 votes
1 answer
727 views

Unable to get multi selected eav attribute values in magento

I have a multi select attribute in eav_attribute with attribute_code my_managers, its entity_type_code is customer_address, I want to get selected value,,I am trying to export it to csv,in my ...
2 votes
1 answer
1k views

How to add multi select dropdown and comma seprated field from phtml in admin panel

I am new to magento, I have to add multi select drop down and a comma separated field to magento admin panel using phtml file, can any one guide me for this. thanks...
2 votes
1 answer
130 views

How to add multiselect stores in frontend

I'm working on a groupon like website and there is a frontend merchant dashboard to insert deals. I need to show, in the frontend dashboard, this multiselect from the backend. It just uses store ...
  • 973
2 votes
1 answer
307 views

How can I import multiple select attributes in Magento 2.3.5?

I'm working with a new installation of 2.3.5. I am unable to import a multi-select product attribute. My attribute I'm trying to import is "Year" for auto parts. I have tried importing with ...
2 votes
1 answer
91 views

How to update custom product multiselect attibute in magento 2.3.3

I have an existing product with a multi-select attribute and I need to update that multi-select attribute update programmatically. So how can I Update that option selected through programmatically? In ...
2 votes
0 answers
109 views

Magento2.3.0 any one use layered navigation with multi select checkbox using category and other attribute filter

I am using Magento2.3.0 community version and I have integrate all free version layer navigation but not working so my requirement is attribute option with checkbox select than not remove in ...
  • 1,607
2 votes
0 answers
150 views

How to create customer custom attribute for radio buttons in magento 2

I want to create customer custom attributes with following types: 1.radio buttons 2.checkbox Please provide me a solution to create customer custom attribute. If the checkbox contains more than 3 ...
  • 309
2 votes
1 answer
2k views

Magento 2: Add UI Multiselect Dropdown

How can I add categories multiselect (same as one used on product page - screen) to my custom module? Edit: Following @PrincePatel suggestion I have rewritten part of my code to use ui_component. The ...
  • 57
2 votes
0 answers
82 views

Proper type for multiselect attribute

What should be proper type for multiselect attribute? Of course it is connected with adding them programatically. There is no exceptions while adding text type programatically, but you can't use it ...
2 votes
0 answers
152 views

adminhtml multiselect attribute selection problem

in Magento 1.9 admin panel, I have created a custom multi select category attribute but it doesn't show selected options after saving. Below is the code that I have used to create the attribute at ...
2 votes
0 answers
329 views

Multi-select select option value issue Options [closed]

I have some problem with multi-select list in catalog/product/view.phtml I've tried to echo only "selected" values but without result, this code outputs all values no matter what I choose from select-...
  • 21
2 votes
0 answers
562 views

Magento : Backend Model, Save Multiselect Attribute when condition is matched [closed]

I am trying to customize an extension (Customer Groups Catalog 2 = http://www.magentocommerce.com/magento-connect/customer-groups-catalog2.html), It has a multiselect attribute (groupscatalog2_groups)...
1 vote
2 answers
14k views

Magento 2 layered navigation with checkbox with multi select

I would like to implement layered navigation with checkbox instead of links in my Magento 2 project. What would be the best way to achieve this?
  • 185
1 vote
4 answers
10k views

How to get the attribute values for multiselect in magento 2

I want to post this magento 1 code for magento 2 $attributeId = Mage::getResourceModel('eav/entity_attribute')->getIdByCode('catalog_product','makemulti'); $attribute = Mage::getModel('...
  • 11
1 vote
2 answers
2k views

Setting a multiselect attribute using the attribute code

I am trying to create products programmatically. In the task, I need to set the multiselect attribute options. I tried like below, but it is not working. $optionIds[] = $optionId; //$optionIds = ...
  • 2,035
1 vote
1 answer
475 views

Product multiselect attribute not saving all the values

I have custom multiselect product attribute which contains more than 1000 values. I am using "text" for this attribute, still when I select all the values and save product it saves some values but not ...
  • 115
1 vote
3 answers
3k views

How to set selected value in multiselect attribute

How to set selected value in multiselect attribute progmatically. I tried this one but it doesn't work for me. How to Programmatically set a Product's Multi-Select Attribute by Labels the code ...
  • 471
1 vote
2 answers
320 views

Multiple select attribute

Im working on a sports e shop and some shoes belong to specific techs which i would like to be shown as images like this: I thought of creating a multi select attribute named techs and put values ...
  • 13
1 vote
1 answer
6k views

how to find the customer custom attribute select box value table

i install the custom_attribute extension, in that i created a field name like "language" with multi select type, also there have a option to add the select box option values. i add this field into ...
  • 1,627
1 vote
1 answer
703 views

Not saving data when add multiple select attribute in product grid

I have created one custom module with add associated products concept. Created successfully. Its working Good too. But when i add "Multi select attribute" column in product grid with that option ...
  • 855
1 vote
2 answers
606 views

How to change a multiselect field to checkboxes in admin module?

I have an admin module that currently pulls all customer groups into a multiselect box using the following code (I think!): class ...