Questions tagged [attributes]

Magento Entity Attributes

Filter by
Sorted by
Tagged with
0
votes
2answers
18 views

Get Dropdown Value from a Custom Customer Address Attribute

I'm trying to get the frontend label of my custom address attribute and trying this:$address->getCustomAttribute("custom_attribute")->getValue(), gives me the value "95905" instead of the label. ...
0
votes
0answers
17 views

eav_attribute_option and eav_attribute_option_value not getting updated after adding custom attribute to customer admin

Basically I have been trying to add custom attribute in customer admin using upgrade data and customer setup. But here I can see in my db that my new custom attribute have been added successfully in ...
0
votes
0answers
11 views

Embed attributes in Name or Description

I'm trying to work out a way of embedding attributes in other attributes, e.g. name or description in Magento 2.3 As an example static product name - Blue T-Shirt Size Large dynamic - {...
0
votes
0answers
10 views

show text in item description for currently selected attribute

Magento 1.9.3 I have a custom piece of code in the description.phtml page for a product. This description auto populates if the item has attributes associated with it. This works well for my ...
0
votes
0answers
5 views

Maximum of selected options in multiple select attribute in Magento?

We have a shop and have run into problem since multiple select attribute is set to "varchar" and can only have 255char. This means we can have aprox 51 different options per product but we need more ...
0
votes
2answers
12 views

Can't read new product attribute in template

I added a new attribute to a product. The attribute is named "is_brand_new". The product shows in the catalog product view in the upselling and related slider. But the new attribute is not in the ...
0
votes
2answers
16 views

Position customAttributes on address-renderer

I am using an Address Fields Manager module. The problem is that in the sidebar in the resume they are all seen together (address-renderer/ default.html) and I need to divide them: <each args="...
0
votes
0answers
12 views

With GraphQL can I apply a filter in customAttributeMetadata?

I'm getting the values and labels for an specific attribute_code. query{ customAttributeMetadata( attributes: { attribute_code: "armazenamento" entity_type: "4" } ) { ...
0
votes
1answer
14 views

How can I get the product attributes with GraphQL without knowing them?

I have a shop with several products and each product have his own attributes. I'm trying to get those attribute values of each product with GraphQL but I don't know what are the attributes. I want to ...
0
votes
1answer
30 views

How to change the position of the filters in product page or Layered navigation

Hi, I need to change the layer navigation position as shown in below image the Manufacturer first and Category to second. But i can't find how to change these. The Category must come at second ...
0
votes
1answer
23 views

How can I get the attributeSet of product with his id with GraphQL?

I was using GraphQL to get the products of my shop and I can´t get his attributes. In my shop, there is several products with is unique attributeSet. I use the next query to get the attribute_set_id ...
0
votes
0answers
22 views

anyone know where is the value came from?

Anyone know where this value came from? I have no idea why it is showing... Please help
0
votes
0answers
13 views

Magento 2.3 How get selected options from custom product attribute to list format?

How i can get only selected options from custom multi-select attribute in block? I used $attribute = $_product->getResource()->getAttribute('attribute_name')->getFrontend()->getValue($...
0
votes
0answers
14 views

I need to get the product attribute and show below the product name in Product Detail page

I need to show the Manufacturer product attribute under the product name how to show it in magento 2.3 I tried to show using XML but it is not showing how can i do it. Thanks in advance :)
0
votes
0answers
19 views

Repeats the custom attribute

when I use this method to get custom attributes $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $_product = $objectManager->get('Magento\Catalog\Model\Product')->load($...
0
votes
0answers
26 views

magento 2 load by attribute method

Load product by attribute i have using the following code $attribute ='test1'; $objectManager =\Magento\Framework\App\ObjectManager::getInstance(); $product =$objectManager->get('Magento\...
0
votes
1answer
29 views

How to show the product attribute in the product listing page Magento 2.3

How to show the product attribute in the Product listing page i had used the helper in Magento_Catalog (Magento_Catalog/templates/product/list.phtml) but it gives the value of the product attribute ...
1
vote
1answer
35 views

magento2: can I import configurable products without their variations?

I'm trying to import some products from an ERP with a cron job and I'd like to utilize the data import functionality which is built-in with magento 2. My idea is to create a small csv file (very ...
0
votes
0answers
5 views

I can't add the product attribute in the fillter tab in magento 2.3

I need to add the product attribute in the filter tab but i can't add the attribute i followed the this link https://docs.magento.com/m2/ee/user_guide/catalog/navigation-layered-filterable-attributes....
1
vote
1answer
24 views

Showing Customer Attribute in Customer Grid

I created the customer attribute in Magneto but it is not showing in Customer grid i need to show it without deleting the current attribute. How can i do it. My code InstallData.php namespace ...
0
votes
0answers
10 views

Magento2.3.3 - Configurable product edit time, Size attribute not remain selected

I found an issue on the product edit page in the default Magento 2.3.3 version. I have added 1 configurable product to the cart with size and color attributes. Once I click on the Edit link, I land ...
0
votes
0answers
13 views

BRAND as catalog NAVIGATION AND as FILTER option. COMMENTS requested

The goal is to use the product’s brand for the Layered navigation (Categories) , AND for the filtering of the products. Yes…. Sure we know ... we can BUY plenty of MARKETPLACE solutions... BUT maybe ...
2
votes
4answers
184 views

How to update the attribute scope programmatically in Magento 2

I have 20 product attributes. I need to change those attributes' saving scope to "Global". How can I achieve this?
0
votes
1answer
25 views

Magento 2 : How to get swatch attribute label

I have an attribute "brand" with type Swatch. I have created many brands as an option in this attribute. I want to filter brands label which are starts with a particular letter (ex. A or B or C).
0
votes
1answer
17 views

Magento 2.3: How I can create a text swatch attribute programatically?

In my InstallData class I have the following code, it perfectly creates the attribute for me but this creates it as Dropdown and I need it to be Swatch Text. What option am I missing? $productTypes =...
0
votes
0answers
12 views

How to obtain attribute_set_id from product attributes API response

I've been trying to retrieve attribute_set_id and attribute_group id from the below endpoint. rest/V1/products/attributes?searchCriteria=0 However, the response only contains the below keys which do ...
0
votes
1answer
37 views

Magento2 How To Export Product Custom Attribute With Value

I have export product from backend and getting custom product attribute but it shows empty data in csv file. does anyone know how i can export custom attribute with value?
-1
votes
1answer
26 views

HOw to create more than one extension attribute and how to set data init magento 2.3

How to set the data in the extension attribute which i created and how to create more the one extension attribute in single module. My Following code is in below link. URL : My Following code ...
0
votes
0answers
17 views

Products showing up in layered navigation after saving them again from admin panel

This is Very weird problem i am into right now, Its a clothing store where i have uploaded 50 products for an example and they are successfully visible in both front and back end. Now if i apply ...
0
votes
0answers
12 views

Magento 2 Search Weight

Hi I am using the latest Magento Enterprise edition. Is it possible to adjust the maximum search weight of the catalog attribute to 20? Currently the attribute's maximum search weight is 10.
0
votes
1answer
39 views

Display price attributes on backend list Magento 2

We have a module that create quotes that very simaler like create orders from backend, add customer, add product/s by select them so you can see them as a list in the backend before you create the ...
0
votes
0answers
11 views

Add attributes and their values to existing attribute set programmatically

I want to add 2 groups and their attributes programmatically to an existing Set Group This is the screenshot. Please note that I am willing to add two Groups each one containing 3 attributes the ...
0
votes
1answer
30 views

product image thumbnail didn`t work on direction:rtl

I used magento 2.3.2 ,when i used { direction:rtl; } on pub/static/frontend/Magento/luma/ar_SA/css/styles-l.css the product image thumbnail didn`t work any one can help me to make it work ?
0
votes
0answers
18 views

Filtering products with option_id

How can I filter products by option_id ? The "manufacturer.option_id" attribute name is invalid. Reset the name and try again. found something here https://mage2.pro/t/topic/1249 and tried something ...
0
votes
1answer
49 views

Magento 2.3 - Display additional attribute on backend order overview

Given scenario: We have a ton of articles where it would be better for our workflow to add an additional attribute displayed at the highlighted area on the picture, but since i cant find a ...
0
votes
1answer
62 views

How can i filter custom atributes in graphql?

I am building an e-commerce app to sell products. There is a section in my website with products on sale and I want to show in this section just the products that are on sale. But in the backend of my ...
0
votes
1answer
21 views

How set value for attribute?

I have this code: foreach ($skuScope as $sku) { $object = Mage::getModel('catalog/product'); $product = $object->loadByAttribute('sku', $sku); $attributes = $product->getAttributes(...
0
votes
1answer
37 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 ...
0
votes
0answers
11 views

Need to select multiple attributes via checkbox & save it to quote

On product details page, I need to built a functionality from where product attributes will be displayed in tab section & then I can check multiple attributes via checkbox & save them in quote....
0
votes
0answers
11 views

Backend only address attributes

I've added some custom address attributes and now I'm getting an error on checkout page Propery 'propname' does not have accessor method in class AddressExtensionInterface. How can I make those ...
0
votes
0answers
22 views

I am trying to create datapatch but can't delete products

in the attribute Attribute "Manufacturer" we've several entries of the brand "LG", seems it was duplicated over and over during migration or import. I have to drop all instances of "LG" from the ...
0
votes
0answers
18 views

Magneto 2 Share a catalog to our privileged customers

I need to share magento2 products with some of our valued customers first rather than publishing them online. They will purchase items if they want but in magento2 how can we generate a special URL ...
0
votes
4answers
81 views

Magento 2 custom attribute and show product if attribute YES

its very Urgent I have an attribute called 'show_product' (in the backend of Magento) with two outcomes 'yes' or 'no'. At the moment I'm just echoing the product name on the frontend. However, ...
0
votes
0answers
22 views

Error in system.log magento 2

Can anyone help me with this error main.WARNING: Attempt to load value of nonexistent EAV attribute '161' for entity type 'Magento\Catalog\Api\Data\ProductInterface'. [] [] ...
0
votes
1answer
28 views

Magento 2 - How to disable products by custom attribute value?

In Magento 2, I’m try to disable product by custom attribute value. For exemple if product has attribute "custom_status" = "disabled" then product is no longer available to customers by any path, ...
0
votes
0answers
41 views

Magento 2 category list page - add template - get product attribute

I want to add a custom template inside the category list page. Therefore I added the following inside my catalog_category_view.xml; <block class="Magento\Catalog\Block\Category\View" name="...
0
votes
3answers
52 views

No able to Retrieve Custom attibute value of a catgeory in magento 2

I have created a custom attribute for my category. Below is my code. In InstallData.php <?php /* file: app/code/Atwix/CategoryAttribute/Setup/InstallData.php */ namespace Vidushi\KeyFeature\...
1
vote
2answers
150 views

How to delete unused dropdown values, those unused by any product, on Magento 2.3.4, using the recommended API

I'm trying to delete unused dropdown options, the values that are not used by any product. So what is the proper way to delete all unused dropdown options? What APIs should I use for this? Here is ...
0
votes
0answers
26 views

Magento 2 How to create custom attribute for product weights text field with dropdown options as units?

I want to create a custom product attribute for weights, I want a text field and dropdown with weight units Grams, Kgs, carat, lbs, mg, etc in the dropdown and same for heights. How can I archive ...
0
votes
1answer
55 views

Create custom attribute same like related products in magento 2

I want to create a custom attribute as "Similar product" which will behave like "Related products" attribute. How can i do that in magento 2?

1
2 3 4 5
43