Questions tagged [product-attribute]

Questions about creating, managing and using product attributes

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

Magento2 ElasticSearch product attribute weight based on value

If there is a way to set product attribute weight depending on it's value? F.e. we have 2 attributes to search: name(weight=10) and description(weight=1) So in search results we'll have first results ...
Alexey Uvarov's user avatar
0 votes
1 answer
28 views

disable a cash on delivery payment method on the checkout for specific products

I want to disable a cash on delivery payment method on the checkout for specific products I followed the code in this question Disable Payment Method at Checkout in Magento 2 Based on Product ...
Ibrahim's user avatar
0 votes
0 answers
11 views

Product variant URL with attribute and value IDs: doesn't switch image to selected one

In magento 2 is possible to call a specific product variant just appending to the "normal" URL: #Attribute_ID=Value_ID I've read in various posts that this functionality should also involve ...
user113280's user avatar
0 votes
0 answers
22 views

How to fix Attribute model is not defined error

When we search from the search box on the top of the header of the website at that time displayed error like 1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): The ...
kiran's user avatar
  • 527
1 vote
1 answer
28 views

Use widget to add dynamic text inside the short description tab based on text attribut of product?

I'm looking to have dynamic text that changes based on the store view and the product for seo reason. Below i've used a simple exemple of a dynamic country name : 1 - On the attribut configuration ...
Marcwales's user avatar
1 vote
3 answers
90 views

How to create and save a product with global scope set to use default values programmatically in Magento 2.4.6

I am trying to create and update products in the global scope while making sure any attributes are set to "use default" values set in global scope. The script is triggered by CRON so there ...
Baz's user avatar
  • 161
0 votes
3 answers
33 views

Get attribute text field on front-end product page?

I'm looking to retrieve the value of an attribut with the ID "size_clamp" and show it on the short and long description of my product. I have tried to add the following code directly in the ...
Marcwales's user avatar
0 votes
1 answer
42 views

How to update product attribute via Magento 2 API

I'm writing a Magento 2 client library in nodeJS and I've created some product attributes via this POST API /rest/V1/products/attributes which worked fine but I want to add update method as well, for ...
Asad ullah's user avatar
1 vote
1 answer
27 views

Magento 2 Update Attribute Options Data Programatically

I have created the 2 attributes in the Admin 1. Color 2. Material. I'm going to add the attribute options with swatch image programatically. For this I have created the custom code. Import Color: ...
m2dev's user avatar
  • 63
0 votes
2 answers
71 views

How to create product visual swatch attribute programmatically with images in 2.4.6

I want to create custom products visual swatch attribute with custom images . Please let me know if anyone have any example. Thanks !!
Mukesh Prajapati's user avatar
0 votes
0 answers
26 views

Magento 2.4.4 p4 save attribute brand logo error show A technical problem with the server created an error

Magento 2.4.4 p4 add brand option logo edit attribute page error show -> A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, ...
arun's user avatar
  • 3
0 votes
1 answer
32 views

Create new Attribute Type

I want to create a new Attribute Type (Complex Attribute) Having input type consist of dynamic rows.
Abdul Rafay's user avatar
2 votes
1 answer
65 views

Add price with carton and price without carton

I have products such as gaming tables and chairs. I want to add two prices to them: a price with carton and a price without carton. How can I do that?
mdm95's user avatar
  • 23
0 votes
0 answers
72 views

Magento 2 : How to create a graphql api for fetch the best seller product collection with arguments search and filter like in the product graphql?

I am trying to fetch Best seller product collections using graphql like the one below. bestSellers ( pageSize: Int = 20 @doc(description: "The maximum number of results to return at once. ...
sHIFT's user avatar
  • 1
0 votes
0 answers
18 views

additional attributes are collected in one colomn,separated only with comma, i want split into separate columns into multiple columns

in magenro 2 All additional attributes are collected in one colomn, separated only with comma. Here is also "cost" placedi want to Extend the standard Entity Type 'Products', so '...
admin's user avatar
  • 1
0 votes
0 answers
40 views

Wrong pagination size after filtering category product collection with custom condition

I am trying to filter the category products collection on the basis of custom product attribute, i used many ways to override the collection but every method is filtering the records per page rather ...
Jasvir Singh's user avatar
0 votes
0 answers
18 views

load JS after changing the attribute value from dropdown on product add or product edit page backend

We are having brand and model two dropdown attributes on product level. We want to call JS when we change the value of brand while creating new product or editing existing product on backend.
M2 Dev's user avatar
  • 73
0 votes
0 answers
33 views

Load attribute depends upon previous selected attribute

We are having two dropdown attributes on product level Brand and Model. Consider Brand are Mahindra,Kia,Hyundai and Model having Mahnidra Bolero, Mahindra Scorpio,Kia Sonet, Kia EV6, Hyundai i20, ...
M2 Dev's user avatar
  • 73
0 votes
1 answer
89 views

How to make checkbox toggle in product edit form

I add attribute to special product like this $eavSetup->addAttribute( Product::ENTITY, 'dynamic_price', [ 'group' => 'Gift Card Information', '...
Nghia Hoang Trong's user avatar
0 votes
1 answer
89 views

Duplicating a product programmatically does not set the attributes in the copy?

Magento 2.4.6 I am trying to duplicate a product using the \Magento\Catalog\Model\Product\Copier class which is also used in Magento\Catalog\Controller\Adminhtml\Product\Duplicate in the execute ...
user4095519's user avatar
1 vote
1 answer
50 views

Magento 2 How can i customize the product on the page Product Listing Page Widget of Live Search

I am using magento version 2.4.5 live search versions : * 3.0.1 How can I customize the product information displayed https://experienceleague.adobe.com/docs/commerce-merchant-services/live-search/...
Văn Thanh Nguyễn's user avatar
0 votes
1 answer
27 views

Product Attribute for saving Key-Value Pairs

We have a requirement to store values in Product Attributes in Key-Value pairs. I am still searching for the solution, need assistance reagrding the solution.
Abdul Rafay's user avatar
0 votes
0 answers
23 views

Incorrect dipslay of size from Text Swatch attribute

we are having problem with correct display size from Text Swatch attribute. If the size is to long, text is displaced to next line with one line space. For example "30 - 34 cm". It does not ...
Michał Parma's user avatar
0 votes
0 answers
23 views

Get condition set in the admin widget in the product loop?

Is it possible to get the condition value set in the admin widget and display it in the product loop template? For example, in my theme /lumachildtheme/Magento_CatalogWidget/templates/product/widget/...
Jesse Lange's user avatar
0 votes
0 answers
11 views

Magento 2.3.5p1 custom theme Products attributes not reflecting on Frontend?

I have created product attribute "Resources" & enabled "Visible on Catalog Pages on Storefront". Still I am not able to get the output on the frontend. There is already two ...
Usman Ahmed's user avatar
0 votes
0 answers
21 views

How to load widget data from a specific category?

I am an absolute beginner of Magento. Created a new page via Content -> Pages. On that page, I want to show the recent 10 T-shirts from the tees category. Therefore I included a widget but I can ...
WP Learner's user avatar
0 votes
0 answers
19 views

How to add Product Attribute based on Attribute Set

In Magento 2.4, I need to add a product attribute only for one product, that is set to One Attribute Set. Is it possible to add for only one Attribute Set?
Saravanan DS's user avatar
  • 1,118
0 votes
1 answer
24 views

How can i pass product attribute manufacturer and SKU to javascript?

I have the following script which i need to add the product brand/manufacturer and SKU <script> window.addEventListener('liveload', function() { IcecatLive.getDatasheet( {...
just_testing_magento's user avatar
0 votes
1 answer
100 views

How to add Product Custom Options for specific Product?

In Magento 2.4, I need to add "Date", "Time" fields for only One Product - That is Belongs to a Separate "Attribute Set" Called "Services". How to add this ...
Saravanan DS's user avatar
  • 1,118
0 votes
0 answers
34 views

Product Attribute Multi select

I am trying to replicate this kind of attribute (categories) in a custom attribute. There is a way to do it? I means, the text input field with the search bar with the multi select option to assign ...
Camilo Torres's user avatar
0 votes
1 answer
29 views

Product attribute in Model

I have an attribute product that is a multiple select. I need to fill it with many operation options to select from, like a thousand or more. Is there the possibility to put this multiple selection in ...
Camilo Torres's user avatar
0 votes
1 answer
80 views

Product Multi Select with dynamic options

I want to populate the options of a multi select in my attribute products with an array of value in a admin config, This is posible?... I know the possibility to do it with a installData but the ...
Camilo Torres's user avatar
0 votes
1 answer
138 views

How to modify custom attribute of a product with JSON (Postman) Magento 2

thank you for reading me. Is there a way to modify a product´s custom attribute? I´m using postman, i use JSON POST for price and stock but i can´t find the way to update a custom attribute of a ...
Javier's user avatar
  • 1
0 votes
0 answers
21 views

Redirect products with options to product page

On the category page I have products with and without options. If an option is selected for a product, I would like to be redirected to the product page after clicking on an option. Is this possible? ...
Straddi's user avatar
0 votes
1 answer
170 views

How to Create Bulk Product Attributes in magento 2?

I want to add more than 50 Product Attributes in the bulk. Please let me know the best way to do it in Magento 2.
Jitendra Patel's user avatar
0 votes
0 answers
29 views

Magento 2 Some of the product Drop down boxes do not work, some do

Magento 2.4.5-p1 On admin panel when editing products some of the attribute drop down boxes work (Attribute set, Manufacturer, Condition) while others do not, the box will drop down and only show one ...
Jesse 's user avatar
  • 51
0 votes
2 answers
797 views

magento 2.4 product collection filter by custom attribute value instead of id

Via backend, I added a dropdown custom attribute on my products. Now I need to filter the product collection based on the value of this dropdown. If I add the option id in the filter, everything ...
Lou Nik's user avatar
  • 351
0 votes
0 answers
14 views

Quick search can't receive products by attribute options name. Magento 2

this is a config attribute, i added yes in search of usage, also i do indexing and clearing the cache, but search can't return product by attribute option name, who can can say what the problem ? ...
Rub Hayrapetyan's user avatar
0 votes
0 answers
31 views

Magento 2 Product Multi select attribute with check box to avoide CTRL+click

product page where the attribute (product attribute) with the multi-select option I need to convert that multi-select in the checkbox so the user can easily check more than one attribute without ctrl+...
Pawankumar's user avatar
0 votes
2 answers
168 views

How to disable COD payment method based on product attribute value in Magento 2

Create a product attribute in BE: Engraving Services, input type: Yes/No. On Checkout - step Payment Method page, check if in cart attribute Engraving Services of valid products: Yes, Then disable ...
Nam Cong's user avatar
0 votes
0 answers
21 views

What changed from 2.x to 2.4.3 for Product Attribute Codes beginning with a number?

What is the reason behind allowing product attribute codes to begin with a number in Magento 2.x but not allowing them to begin with a number in 2.4.3? What is the reason behind the change? We are ...
Sean's user avatar
  • 1
0 votes
1 answer
580 views

Adding a product select attribute with a source in Magento 2.4

I've created a module to add a product attribute with a select input using a source for the options. I've used a data patch to add the attribute. I can see the patch in the patch_list table but it's ...
user3417608's user avatar
0 votes
0 answers
52 views

Magento 2: Skip some product attribute from mass Update Attributes

I have an issue about mass Update Attributes because I used datetime in product attribute and seem Magento not support it. ref: https://github.com/magento/magento2/issues/35214 So I tried skip that ...
GGame's user avatar
  • 36
0 votes
0 answers
60 views

how i add itemprop="image" on product large image?

how i add itemprop="image" on product large image?
Alok Tiwari's user avatar
0 votes
0 answers
14 views

Some field names in product editing aren't showing up

After upgrading Magento from version 2.3.7 to 2.4.4, I saw that some fields' names aren't displayed. These fields are: price, weight and qty. Do you have any idea, why the names aren't displayed?
bambo's user avatar
  • 3
0 votes
0 answers
58 views

Needing to reload page to see entire contents

Thanks in advance for your help! I am using the Magento Open Source ver 2.4.5 with the breeze-evolution theme from Swissup labs. Currently when I navigate from one page to another, the page does not ...
neel kamat's user avatar
0 votes
0 answers
89 views

Display Product Image and Price in the Search Bar while Searching

I want to display the product with the Image and the Price with the Product Name in the search bar while Searching in the Search bar.
Rana Zain's user avatar
  • 616
1 vote
0 answers
28 views

Magento 2.3: Error on admin product save after changing attribute set

I am getting this error after I change the attribute set and save the product: Fatal error: Uncaught Error: Call to a member function getBackendTable() on boolean in /chroot/home/aa8492ec/018d4ad51c....
mechanic's user avatar
  • 350
0 votes
2 answers
232 views

Magento 2 Attribute Property - How 'user_defined' and 'system' attribute propety are different?

'system' attribute property tells if attribute is system defined or not. 'user_defined' attribute property tells if attribute is custom (define by developer) or not. It means, if 'system'=0, the ...
Wakar Ahamad's user avatar
3 votes
1 answer
78 views

How to manage many product attributes in Magento 2

We have a website and fetching the products from the third party ERP. In the third party ERP there are around 2100 product attributes. So we need to create all attributes in the Magento. So want to ...
Sunny Rahevar's user avatar

1
2 3 4 5
37