Questions tagged [product-attribute]

Questions about creating, managing and using product attributes

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

Magento2 Product doesn't return extention attributes

Today I have encountered an error when getting product detail as describing here. Everything work fine except extension_attributes return empty despite it has data. I don't have any idea about how it ...
0
votes
0answers
11 views

Magento 2 Product Super Attributes

can someone give me a good documentation or resource on where can i understand how product super attributes works? its the catalog_product_super_attribute table. Thanks
0
votes
0answers
10 views

Filter Category Options are differente when I change from one page to another?

I am facing something weird in one project that I don't know if is normal (I hadn't seen this behavior in another project). The customer reports to me that when you enter to Category first page, ...
0
votes
0answers
13 views

How to make textarea product attribute value to use default value for specific store?

I'm using magento 2.4.1 and I tried to set the product textarea attribute to use default value like this for specific store id: $insertAttData['textarea_attribute'] = NULL; $this->productAction->...
0
votes
0answers
18 views

manual migration of magento 2 products, done incorrectly

I'm on a project that made the migration from magento 1 to magento 2, and a manual migration of products from magento 1 to magento 2 was made, but after registering many products we realized that they ...
0
votes
2answers
36 views

Max length as input validation for product name attribute

I want that the maximum of character of product name attribute is 50 character per example in the back office. I can not find that on default input validation on product name attribute managing. Help ...
0
votes
0answers
13 views

Magento 2.3.5: Link product page attribute to category page

How can I link (href) a product page attribute to it's category page? For example: I have a visible attribute on the product page called "Artist" and the product is in 3 categories "...
0
votes
1answer
21 views

Product attribute create/update using rest api and assign it to attribute set

I am creating product attributes using rest API with the below request body. End point rest/V1/products/attributes/ { "attribute": { "is_wysiwyg_enabled": false, &...
-1
votes
1answer
40 views

Adding custom customer attribute with declarative schema and db_schema

I added a custom attribute in de customer_entity table with db_schema.xml. I can get the value of that attribute with getdata('debtor_id') but I can't set it with setData('debtor_id' ,2). Did I miss a ...
0
votes
2answers
35 views

Magento 2.4.2 How to add Key Features to the product detail page

I need to add Key Features to the product detail page.The function should be a new attribute, but I don't know how to add it. Do you have a simple and quick way. Key Features can be replaced with any ...
0
votes
1answer
19 views

Magento 2: Alternative solution to large number of values inside 1 attribute

We have Product Attribute called "Authors" with "Multiselect option". It has entries up to 51k. When we edit product page in backend it becomes very slow to load page and specially ...
0
votes
1answer
28 views

Magento 2.3.2: Product meta title and meta description is not updating at all after product edit

I am facing issue with product meta title and meta description, I am trying to update product meta title and meta description manually (from product edit page) but the values of meta title and meta ...
0
votes
0answers
8 views

Saving Product Attribute First Time Erases Store Labels, Second Time Saves the New Addition

We have the loop below, which is supposed to update the store labels and options and then save the product attribute. The first time the attribute repository saves the attribute, it completely wipes ...
0
votes
0answers
17 views

Magento 2 - Get Swatch Options from Product Attribute Source Model

we are trying to create swatch visual and text product attribute programmatically, we need to give swatch Options Like Source Model. \Magento\Catalog\Model\Product::ENTITY, ...
0
votes
0answers
21 views

Magento2 Graphql get select attribute options label instead of option id

I am using v2.4 in which in the products query I am getting the Optionid of select attribute instead of attribute option label. Like if i try to get color(select type) then I get value of red instead ...
0
votes
0answers
14 views

Show product attribute by modifier

guys. I'm working with product attribute. I have a multi-select attribute, but I wanna add search option for it. I use Modifier, this is my code: public function modifyData(array $data) { return $...
0
votes
0answers
11 views

Omnichannel magento solution api requests int

the company i work for is having difficulty linking a new Epos system to our new Magento 2 website. Our previous Magento 1 website was connected to a legacy Epos system and for most of the time it ...
0
votes
0answers
13 views

Magento 2 Attribute Sets and Attributes optimization

In terms of optimization and speed improvement, is it better to use: many Attribute Sets with few Attributes. few Attribute Sets with many Attributes
0
votes
0answers
38 views

Customise UI component Dynamic Row layout

Hopefully this is simple, but I'm struggling to figure this out. I have a custom product attribute that stores serialized data in a text field. It's exported from an old site with 10k SKUs each using ...
0
votes
1answer
25 views

Magento 2 attribute search product results

I have a multi-select attribute with n number of options. I have assigned some options for the products. For example, I have an attribute color and have options like blue, red, green, and yellow ...
0
votes
0answers
36 views

Add filter Options in existing product attribute

I want to add filter option on product attribute which is a dropdown. but I am not able to add this functionality on current attribute. Below are the code which I used for above select with search ...
1
vote
1answer
25 views

Product attribute creation error in admin catalog product

I have UpgradeData.php script that will install the attributes which I need, if (version_compare($context->getVersion(), '1.4.6', '<')) { $groupName = 'Data ...
0
votes
1answer
19 views

Why wont the product description attribute, when set to TextArea, convert line breaks to <br>

Magento v2.4.2 My product description attribute was set to TextArea, and its worked fine for the last year. New lines where rendered as in HTML on the product page. I decided to change it to ...
1
vote
1answer
28 views

Move Product Attribiutes from More information Tab to details tab

I would like to move all product attributes from selected product to details tab. I try to do something like this: <move element="product.attribute" destination="content" after=&...
0
votes
0answers
19 views

Magento2 - Attribute taking 0 as default value

I have a strange issue and not sure what is wrong, I have identical attributes (see image below), but the strange part is when I keep Metal 02 Weight blank and save the product its taking 0 value ...
0
votes
1answer
21 views

Add attributes to bundle-product options

How can I display custom product attributes for bundled products options? Products that are used as bundle-option are not fully loaded, so i cant access all/custom attributes. (Right?) E.g. I'd like ...
0
votes
1answer
17 views

Removing attributes from New Cart Price Rule - Actions tab

At New Cart Price Rule -> Action Tab. There is a green plus mark, where I can choose Conditions. The problem is, that I see there all added attributes to Magento but I need only few. Is there a way ...
0
votes
1answer
11 views

possible to write product custom attributes into session?

I have a product custom attribute, want to write in session when then product detail page was load. So I can get use the session value on the other block on the same page. Anyone can give me an advise?...
0
votes
3answers
36 views

Not able to get product image

How to get product image in "default.phtml" file ? Magento2/vendor/magento/module-sales/view/frontend/templates/email/items/shipment/default.phtml I am getting the shipped product object in ...
0
votes
2answers
39 views

Product Attribute always returns null

my products has a custom attribute named producing_days and im pretty sure that it has a value in catalog_product_entity_varchar now im trying to access producing_days from quote item /* $item is a ...
0
votes
0answers
22 views

Product grid - sorting by custom field - not treating as integer

I have a Magento 2.4.1 site where I've added a custom attribute to store a discount percentage. I want to sort a category by this value. However, in the grid list view (based off the Luma theme), it ...
0
votes
1answer
58 views

Display attribute value as a Product Tab label in Magento 2

I added a new product Tab which displays the custom attribute value. app/code/Vendor/Module/view/frontend/layout/catalog_product_view.xml <referenceBlock name="product.info.details"> ...
0
votes
0answers
10 views

Get Stock Data for Individual Products - No Admin

Is it possible to check if an individual product is in_stock OR even the actual stock quantity without being the admin? The GET Request http://magentohost/api/rest/products/:id obviously returns ...
1
vote
1answer
21 views

Magento 2.3.5: Attribute value is changing automatically after every hour

I have created a custom attribute with Yes/No values in Magento 2.3.5. Its value is changing automatically after every hour from Yes to No. I can't figure out what is changing its value. Can any know ...
0
votes
1answer
19 views

In Current variation product weight not showing

I have added weight to the product but weight is not displaying in grid section
0
votes
1answer
27 views

Adding a productAttribute handler in Magento 2.4

I'd like my Magento 2.4 module to be able to modify the output of one of the product attributes programatically. I see that the ability to create a handler for this purpose was added in Magento 2.3.4, ...
0
votes
0answers
6 views

How to get specific value from attribute over the all

Image(1).This is my code to get attribute values. Image(2).It shows the values from particular attribute like color,it showing all the color's inside the color attribute. Image(3). I need to get these ...
1
vote
1answer
19 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 ...
0
votes
0answers
17 views

Unable to edit/add product attribute in admin in magento 2.4.1

Kindly help if anybody have any idea
0
votes
0answers
21 views

Help I can't see the reviews comments

Can someone help me, in version 2.3.5 of magento I can't see the reviews, and also put it in a tabs
0
votes
3answers
55 views

Show product attribute on product page magento 2.4

i need to show an attribute to product page under the name of the product. The attribute is text and the code is plustile I try to load it to a shopbybrand extension that has a block in the wanted ...
0
votes
1answer
23 views

M2 - How to get attribute on Product Page showing above title

I am using custom theme inherit from blank theme, i want to display my attribute on product page above title, how to do that?
0
votes
0answers
8 views

Magento 2: Load product data-block (via webservice) on product page

We use Magento 2.3. We should be able to load a data block (containing a message related to the speed of delivery) on the product page. The message should be loaded real time as it depends on the ...
0
votes
0answers
13 views

Add a new dropdown attribute to product and display on product and check out pages

I want to add a new product attribute like sku or color option . The attribute is drop down. This i can do through admin side with out issues. But how can i display the value of the attribute in ...
0
votes
0answers
12 views

Where I get the code file of default products and attributes in magento 2 directory?

I want to Change Stock status Value Manually in Atrributes in admin in Magento 2 because I want to add one more attribute manually for stock status
0
votes
0answers
19 views

How to Change Page Title for Product Page

I'd like to add a product's designer as part of the title on the product page. I tried changing app/design/frontend///Magento_Theme/templates/html/title.phtml and added a sample designer name under it,...
0
votes
0answers
37 views

Magento2 - How to update the value of an option of a product attribute programmatically?

I'm using the REST api and believe that we can't update the value of an option of a product attribute: we only have the POST method and no PUT. So, what would be the best way to do it in code? In fact,...
0
votes
1answer
17 views

Magento 2: Get price for every attribute

I want to get price per attribute (this price will change when I change color or other attributes). Here is the method that shows the estheics swatch: protected function extractNecessarySwatchData(...
0
votes
0answers
36 views

How to add custom tab like “Up-Sell Products” in product edit in Magento 2.4.1

I want to create custom tab like "Up-Sell Products"
0
votes
1answer
84 views

Recently viewed products are empty in custom layout template in Magento2

I am loading a new template for product detail page based on the product attribute value. I have used the following code Vendor/Module/etc/events.xml <?xml version="1.0"?> <config ...

1
2 3 4 5
36