Questions tagged [product-attribute]

Questions about creating, managing and using product attributes

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

Migrate Products from 1 to another magento site

I have approx 3200 products which needs to be migrated from one magento website to another. All products are having hundreds of attributes and brands which also needs to be migrated. Moreover both the ...
0
votes
0answers
10 views

Magento 2.4.2: How to delete an attribute?

How can an attribute added to Backlit Mirrors attribute set be deleted? None of the answers here in the stackexchange does help.
0
votes
0answers
9 views

HMRC Commodity Codes M2 how/Where

Hi Looking to get the most out of M2 and as usual, Ive looked but cant see the answer. Where do I enter HMRC Commodity codes in M2, I'm currently adding them in the Royal Mail Inventory Systems ...
0
votes
1answer
17 views

Update color visual swatch attribute images Magento 2.4

we need to update only images from existing color attribute options. How to achieve this?
0
votes
1answer
11 views

Strange interaction between module and attribute sets

I faced an unusual problem on one of the live sites. The gift card module adds its "Gift Card by Amasty" option in the "Add product" menu and when the module behaves normally, it ...
0
votes
1answer
23 views

Magento 2: Get product sku by product attribute values

I have custom product attributes color_type, color, and size. I want to get product SKU by using values of these attributes. Any help would be appreciated.
0
votes
1answer
38 views

Magento 2 How to add the custom categories attribute field in product form? [duplicate]

I am trying to add the categories and subcategories in a small panel Exactly like the one in the Product Form in the admin panel. I need to add it in Product Form How to achieve this?
0
votes
1answer
18 views

How to delete empty attribute values in Magento 2

We have an attribute for some of our products that has hundreds of empty values. If you try to make and save any changes to any values, it kicks you back out to the dashboard and the changes are not ...
0
votes
0answers
17 views

Renaming product images once uploaded

I am not a developer! Can we rename uploaded product and category images, or do you have to name them before uploading?
0
votes
1answer
40 views

How to use custom product attribute in sorting option with search criteria builder for magento 2?

I have created one custom product attribute(bestseller). Now I want to sort by custom product attribute(bestseller) using search criteria builder sort by option but it's not working for custom product ...
0
votes
1answer
17 views

How to remove custom attribute value from magento 2 using setup script?

In Magento 2.x, If I have created a custom attribute and then need to remove that attribute and also need to remove that attribute value that is assigned to that entity. How can I do programmatically (...
0
votes
0answers
20 views

Magento2 pass Comma separated value in attribute options while importing products in CSV

Magento2 How to pass 2.6GHz 6-core 9th-generation Intel Core i7 processor, 512GB as a single option while importing CSV Getting following error Column configurable_variations: Invalid option value ...
0
votes
1answer
19 views

How to retrieve value of multi-select custom product attribute?

I created a new drop-down custom product attribute and placed it in an attribute set. and I'm trying to retrieve its value programmatically in Magento 2. The name of said attribute is "...
0
votes
1answer
23 views

Show/Display product attribute in description

Is there any way to pull or display a product attribute within the product's description?? What we're looking for is something the listings team can use to make a generic product description for lots ...
0
votes
3answers
19 views

Magento 2: Get product custom attribute value in custom js

Hi is it possible to get product custom attribute value in JS? I am getting the product id in JS but I am not able to get the product custom attribute value. Any help would be appreciated. Thank you
0
votes
1answer
15 views

Magento 2: Update product attribute from text area to wysiwyg programmatically

I want to update the custom product attribute from textarea to WYSIWYG programmatically. InstallData.php file: $eavSetup->addAttribute( \Magento\Catalog\Model\Product::ENTITY, ...
0
votes
0answers
22 views

How to get category name and count product when selecting manufacturer select attribute in Magento 2?

I have created a new page where I want to get the number of selected products from the same manufacturer in all categories into a list. Does anyone have any idea, how to get this data? Thanks. https://...
0
votes
1answer
26 views

How to change product attribute's scope in Magento 2

My issue is simple : We have a bunch of product attributes with wrong scopes They are defined as Global and we want their scope should be Website. How to handle this programmatically? For example ...
0
votes
1answer
19 views

Attribute value not showing properly in admin form

I have created a custom 'Forme' product attribute select type based on option value class FormeOptions extends AbstractSource { /** * Get all options * * @return array */ ...
0
votes
1answer
14 views

HOW TO GET PRODUCT ATTRIBUTE AND AVAILABILITY?

I want to get the Product attribute using Object manager and check the availability of the product if its RTS I have to assign that product to a category id.
0
votes
0answers
11 views

Magento 2 Grouped product with additional relationship details

I'm developing a site that will sell automotive parts. We have a database with the parts (mapped to simple products) and their relationships with part groups (mapped to the grouped product in Magento)....
0
votes
0answers
14 views

Magento 2 - Adding Attributes on Attributes?

Anyone know if its possible to add a column here like a dropdown for us to basically group these swatches (Attribute to be used for something else later on).
0
votes
1answer
27 views

Magento 2.3 - How to hide empty attribute and it's label if there is no data

Could someone help me i want to hide the attribute if its have empty vale on product details page. Example <?php // START FABRIC ATTRIBUTE $attributeName = $_product->getResource()->...
0
votes
3answers
40 views

Is possible to change the ID of an attribute?

I have these attributes: id 199 = size id 200 = color id 210 = number id 220 = measure Those are used to create configurable items in the product view. Color is showing above number and measure, ...
2
votes
4answers
94 views

Product attribute update que stock

I was trying to do a mass update to add products to a specific store view in a Magento enterprise cloud 2.3.4 website. However, now I am just getting the below message on the top of all admin panel ...
0
votes
1answer
28 views

Get attribute from using dropdown yes no

I have created a dropdown attribute with the options of "yes" and "no" with the hope to show an element with yes is selected in the admin. I have a few of these dropdown attributes ...
0
votes
0answers
20 views

How to get the attribute options on category page header as list in magento 2

I want to show all available options of attribute size in Magento 2 as a list on the category page. This will show only the available product size, which has stock like Magento 2 layered navigation. ...
0
votes
0answers
7 views

Magento 2 : Reorder Attributes in Mass Update Attributes

I want to sort attributes in mass update attributes like the image below: I want to add manufacturer, cost and color beneath special price field. The attributes are rendered from getAttributes() ...
0
votes
0answers
9 views

Magento 2: Sorting mass update product attributes

Is there a way to sort mass update product attributes alphabetically?
0
votes
0answers
14 views

How to add product attribute with dropdown type having prefix color and suffix stock status?

I want to create a product attribute like the below image: Please help me to achieve this.
0
votes
1answer
33 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 ...
0
votes
1answer
31 views

magento 2 Unable To get Product Attribute

I am trying to fetch product attribute on cart page but it is giving me a null value below is my code path:-V\M\Plugin; class GetAllRates{ protected $_logger; protected $cart; private $...
0
votes
0answers
12 views

I can't associate simple products to configurable ones if they have 0 quantity

I use the following code to associate (I call it from a loop) simple products to a configurable one. it works fine except if the id of the product correspont to a product with 0 quantities, in which ...
0
votes
0answers
18 views

Add layered Navigation filter as In stock availability magento2.4

I want to add "Stock availability" as layered navigation filter. but I can't find this attribute in attribute set.
0
votes
0answers
6 views

Magento 2 - can the url_key product attribute be safely excluded from Search?

I recently did an analysis for a client on a Magento 2.3.5-p2 instance regarding some products being shown in Search results which didn't have the searched keywords in their sku, name and ...
0
votes
1answer
83 views

Can we update auto Product Attribute On Base of Stock Status In Admin Product Magento 2.4?

I want to update automatically Product Attribute on Base of Stock status in Product, I have created few attributes with Yes/NO. Now I want when the product will become out of stock that attribute will ...
0
votes
1answer
22 views

Add Calculated Column in Admin Product List

currently i can't find an answer and hope someone can guide and help me to solve my problem. In the shop i support the qty of a product are packages of items. We have added a field to the product in ...
0
votes
1answer
109 views

Add Custom Attribute Text In PDF Invoice after Product Name in Magento 2.4.0

How to i can add attribute text in pdf invoice after product name in Magento 2.4.0 ? I am writing this code but not effecting. $id = $item->getProductid(); $objectManager = \Magento\Framework\App\...
0
votes
0answers
22 views

Magento2 - How to add custom product attribute of type is Only Year field?

Greeting of the day! As per our requirement wise, I need Custom Product attribute and their type is the only YEAR field, so that how can I create the date year attribute only allow to select the year, ...
1
vote
1answer
24 views

Increase the attribute length

I have a custom attribute that is multi-select for a product along with 200 options. When I tried to assign all the options. What I found is that there is the limit of 255 is it possible to increase ...
0
votes
1answer
46 views

Magento2: How to show multiselect product attribute lable on product detail page

I am using magento2.3.x I have created a dropdown attribute(product attribute) from admin. now I have showing this attribute on product page using below code:- file path:- app/design/frontend/Vendor/...
0
votes
0answers
14 views

how to get attribute product when order and save to table in database

I have add new custom attribute for product. I want get custom attribute of product when order and save to new column in sales_order_item.
0
votes
1answer
36 views

How to move Admin Product Edit form "images and videos" section into under "general" section?

I would like to move the Images and Videos section under the General section. I have tried with uiComponent and Modifier Pool. These Both methods are Magento's default method for modification product ...
0
votes
0answers
21 views

Add column attribute in product in category grid

I want to add a column of a newly created boolean attribute, but it doesn't work, I have read blogs where they give the same advice but it hasn't worked I have followed the following steps: Create ...
4
votes
1answer
54 views

Magento 2 - Search result not working properly on dropdown attribue

I have a dropdown attribute brand Use in Search is set to "Yes" Search Weight is set to 10, tried with 7 as well In configuration Search Engine is set to MySql There are more than 100 ...
0
votes
0answers
10 views

Unable to edit product attribute price

I have added a custom button (Custom Price) to Edit Product page, which fills price input field with a new value, received by Ajax call. Input field receives a new value, but after I click "Save&...
0
votes
1answer
183 views

Magento 2. Can we display custom attributes on product page after SKU?

I created custom product attribute - Manufactures SKU. Want to display in product page after SKU.
0
votes
1answer
40 views

How to GetData of attribute value in child

I am trying to get attribute value "barcode" for child product in magento2. Below code working for cofigurable parent product. $_product = $this->getProduct(); $_barcattr = $_product->...
0
votes
0answers
18 views

Magento2: How to create global configuration of a custom product attribute?

I am using Magento 2.3.1. I have created a custom product attribute using data patch, attributed created successfully and I am able to save value in this. Now I want to create global option for this ...
2
votes
2answers
108 views

Magento 2 : How to bulk update product atributes?

I am trying to update bulk product attributes where i need to update attribute to "allow in search". Any way to achieve it ?

1
2 3 4 5
36