We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [product-attribute]

Questions about creating, managing and using product attributes

Filter by
Sorted by
Tagged with
1
vote
1answer
19 views

Magento 2: How to display the description and review without tabbing

How can i display the review and description without tabbing like the below image?
0
votes
2answers
29 views

Magento 2 - Get attribute label by id in controller

I am passing attribute id in my controller's URL and I am taking that id as below in my controller, $colorparam =$this->getRequest()->getParams('color'); This returns me the id present in the ...
0
votes
0answers
23 views

Magento 2 Do we need to reindex & cache clean for Product Qty update

I need to update product Qty programmatically, I have my main store where I have my stocks details so I need to update to Magento whenever it's triggered from my Main store or by cron with interval. ...
0
votes
0answers
3 views

Add some product attributes under order transnational email sending to admin

In my store we are sending an email copy to admin along with customer. While customer placing an order. We are using separate email template for admin. In that we need to add one custom attribute in ...
3
votes
0answers
24 views

magento 2: create custom frontend input type

I need a custom frontend input type which I would call "table": The issue at hand is that I have a customer that has a lot of different attribute sets with even more attributes. And he is in a ...
0
votes
2answers
39 views

Class + does not exist

I have this strange error when i try to edit a product or update attributes I am unable to find anyone else who has had this non specific error appreciate any help as work flow is frozen Full error ...
0
votes
0answers
14 views

Update multiselect product attribute for multiple products by adding value to existing value selection

I have a product attribute with multi select with many options. Users wish to use the mass/bulk update on the product grid to add a new option to a set of existing products. However when this is ...
0
votes
0answers
14 views

magento 2 sort using ORDER BY FIELD

Case : i have create attribute name : Populairty attribute details as below , i have set Used for Sorting in Product Listing as yes , value of it can be as 1: yes 2: no 3: very popular i want to ...
0
votes
0answers
21 views

Get visibility of product in product list

Within a product list, I would like to access $product->getVisibility() for each product of the collection. However, this is always null instead of either of the 4 states. I have already added &...
0
votes
0answers
11 views

Do I need to loop all children of the configurable product to know the stock of each product size?

In a shoe store I have the following configuration: For each color we have a configurable product, and in this configurable product we have size variations. We have a size filter ... when a customer ...
1
vote
1answer
24 views

How to add Unit Text in an input field?

I want to Programmatically create Custom Product Attributes in Magento 2.3.3 and I want a Unit/Quantifier in this input field as well like lbs in this example. Its code is <label class="...
0
votes
1answer
24 views

How to add custom class in Product Attribute?

I am trying to add a custom class for some validations and styling purposes in a Programatically created Product Attributes, I have tried frontend_class and class property but it didn't work. Can ...
0
votes
3answers
156 views

Magento 2 sort by Attribute value

I have multi-select attribute name location like : Delhi , Maharashtra, Karnataka. I want to use sort by of filter by in such way when I use above filter / sort it should show all products but ...
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
29 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
27 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
18 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
40 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
54 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
26 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
1answer
34 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
13 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
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
15 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
42 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
13 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
7 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
14 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
21 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
15 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
42 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
19 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
28 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
23 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
15 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
19 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
18 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
35 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
17 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
24 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
29 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
31 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? ...