Questions tagged [attributes]

Magento Entity Attributes

Filter by
Sorted by
Tagged with
0
votes
1answer
53 views

How to get product quantity by product id from Magento 2.3 as an array for CSV?

Trying to get qty from Magento 2.3 with code below. It is a part of the code that gets quantity, which then goes into the CSV feed. public function getProductQty() { $objectManager = \Magento\...
0
votes
0answers
22 views

How to display layered navigation with attribute values in the custom CMS page in Magento 2?

I am using Magento 2.3.1 I have one product attribute named "Test". I have set values for this attribute in all products and this attribute is set as a filterable attribute in the layered navigation. ...
0
votes
0answers
14 views

Magento 2 Product custom attributes are not in created order

In my admin dashboard product Add/Edit page I have my custom attribute order like below image. Admin Page But in my product view page i get in random order like below.
0
votes
1answer
29 views

Log in with custom customer data

I've added a customer custom data (code_client) to the customer info and I want the user to be able to login with both the email addresses and that code_client. Is it possible to log in to my store ...
1
vote
1answer
18 views

Custom Attribute for Product Image Not Showing Saved Values in Admin Form (Media Gallery Attribute)

Similar to below: how to save image custom attribute in magento 2 Have followed above question and added a custom text area attribute. So far the field shows for me under "Alt Text" and then ...
0
votes
1answer
26 views

Magento 2 Filter product collection by multiple attributes with OR

In Magento 2.3.3, How Can I Filter Product Collection by Multiple Attributes? First attribute SKU needs to check using "IN" second attribute is yes/no value. I need to filter collection by SKU array ...
0
votes
2answers
29 views

Export product quantity from Magento 2.3 to CSV file

What is the proper code to export qty attribute from Magento 2.3 to CSV. $product->getQty(); - doesn't work. Thank you!
2
votes
1answer
20 views

Element 'script', attribute 'crossorigin': The attribute 'crossorigin' is not allowed

After installing customer attribute extension from Bsscommerce they added another addon module. It then broke frontend of site so they disabled all of their modules but the error still persists. I've ...
0
votes
1answer
23 views

Magento 2 - remove everything after hr tag

I have one attribute with the name tech_data and in this attribute I have the following values: <p><a title="SDS" href="PDF/SDS/SDS.pdf" target="_blank">SDS</a> | <a title="Sheet"...
0
votes
0answers
9 views

Get all attributes with group name

I have a webshop with a lot of attributes, they are divided into attribute sets which I choose for the product and in the set I have groups to arrange the attributes. What I need is to het all the ...
0
votes
1answer
30 views

Get available quantity in Magento 2.3 for CSV export

I can't find a way to get the available quantity in Magento 2. I am Building a file to export products to CSV. Quantity must be stored in 'quantity_and_stock_status' but how to extract it I don't know....
0
votes
0answers
10 views

get attribute value of current product

I am trying to get the value of a attribute which I can save as a variable and use in another file as an echo. I start with creating a function public function getCurrentProductStyle() { $result ...
0
votes
0answers
20 views

Magento 2.3 - Product Attribute Options Sort

I want to sort the product attribute option, can anyone help me which file I need to change for it. Ex. The brand attribute has so many options, I want to sort it alphabetical order in the admin side....
1
vote
0answers
22 views

How to dynamically change attribute value depending on the selected swatch or size?

I have a table in which I want to display product attribute data there, depending on the selected size or swatch. So that the value of the attributes in the table changes dynamically How to ...
0
votes
0answers
25 views

Pragmatically add product attribute label to an existing attribute for a new store view

I have setup a working store in English (default store view), but now i wish to add a new language which will be a new store view; 'Italian'. We have alot of attributes that have been added ...
2
votes
1answer
46 views

How to add customer Attribute inside custom tab section insted of “Account Information” in magento 2?

I have created customer Attribute programmatically and need that attribute to outside of "Account information" tab... means in custom tab. I have tried with customer group.... ui component file as ...
0
votes
0answers
16 views

How to get product custom attribute drop-down appear on frontend?

Basically I have to create a drop-down of "brands" on my product page such that customers can manually select their brands depending on their choice. What is the way to do this? Is it possible to ...
0
votes
1answer
20 views

Magento 2 get dimensions of products in order event

I'm trying to get the dimensions(length,width and height) and weight of all products in an order. The event that I'm using is checkout_submit_all_after. In observer I have this code. $order = $...
0
votes
0answers
23 views

Where is the option id of a select custom attribute saved?

I have a custom attribute select for the product entity. Let's call it my_custom_attribute. If I save the product from the backend the value goes on the catalog_product_entity_int table, instead if I ...
0
votes
2answers
38 views

check visibilty of specific product

I want to select a value for status or visibility on a specific product for which I have only the sku. I have tried many ways but did not arrive a a solution to the problem. Anyone can help me, ...
0
votes
0answers
30 views

Display Product More Information In product Category Listing Page

i want to display product "More information" in catalog category page. I copy that code from /magento/module-catalog/view/frontend/templates/product/view/attributes.phtml <?php $...
0
votes
1answer
28 views

Product Collection By Atttribute Code

I have product Attribute "Model". Now, I want those product which have model attribute from product Collection how I achieve that?
2
votes
1answer
143 views

How to filter product collection with default graphql products query

I am using Magento 2 Graphql to get product collection based on category id. I want to apply filter by color, size, material etc. I have checked the graphql available filters and those are not ...
1
vote
0answers
21 views

M2 - Lots of product attributes and sets

We have a new webshop with photo camera's and all the accessories. We have 25+ attribute sets and the attributes sets have specific attributes (30+). For example, a camera has the attribute set "...
1
vote
0answers
15 views

Magento 2: Retrieving and updating Attribute Options and Store Lables

I am currently trying to update an attribute options store label and facing some issues. I can successfully update option store labels by calling $storeLables = []; $optionLabel = $this->...
1
vote
0answers
22 views

Product attributes in navigation and in product tab

Sorry for the vague title. I will try and explain what I am looking for. I am designing a site for a garden nursery and have set up a product attribute group containing things such as 'Plant height', '...
2
votes
0answers
38 views

Add Attribute Bulk Value Using CSV File in Magento 2.3.3?

I have Magento 2.3.3 Store And I have too many Product Dropdown Attribute And One Attribute have a something 500 1000 value. So How can I add multiple values using CSV file or other options so, ...
1
vote
1answer
29 views

magento 2 : Add new attribute button not showing in Product Attributes Grid

In my Magento store Add new Attribute button not showing when I go to stores>product>attribute grid open but no showing Add New Attribute button.
1
vote
0answers
21 views

How to filter a custom attribute in customer grid?

I've created a custom customer attribute (postive_cust_id) and got it to appear in the admin customer grid (following the instructions of this guide: https://magentodeveloper.in/add-custom-attribute-...
0
votes
1answer
54 views

Magento 2 Custom filter of product list page not affecting layered navigation

I have a filter in My list.phtml like below: $_productCollection = $block->getLoadedProductCollection(); if($_COOKIE['selectToGarageList']){ $dat = $_COOKIE['selectToGarageList']; ...
1
vote
0answers
14 views

Convert Magento1 Text Attribute to magento2 PriceType Attribute

Looking for solution for converting some attributes to another type. Problem: We sell boxes with dimensions Length, width, height on Magento 1 webshop. On the frontend in Layered Navigation we used ...
2
votes
2answers
132 views

Magento 2: How to setup layerd navigation in custom product collection?

I am trying to set a layered navigation filter on the custom cms page. for that, I have created a 1 cms page name test with two-column with left bar. and inside it, I have called one template file {...
1
vote
0answers
19 views

Create a Programmatic attribute that detects product if it is Still On Sale or New

Scenario wanted: Lets say you have multiple products that is on sale till a specific date each product with its own time and you want to create a promotion condition rule for all these products under ...
0
votes
0answers
21 views

Magento2.3: How to remove Customer attributes using admin panel?

In Magento 2 EE, we can create Customer attributes from Magento admin but I can't see an option to delete it via admin. How can I delete it from admin itself? Could anyone please help me to get it ...
1
vote
1answer
45 views

How to change the display of the description from another attribute

For main website example: mywebsite.pl - A short description of the product is displayed from the attribute short_descrption. For other websites stores I want to change display short description ...
0
votes
1answer
26 views

Magento 2.2 : Upgrade customer_eav_attribute table 2.1 to 2.2

After updating Magento 2.1 to Magento 2.2 I get the following error when saving a client. I have seen that in the customer_eav_attribute table the data has not been updated correctly to the new ...
0
votes
0answers
18 views

magento 2 show category filter options all the time

I want to show all category filter options even if filter is selected. When user selects option it only shows the selected option. Same question was asked by some one here magento 2 : show all ...
0
votes
0answers
10 views

Load attribute set from category magento2.1

I want to load attribute set from last child of category. i have attribute set name same as last level child category. Ex: after select apple from category Electronic=>Mobile=>Brand=>samsung to ...
0
votes
0answers
15 views

Are filterable attributes with negative values possible, using “prices” to be filterable using a slider?

In a Magento 2 shop, we have two new attributes for simple products, "temperature min" and "temperature max". These attributes should be used for filtering using a slider (for each attribute), as it ...
0
votes
0answers
14 views

Magento 2.3.1 :: Orphaned attribute records

Recently we had an issue with the number of files found in the pub/media/product/cache folder causing us to run out of inodes. In our investigation, we found a lot of duplicate images in the folder. ...
1
vote
0answers
16 views

Implementation of attribute moving to the selected group, selected set attribute

Tell me how to implement attribute transfer to the desired group. I have attribute set $categorySetup = $this->categorySetupFactory->create(['setup' => $setup]); $...
1
vote
0answers
23 views

Magento 2 visual swatch not showing in frontend

I created different attributes with visual swatches, and assigned each one to differnt attribute sets. I have differnt products with different attribute sets, but for some reason visual swatches are ...
0
votes
0answers
15 views

Magento 2 display attribute dropdown on product page depending on attribute set

I have found tutorials like this http://excellencemagentoblog.com/blog/2018/03/13/displaying-custom-product-attribute-on-product-page/ on how to display a custom attribute in frontend product page, ...
0
votes
0answers
24 views

Magento 1.9.x: Custom attribute not show in filter Category

I was set Is_Anchor = Yes In Custom attribute, i set like this It show when i search product, but it not show in category Please help me UPDATE QUESTION
0
votes
1answer
198 views

Create a custom graphql module with filter attributes magento 2

I need to get all attribute values of product based on the category id. I had implemented this logic in rest api but I couldn't find clear solution for graphql module. My schema.graphqls file is ...
0
votes
0answers
17 views

magento2 drop shipping product import

I'm trying to import a CSV from a dropshipping supplier. If I go into the Stores-attribute set area and simply delete ALL attributes, and then upload the provided products CSV, would the attributes ...
0
votes
1answer
29 views

Attention: Something went wrong, Error when applying filter

I added an attribute in sales_order, and display it as a column in sales_order_grid, all is set but when I try to apply filter on my custom column it gives me an error with a pop-up like: Attention: ...
1
vote
1answer
205 views

Problem on saving attribute. “The value of Admin must be unique.”

Currently, I'm migrating a website from Magento 1 to Magento 2. I've used the data migration tool and moved my data to Magento 2. When I try to update a custom attribute called 'color_sw_selection',...
0
votes
0answers
24 views

Adding new attribute - EAN to schema.org

there! I've created new attribute called ean. I've added <meta itemprop="ean" content="<?php echo $_product->getEan() ?>" /> into price.phtml page, and see that this is working but I'm ...
0
votes
1answer
40 views

Magento2 attribute default label issue

when i want add more than 36 character I get below error on add attribute, default label section: Attribute code "attr_______________________________" is invalid. Please use only letters (a-z), ...