Questions tagged [product-attribute]

Questions about creating, managing and using product attributes

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

Magento 2 Rest API - how do I add values to dropdown product attribute

I have problems in adding values to an existing product attribute, using the API POST /products/attributes/:attribute_id/options. The corresponding GET API is working fine, as explained below. I have ...
0
votes
0answers
14 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
1answer
903 views

Magento2: Get product date in Knockout Js

How to get special delivery end date in ko js I have implemented KO templated with Js How can I get Value of Product Special delivery date in JS for countdown <referenceContainer name="content"&...
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, ...
1
vote
2answers
2k views

When i post a URL to Facebook I get html code showing in the post

When I post a link to Facebook I get the HTML code of the title showing in the post. As per this screenshot : http://prntscr.com/e858be Can anyone advise why and if there is a way to stop this from ...
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->...
5
votes
2answers
2k views

Create custom “Catalog Input Type for Store Owner” for magento 2

I need to create a special input type in adminhtml product form. My input will display as a table but save data as a standard text input. Following the module Edge ProductAttachments I've created the ...
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 ...
7
votes
6answers
21k views

Magento 2: Delete magento product attributes?

How do you delete created product attributes in Magento 2? I can't get rid of it. I have couple of Magento product attributes which not needed
1
vote
5answers
13k views

Magento 2 - Create product attribute programmatically

I have create product attribute of type select select with below configurations: $setup->addAttribute(\Magento\Catalog\Model\Product::ENTITY, 'attribute_code', [ 'attribute_model' =>...
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 ...
20
votes
5answers
41k views

How do I get the current product?

I'm trying to retrieve the current product's attributes in a block in Magento 2. I can get a product, like ID 1: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $...
12
votes
5answers
10k views

How to show the drop down attribute value using getData() method in magento 2?

When I try to get data from the material attribute like $_product->getData('material'), it shows the integer value. How can I convert it to the actual front-end value and in which file do I have to ...
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
2answers
76 views

Magento 2 - Field “Tax Class” not showing

I have the problem that for a custom new product type there are no taxes getting calculated and are always 0. I found a solution here. It says there is a dropdown in the product details called Tax ...
1
vote
1answer
707 views

Magento 2: 'Tax Class' is not showing in products from admin panel

After migrating data from Magento 1 to Magento 2, i can not see 'Tax Class' attribute from admin panel while editing a product. 'Stock Status' attribute is also missing. But when i create new product, ...
0
votes
1answer
1k views

Multi Select Product Attribute - Magento2.1.2

I have created Multi Select Attribute in my custom module. UpgradeSchema.php <?php namespace Vendor\Module\Setup; use Magento\Eav\Setup\EavSetupFactory; use Magento\Framework\Setup\...
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, &...
0
votes
0answers
53 views

how to migrate Bigcommerce store in Magento2

I want to migrate Bigcommerce store to Magento2 I have check online with Litextension and carttocart extension but it's not giving 100% accurated data migrated... If anyone have tried before, or any ...
-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 ...
1
vote
1answer
860 views

Add store view column to Attribute Grid in admin panel

to list the attribute of a specific store view, I added below code to .../Attribute/Grid.php to _prepareColumns function, but did not work. if (!Mage::app()->isSingleStoreMode()) { $...
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
30 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 ...
1
vote
2answers
974 views

Update custom attribute value for all products - Magento1.9

I have a Magento store with products count 70,000 approx. I want to update 5 custom attribute's value for all products. I have a CSV file which contains SKU and value of custom attributes for all ...
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
1
vote
3answers
3k views

Magento2 : Change custom attribute scope not working

I create a product custom attribute programatically. The scope was WEBSITE. But now I just realised that this attribute must have the scope as STORE, because I need different values according to the ...
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
832 views

How to display the custom attribute on product page in Magento 1.9.2

I am working rwd theme customization> I am trying to add a new custom tab under the product info parent tab- My layout.xml block code is : <block type="catalog/product_view_description" name="...
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 ...
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
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
1answer
1k views

How to add attribute filter in product listing page in magento 1.9?

How to add attribute filter.For eg, When city attribute not set in any product then this product are showing after filter of city. Here is my Product Collection List.php block file public function ...
3
votes
1answer
1k views

Magento 2 How to add an attribute like tier price to adminhtml product details editing page?

The tier price attribute is special, it contains a grid of labels, textfields and buttons. I've checked many block files and template files. But I can't locate the related codes. How can I add an ...
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 ...
0
votes
2answers
1k views

Magento Get Attribute values Collection by filter

I am using Magento 1.9.3.6 version. I have an attribute called brand. I want to get brand attribute's values collection by filter in order to show it in input text box as autocomplete suggestions. I ...
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 ...
0
votes
2answers
1k views

Dislpay custom attribute in Product view page - in Product description template

I am working on magento 1.9.2 RWD theme and I am trying to display the product additional info via custom attribute. I have created the attribute - Admin Default Store View faq FAQ ...
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=&...
20
votes
2answers
78k views

Magento 2 : Get Custom Attribute Value of Product [duplicate]

I'm trying to get custom attribut from my product. I tried various methods like below, but non of them worked. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); /** @...
1
vote
1answer
1k views

Add attribute programmatically

It code from */*/sql/*_setup/install-1.0.0.php $installer = $this; $setup = new Mage_Eav_Model_Entity_Setup('core_setup'); $installer->startSetup(); $setup->addAttribute('catalog_product', '...
2
votes
2answers
3k views

Elastic search illegal_argument_exception error “Text fields are not optimised” but it's NOT A TEXT FIELD

I upgraded to 2.4.1 and elasticsearch, which I did not use before. In my log I find the following error "type":"search_phase_execution_exception","reason":"all ...
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 ...

1
2 3 4 5
36