Questions tagged [attributes]

Magento Entity Attributes

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

How to set Extension Attributes on a configurable product in a chronological order?

So, I have tried to save options on setExtensionAttributes. In a specific order, but it always comes out in the backend in a another order. Lets say I save them as Table, Brand, Size. But in the ...
0
votes
0answers
11 views

Magento 2, programmatically create configurable products

Hello I have the necessity of creating both simpe and configurable products. This is what (following online guidelines) I have right now: $bootstrap = Bootstrap::create(BP, $params); $objectManager = $...
0
votes
1answer
34 views

How to display additional attributes in category page product item

Please check the below images for more understanding Display here...
0
votes
1answer
17 views

When this attribute is displayed on the product page, its values must be different depending on the selected language

You need to add a new text attribute to all products in the Magento store. When this attribute is displayed on the product page, its values must be different depending on the selected language. ...
0
votes
1answer
25 views

product details page is featured attribute yes show attribute in magento 2.4

This attribute only show Is Featured Yes for attribute in product details page in magento 2.4 app/design/frontend/Magento/Theme/Magento_Catalog/templates/product/view/attributes.phtml <?php $...
0
votes
1answer
34 views

How to getSku for configurable products in magento 2

I want to get Sku for selected options. Above image i have select blue and M. So this options product sku get in magento 2. Please Help me. THANKS.
0
votes
1answer
36 views

Add description to Related Products

I try to add product Short Description in the Related Products section in Magento 2.4 version. I overwrite this file:/app/design/frontend/Theme/MyTheme/Magento_Catalog/templates/product/list/items....
0
votes
0answers
14 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
37 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
30 views

Magento2: How to add extension attribute to rest/V1/products/attribute-sets/4/attributes

I want to add extension attribute to the default API to identify the visual and text swatches http://localhost/m2.4/rest/V1/products/attribute-sets/4/attributes API.
0
votes
1answer
21 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
0answers
10 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
11 views

Magento 2 How to set up restrictive attributes?

I would like to know how I can set up an attribute that would filter the items listed with multiple values selected. For example if I offer rings and I set a material attribute. I would have among ...
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
1answer
12 views

Export attribute set and the attributes that are assigned to it

our attribute sets have become messy, things are assigned to them that shouldnt be and some things that should be havent. Is it possible for me to export to CSV the attribute set name and a list of ...
0
votes
1answer
26 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
12 views

Show Categories Filter with Custom Attribute

I have to get the list of categories those have a specific attribute assigned, So to achieve this i have created a custom attribute boolean type like this: public function install(...
1
vote
2answers
29 views

Insert custom canonical value on category page in Magento 2

I've created a module to add a custom category attribute (custom canonical URL) to a category page, based on Display custom canonical URL on category page in Magento 2 question. Here is the contents ...
0
votes
1answer
31 views

How to get custom order attribute in API?

In sales_order_grid table I have this custom field: This field was added by this extension: https://github.com/boldcommerce/magento2-ordercomments Is it possible to add it as "custom_attributes&...
0
votes
1answer
26 views

Magento 2 load multiselect attribute values in product list

I am trying to load multiple values of Color attribute in product list phtml file with this code: <?php echo __('Color: ') . $_product->getAttributeText('color'); ?> But I get array error: ...
0
votes
0answers
94 views

Magento 2.4 | Filters are no longer seen with Elasticsuite

I have updated Magento to version 2.4.2 and have also activated Elasticsuite as the default search engine. Elasticsuite installation went smoothly and the module is correctly installed. The search bar ...
0
votes
2answers
33 views

How to retrieve product attributes values in Magento 2

I want to get configuration product attributes values in phtml file. Above two value i want to get in magento 2. So please Explain me How to get. THANKS.
0
votes
2answers
32 views

Custom Block to Product Page with selection attribute is not showing

I am trying to create an option where I can select yes or no in the backend, and when it's set to yes, it adds a block with an image in the product page. Here's what I have so far: I created a Yes/No ...
1
vote
1answer
17 views

Can't change Custom Attribute when Importing Products

I have a custom attribute for my products called Designer_name. I'm trying to import products and change a Designer_name's value in the additional_attributes column, but it doesn't work. The attribute ...
0
votes
0answers
13 views

How to check customers custom attribute order place in Magento 2

How to check customer custom attribute is 'No' order is pending. And customer custom attribute is 'Yes' Order is processing. So please How to achieve this. Thanks
0
votes
0answers
24 views

Magento2 - Adding a new extension attribute to customer / no customer attribute

I am new to the Magento world. I would like to create a new extension attribute for Customer. The idea is for a new attribute to appear in the customer edition: favourite type of coffee. I've read the ...
0
votes
1answer
6 views

Hide filter options with 0 products in Magento2

I am using Magento 2.3 and need to hide filters in the layered navigation that contain zero products. What files should I modify to complete this?
0
votes
0answers
9 views

Phone number magento validation not working in Register and MyAccount Page - Magento 2.3.5-p2

i try to add magento validation to make it display "Please enter a valid phone number, without dashes or non-numerical characters." like this, and also magento validation can only make me ...
0
votes
0answers
25 views

boolean order attribute won't save correctly in Magento 1.9

I have created my boolean order attribute /* @var $installer \Mage_Sales_Model_Resource_Setup */ $installer = $this; $installer->startSetup(); $smsAttribute = [ 'type' => 'int', '...
0
votes
0answers
12 views

Sort By option not working properly when using ascending or descending button

So the problem is as follows: I have the Sort By option set to "Price", but once i try to change the order from descending to ascending or vice versa, the Sort By" turns back to ...
0
votes
1answer
24 views

How to check PLP page layered navigation attributes selected or not using Observer?

I am using event ( catalog_product_collection_load_before )for check PLP page layered navigation attributes selected or not, my observer, app\code\Zero\DescBlock\Observer\Data.php <?php namespace ...
0
votes
0answers
13 views

How to create a custom product attribute where i can upload as many PDFs as needed, and upload the thing as a whole?

I need to complete a task which i have been struggling with since last week. If i "Go to Seller Store" and then into editing a product (both a new product or one that is already uploaded), ...
0
votes
3answers
196 views

M2.3 - How to set Catalog -> Categories -> Content -> Description cms block based on shop by attributes selection programmatically?

I want to set the category description cms block based on the shop by attributes selection on product listing page,
0
votes
0answers
12 views

Magento 2 getproduct collection with catalogsearch leftnav

I want get product collection with catalog search left block I tried this way $leftNavBlock = $layout->getBlock('catalogsearch.leftnav'); $list['options'] = $leftNavBlock->getLayer()->...
0
votes
0answers
25 views

Exception - The attribute model is not defined

I have installed Magento 2.4.1, building a new Magento store - with Luma theme there was no error however the moment I installed Codazone theme the search box at css level is broken and any search ...
0
votes
0answers
14 views

How do I bypass Adobe Flash absence while uploading “images for Attribute”?

I want to upload little squares that show the colors of the products in my e-commerce. Since there was Adobe Flash I could do it without any problem, using flash buttons. Now I need an alternative way ...
0
votes
0answers
6 views

Display static block in category page based on applied filters in layered navigation?

how display the static block content based on the applied filters in the category page of the Magento 2
1
vote
1answer
24 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
10 views

Add rule to shoppingcart

Just like price rules, I want to apply a 'rule' but more as comment/notification that applies to certain products if they are added to the shoppingcart.
0
votes
0answers
14 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
15 views

Magento 2 Scheduled Mass Update of Product Attributes based on Filters/Rules

It has always boggled me. We can target products using filter/rules conditions for coupon discounts, we can target products using filter/rules conditions for price rules using a schedule.. But we can'...
0
votes
0answers
9 views

get product manufacturer option id by label

how can I get product manufacturer option id by label if it exists and if not create new manufacturer option? I tried something like this but I couldn’t manage to make it work protected $...
0
votes
2answers
205 views

Magento2: issue with bulk actions update - not started

After upgrade to Magento 2.4 I have issue with bulk update attributes. 57567f7a-e3ec-4812-a6e1-0b3861c06540 Jan 2, 2021 9:27:26 PM Update attributes for 13898 selected products Not Started cron ...
0
votes
0answers
34 views

ImageUploader module causes stuck spinner on category view in Magento 2

everyone.I want to create an image uploader that uploads an image to the server from the admin app category view using the ImageUploader UI component, and stores its path in the database.So far, I can ...
0
votes
1answer
92 views

API: Accessing All attributes associated to a Attribute-Group

So I'm in need to check to see if an attribute group contains a specific attribute_id. However using the API, there doesn't appear to be a specific endpoint which lists all attributes associated to a ...
0
votes
0answers
8 views

Load latest widget per type

I've created programmaticaly a Widget. Then I've created the widget in the backend (widget 2 => Marketing). Based on my user attribute, the widget should switch between 2 and 3 (which I have not ...
0
votes
1answer
62 views

Magento 2 How to add Banner attribute

Here I need to add a Banner attribute in Magento 2. Here, On banner edit page I need to add an attribute, but I have no idea how to achieve it. Can I get some help? Thank you in advance.
0
votes
1answer
51 views

how to get extension attributes in Magento\Catalog\Api\Data\ProductInterface?

Created a custom module for products with some filters. return it by Magento\Catalog\Api\Data\ProductInterface. how do I include extension attributes in this?
0
votes
1answer
15 views

Get attributes value from items in order

I'm actually working on a website in Magento 2. I have to print entire order in PDF. But I don't know how can I get the products attribute value. There is my code : foreach ($order->getAllItems() ...
0
votes
1answer
41 views

How to add working filters for max_sale_qty and manage_stock in Product grid in Magento 2.3?

I am trying to add working filters for max_sale_qty and manage_stock in product grid in Magento 2.3. I got the columns Max Sale Qty and Manage Stock in product grid to display the records using ...

1
2 3 4 5
45