Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [product-attribute]

Questions about creating, managing and using product attributes

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Category not being updates for products

I currently have a cronjob plugin running in the background of my magento 2 installation which imports products from an XML file to the db. The code checks if the product exists, and if it does it ...
0
votes
1answer
27 views

size attribute showing limited items but category products have more than that in magento 2

Size attribute showing limited items in filter navigation but category products have more than that in Magento 2. Please see the following images for more details. Anyone know how to solve it ? ...
0
votes
0answers
23 views

What is the use of Communication.xml in Magento 2 Catalog module

What is the use of following vendor\magento\module-catalog\etc\communication.xml file located in the catalog module in Magento 2? <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
17 views

Get product configurable attribute with value (Child of configurable) from QuoteFactory

How can I retrieve simple product configurable attribute with its value from \Magento\Quote\Model\QuoteFactory (or any other method?)? I can retrieve some information using this: public ...
0
votes
1answer
38 views

Magento2: Default value is not working of Date type product attribute?

I have created product attribute from admin and set input type "Date" and assigned "default date value" but default value is not showing when adding product and frontend also. Please check below ...
0
votes
4answers
43 views

How to filter product by specific attribute in Magento 2?

I want to filter a collection of products by product (brand) attribute, thanks
0
votes
0answers
15 views

Magento 2.3.2 - Update product attribute option api duplicate option value

I'm trying to add and update product attribute options through the api endpoint: /V1/products/attributes/:attributeCode/options. When I try to update the values of an existing attribute option, the ...
0
votes
2answers
22 views

How do I get a EAV Attribute Option Label from Option Id?

I have a custom eav attribute on a product that is a of type dropdown. When the product is saved, the attribute is saved as the optionId. How do I get its label to be able to display it properly on ...
0
votes
1answer
10 views

Missing product dimensions

I recently upgraded to Magento 2.3.3 from 2.3.2. And I noticed that the product dimensions no longer appear in the product admin page. Even though the default set attribute still has them set. Does ...
1
vote
0answers
12 views

How to get all attributes of a product which Start with 'wdb_' in Magento 2?

I want to get all attributes of a product which start with "wdb_" in custom tab. For this, I am getting each attribute manually. For example: wdb_carat, wdb_info, wdb_clarity etc... My Code is: ...
0
votes
0answers
24 views

Image attribute not showing in admin in Magento 2.3.2 [closed]

I have did performed the following stuffs: Create an image attribute https://prnt.sc/pjenpv Assign attribute to attribute set https://prnt.sc/pjeofo Reindexing and Flush cache Result: attribute ...
0
votes
0answers
16 views

Creating an attribute programatically, but is never visible on front

I'm creating a new attribute via install, this is the code: $installer = $this; $installer->startSetup(); // Add new Attribute group $groupName = 'Atributos'; $entityTypeId = $...
0
votes
0answers
13 views

Filtering category products showing wrong count in layer navigation in Magento 2

I have used below code in, app/design/frontend/Custom/Theme/Magento_Catalog/templates/product/list.phtml <?php $_productCollection = $block->getLoadedProductCollection(); $_helper = $...
0
votes
0answers
25 views

Filter category product collection in list page with multi-select attribute Magento2

I need to override the method where the category product collection is fetching in list page. I have created a product attribute, which is multi-select attribute, the attribute values for individual ...
0
votes
2answers
37 views

Change the product tab position in magento 2.2.9

I am trying to swap two tabs around, Product Details and Specification. I want Specification tab to show up first and then Product Details tab. I already did some research on stackExchange and add ...
0
votes
0answers
12 views

Color attribute not saving colors?

Magento 2.2.3 I created a visual color attribute but when I try adding a color to the values, it wont save it, see https://prnt.sc/phtj7z for reference. I remember there was some PHP setting that has ...
0
votes
0answers
6 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
0answers
13 views

How to get product_has_weight field value in frontend with product object?

How can i get below product attribute value in frontend ?
0
votes
0answers
20 views

Sorting products based on a custom attribute Magento2

I have a plugin that adds some custom product sorting, based on a customer attribute, in a way similar to below. # Vendor\ModuleName\Plugin\Product\ProductList\Toolbar; case 'capacity_low_to_high': ...
0
votes
0answers
19 views

Magento 2 : Add custom data in product attribute using plugins

I want to add custom data of product attribute using plugin. Path : stores -> product -> edit attribute and save record. Class : Magento\Catalog\Controller\Adminhtml\Product\Attribute\Save I ...
0
votes
2answers
20 views

How to update product name for main website and all store

I am updating the product name and it only affects the En store view I want to update product name for all store views and main website as well. see the sample code below $sku = 'E20630'; $...
0
votes
0answers
13 views

Magento2 : Product attribute label translated into wrong language

I am currently experiencing a weird issue, where Magento the product attribute translated into a wrong language. I am running a Magento with more than 10 websites and each website has 1 or 2 store ...
0
votes
2answers
39 views

Magento 2 Get custom attribute values in phtml

I want to populate attribute(Gender) values in select dropdown on listing page. On selecting specific value of the gender attribute, the product list should be filtered. The gender attribute has 3 ...
1
vote
0answers
17 views

Magento 2.2.9 - Problem with one product attribute

I have one problem when i want to Save some changes in product page in Admin Page (Catalog->Inventory->Products->One of the products, configurable or simple). One of the attributes, in ...
0
votes
1answer
22 views

Magento2.3.0 In which file attribute sort order set for layer navigation left side on product list page?

I am using Magneto2.3.0 in which the file attribute sort order set for layered navigation, left side on product list page/category page ? If any one idea how it is working in Magento default please ...
0
votes
1answer
21 views

Magento2 set a price to configurable products depends on attribute

I have created a configurable products on my magento2 website. Now I have to set the price for associated products. I know how to set the price for single single attribute value but I need to set the ...
0
votes
0answers
14 views

Make custom attribute depend on another custom attribute's value

I have 2 custom attributes, private_item and item_key. The first one is a dropdown with Yes or No values. The latter is a text field. I would like item_key to be visible depending on private_item's ...
0
votes
0answers
17 views

Display product brand in catalog grid list

I need to show the product brand in the frontend general catalog grid list. Actually it's displaying the product image above and below it the product name and price. I found the file I need to edit ...
1
vote
0answers
14 views

Magento 2 get hidden image programmatically

I have a custom module for exporting links of my product images. With this code: public function getImageAttributes() { $attributes = [ 'thumbnail' => 'Thumbnail', ...
0
votes
1answer
19 views

How to create a main_category attribute for a product?

I want to create a second category assignment for my products which is limited to one category. The select should be similar to the default category assignment. What I want is setting a main-category ...
0
votes
1answer
29 views

Display Configurable Product from Simple/Virtual Product : Magento 2

Here, I'm Display Custom Product Collection Filter By Type => 'virtual' I need Configurable Product With Selection of Attribute On Click Of That relavant Configurable Product Is Open With Selection of ...
0
votes
0answers
18 views

Custom products section / custom content type

I'm currently building a site for car parts, and the product structure is quite difficult, but i'm new to magento so I don't really know how to approach it, so any sort of advice would be appreciated. ...
0
votes
0answers
15 views

The “formElement” configuration parameter is required for the “product_type” field. Error

I wrongly created on attribute for customer. My code is below. <?php /** * Upgrade script * * @category Redstage * @package Redstage_Customer * @author Deepak Kumar <dkumar@Redstage....
0
votes
1answer
21 views

Class adminhtml/catalog_product_helper_form_msrp_enabled does not exist error when mass updating product attributess

I am running Magento 2.2.2 and whenever I try to mass update product attributes, it gives me a whitescreen right after trying trying to get to the mass update screen from the product grid. I checked ...
0
votes
1answer
20 views

Magento 1.9.X: how to create custom order attribute?

How can I create new order attribut using install script? All my attempts failed and I don't know how to do this. No one custom order attribute doesn't added to eav_attribute teble. Help me pls)
0
votes
0answers
26 views

Custom product attribute default value not working?

I have installed the https://github.com/Magenerds/BasePrice in my store and assigned the attributes that come with the extension some default values. Now I imported products from another Magento ...
1
vote
1answer
35 views

Magento 2: Change the product title structure

I want to change product title like below: Brand attribute value + attribute set name + guarantee = product title How should i do it?
0
votes
1answer
28 views

Create product attribute type is file in magento 2

How to create a product attribute in file type in Magento 2 our requirement is a particular product-wise Pdf upload in Magento 2 and shows a product view page in Magento 2. So How can I sort it? ...
0
votes
0answers
10 views

Prevent Product Attributes showing in “additional information” tab Magento 2

I have some product attributes that I want to use to display information in the theme but do not want them to show up in the additional information tab. Does anyone know how this can be achieved, I ...
0
votes
2answers
175 views

“Use Default Value” Not Save After Migration Magento 2.3.2

"Use Default Value" gets unchecked, when product data is saved "Use default value" being ignored for certain fields in multiple store mode MAGENTO 2 “USE DEFAULT VALUE” STORE VIEW SCOPE FIX Check ...
1
vote
0answers
16 views

Magento 2: Add category dropdown attribute to product

Is it at all possible to add a category dropdown attribute to a product? I need to somehow select a primary category when adding/editing products. I've seen suggestions to paste in the category's ID, ...
0
votes
1answer
24 views

Magento 2.X: Remove an attribute from product page tabs

I have an attribute named warranty. I want to show it on top of the page (it is ok and done), but don't need to show it on the description table on product page with other attributes. what should I do?...
0
votes
0answers
19 views

Salable Quantity display on Product page in magento 2.3.1

I am having 2 problems with Salable Quantity on magento2.3.1 version 1. Want to show Salable Quantity default stock on the product pages 2. The site is displaying those products which have Salable ...
1
vote
1answer
38 views

Magento2: How can enable all input type of product attribute after attribute save?

I want to update product attribute input type from dropdown to multiselect but only there are three option available (dropdown, text swatch and visual swatch). I have searched for that and found ...
0
votes
1answer
49 views

get product attribute in form magento 2

I have a custom form like this. how can I get all product attribute and Pour it into the select option in the job field. Hope anyone help me. Thank you.
0
votes
1answer
51 views

Get product attribute in ui component form magento 2

How do I get all product attribute in select option in the custom form in Magento 2. Do you have any idea.
0
votes
1answer
29 views

Magento 2: Need to override loadAttributeOptions()

I need to override this function loadAttributeOptions() in my custom module. File - /var/www/html/dg/vendor/magento/module-sales-rule/Model/Rule/Condition/Product/Subselect.php
0
votes
0answers
34 views

Magento 2 - Get color attribute based on its size attribute of product

I am trying to get the color attribute based on the size attribute. public function getSize($product) { $_attributes = $this->getAllowAttributes(); $result = array(); foreach ($...
0
votes
1answer
27 views

I m very new to magento. Can you please tell me? How can i delete configurable product attributes that i have marked in image

[![enter image description here][1]][1]I am using Magento 2.3.2. I want to delete those two attributes that I have marked. I googled it but did not find any solution. https://i.stack.imgur.com/mJULS....
0
votes
0answers
11 views

Changing order of color attributes for admins

Trying to change the order of our list of colors (attributes > product > color) for easier admin management. I've seen a few SQL solutions, but wondered if anyone had used JS, or something similar to ...