Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [attributes]

Magento Entity Attributes

1
vote
0answers
12 views

How to allow duplicate admin name values for color attribute in magento 2.3

As per Magento 2.3, it won't allow adding duplicate values for product attributes. For the temporary purpose, I want to allow the duplicate value of Admin, under color attribute. How can I restrict ...
0
votes
0answers
25 views

How can I have a product attribute with a source model as a swatch?

I have a product attribute that I populate from my own custom table, I have a class that extends from \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource to be able to populate my attribute ...
0
votes
2answers
44 views

Magento 2 addAttributeToFilter not working

In product collection addAttributeToFilter is not working if we assing attribute value in only store view. But if we assing in default and store view than it working fine. anyone have idea why it is ...
1
vote
0answers
19 views

Can't update products in Magento 1.9

When I try to update a product nothing happens and I got the following messages in logs: 2019-05-16T07:19:30+00:00 ERR (3): Warning: array_key_exists() expects parameter 2 to be array, null given in ...
2
votes
0answers
17 views

Create import entity for attributes

I'm trying to implement a new import entity to be made available through the ImportExport module (which is actually extended by Firegento_FastSimpleImport2, but that's not relevant for this question) ...
0
votes
1answer
11 views

How to get product manufacturer swatch image?

I have next string, where I get manufacturer attribute: $brand = $currentProduct->getResource()->getAttribute('manufacturer'); I need to get attribute swatch image. How can I get it? On ...
2
votes
0answers
17 views

What is the scope of source model extend and implement?

What is the scope of source model extend and implement between these two? \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource \Magento\Framework\Data\OptionSourceInterface Attribute options ...
1
vote
0answers
11 views

Product attribute value visible in Catalog table but its field is empty in Edit Product form

I have a strange issue with Magento 2.2.5 where two of my product attributes have its values showing in the Catalog Table, but when you click into the product itself to edit, the field for that ...
0
votes
0answers
10 views

divide existing configurable Products

Its a bit of a complicated Situation at a Clients Magento (1.9) Store. Products are generated programmatically by an Interface to a bigger Managementsystem for Goods. Most Products are Clothes with ...
0
votes
0answers
15 views

How to filter a customer boolean attribute on the admin invoice grid(Magento 1.9)?

I can successfully display a Yes or No for my customer boolean attribute on the admin invoice grid using the following code. Here's the collection setup: $entityType = 'customer'; $attributeCode = '...
0
votes
0answers
11 views

Magento 1. Set customer attribute based on (max) order attribute values

we want to store some meta/customer attributes dynamically based on order data. Per customer we would like to store the brand attribute that was sold most and store the size attribute that was sold ...
0
votes
1answer
19 views

Magento does not use specified default value on attributes of type yes/no

I added a new attribute with Default Value set to Yes. I added the attribute to my attribute set and edited the product, but it is set to No by default. How can I fix it?
1
vote
0answers
23 views

How to modify the collection of options in step 2 when creating product configurations magento 2

I have overrided this template module-config product/view/admin/templates/catalog/product/edit/attribute/steps/attributes_values.phtml now i can't understand where options com from in the file and ...
2
votes
0answers
12 views

How to have irregular price filter ranges?

If I configure manual price ranges, I can define the step, but that step is a constant for all ranges. Is there a way to have, for example, USD 1 to USD 199 USD 200 to USD 499 USD 500 to USD 5,000 ...
0
votes
0answers
15 views

How to display options of custom attribute product magento 2?

I have created a custom attribute for product and I can add options dynamically as well. But the problem now I'm facing is that I want to display just the option relative to the current product, so ...
1
vote
1answer
8 views

GetLocalizedLabel not working under Grouped Products

I'm trying to extract 3 attributes for every associated product under a grouped product page. I use a multistore Italian-English but if I use $stato_label= $_item->getResource()->...
0
votes
0answers
11 views

Magento 2 product attribute grid filter not working I want to override grid [on hold]

protected function _prepareCollection() { parent::_prepareCollection(); $rid = $this->getRoleId(); $advmodel = $this->advancedPermissionFactory->create()->getCollection() -...
2
votes
0answers
5 views

How to add svg icons to Swatch attribute (disable admin panel file validation)?

Currently, I can load png/jpg files in swatch attribute, but when I tried to load save attribute with loaded svg file, it's not working. When I load svg from servers - it displays well, but when I ...
0
votes
1answer
15 views

Get custom attribute in CatalogInventory module

So far I have created custom attribute my_custom_attribute and I want to pass this attribute inside Magento/CatalogInventory/Model/StockStateProvider.php and call it like $stockItem->getIsInStock() ...
0
votes
0answers
18 views

left side Attribute filter with checkboxes , Magento2.2.6

I am using Magento2.2.6 Our requirement is attribute filter with checkbox display on left side layer navigation inside.Not page reload Ajax using filtering.If anyone idea and if this functionality ...
0
votes
0answers
5 views

can't create a config product according to my new custom attribute with dynamic options magento 2

I had created an attribute that have the type select and with dynamic options. the idea is that after creating a product this attribute will have or not options according to the sku of product. I want ...
0
votes
1answer
19 views

Magento 2.3 - what's in the Default attribute set? (migration wiped it)

I have used the Data Migration Tool and now am cleaning my migrated attribute sets, wanting to remove attributes that dont make sense. My attribute sets have many groups called Migrated_ and a few ...
0
votes
0answers
10 views

How to import Text Swatch attribute Using Magmi?

How i can import text swatch attribute in Magento using Magmi? In my CSV file i will put the attribute code but the description is filled only like below:
3
votes
1answer
96 views

More than one Free shipping issue with Shopping Cart Pricing Rule If General Free Shipping Enabled?

I have applied free shipping for purchase over 1000, If i try for free shipping specific products which is below 1000 using Shopping Cart Price Rule Free shipping not applying, Note : Created ...
1
vote
1answer
23 views

Manage hundreds of product attributes in a simple way

For the type of products that I manage in my eCommerce I should create about 300 product attributes to create a complete technical sheet. Is there a way to create feature in a product page tab, like: "...
2
votes
2answers
48 views

Magento 2: How to enable html tags in backend attributes?

I have added payment method in magento2.2. The payment method has an input box typed textarea. I want to add a href link but it's not supporting it. Is there a way to enable HTML tags. I am getting ...
1
vote
0answers
25 views

Magento 2 add a field to front account information tab

I'm trying to add a custom text field to the edit account information page on frontend customer dashboard, so i tried to create a module like this in VendorName\ModuleName\Setup\InstallData.php ...
1
vote
2answers
83 views

Magento 2 - Add additional attributes in register

I am using Magento 2 EE. I want to call phone number attribute in customer register form. To do this I just created a custom customer attribute from Store -> Attributes -> Customer But it is not ...
0
votes
0answers
15 views

Add Customer Attributes through Admin Form

I'm trying to build a extension where I can dynamically add new Customer Attributes just like I would do with Product Attributes. The thing is that I'm new to Admin Grid and I'm not finding the a few ...
0
votes
1answer
12 views

How can I create a new STATIC Product attribute in Magento 2?

How can I create a new STATIC Product attribute in Magento 2? We use barcode as a unique identifier (same as SKU) and are considering adding this - same as sku - as a STATIC attribute directly to ...
0
votes
0answers
12 views

How to get the attributes set using the all attributes in phtml page? in magento 2

How to get the attributes set using all attributes in phtml page? In need, the products view page in all attributes in particular attributes set related attributes?
0
votes
0answers
15 views

Get custom customer address attribute on email

I have a module with which I create my attribute. I can get it and show it in the admin panel, but not when the data is recibed on checkout process. This is my installer code: public function ...
0
votes
0answers
16 views

configurable product: sort all attributes in alphabetical order

I have 3 select inputs in my configurable product. Options are not in alphabetical order and are too many to do it manually (100+ x select) How can I force options order? Thank you
0
votes
0answers
13 views

configurable product: display custom attribute value when all options are selected

in configurable products I need to display the value of a custom attribute when all select fields are filled. It seems that only images and price are updated (js). In my case I need to display ...
1
vote
1answer
34 views

Attribute info in email

How can I add this part, it is a child attribute Into email, which is sent to customers? Unfortunately now I have only the name, and sku in the email
0
votes
1answer
13 views

Add options to Sub-category attribute in Magento 1

I want to add additional option to the subcategory attribute but I cannot locate where to update its content within the Magento Admin Panel. See this link for full image - https://drive.google.com/...
0
votes
0answers
13 views

How to Add Wishlist Custom Attribute in Magento1?

I want to add customer attribute in magento wishlist in order to save additional field in wishlist table.
0
votes
1answer
24 views

How to add a new field to Custom Options

How can I extend the "Custom Options" in a configurable product? I need to add a new field named Identifier. Where can I find the necessary templates? I figured out that the template is in app\design\...
1
vote
1answer
25 views

Get products where multiselect value is false

how can I get products where the value of a multiselect is not set ? I've got these so far : $filter = array( array('eq' => array("378")), //multiselect with one value array('eq'...
1
vote
0answers
35 views

Add category attribute in collection filter (search)

I've created an attribute for my categories (it's displayed on back-office and I can save values). In sur php file Result.php for the research process, I want to add this attribute as a filter. how ...
1
vote
1answer
45 views

How to get custom product attribute values in magento 2 jquery?

I want to get custom product attribute ('deliverytime') values for checkout config in jquery Here is the code for getting default product attributes jquery date-block.js function ...
0
votes
1answer
21 views

how to create new backend_type like int ,decimal,datetime?

I have seen Magento enterprise reward points module created new backend_type integer for following fields in eav_attribute table. reward_points_balance_refunded,reward_salesrule_points. How we can ...
0
votes
0answers
74 views

How can I show Customer & Address attribute based on store Magento 2

I have Two websites I need to show a custom attribute only in one websites and not on the other, How can I achieve?
1
vote
0answers
30 views

Magento 1.9.2. - Save the attribute of the customer_account table in the form customer_address

On the customer address change page I am trying to add fields for some custom attributes that I have created and inserted into the customer_account table. After several tests I saw that in the edit....
0
votes
0answers
12 views

Should categories or attributes be used to drive cart rules

Forgive the potentially dumb question but I'm new to magento and I have some fairly complex cart rules needed. I'm not sure if categories or product attributes (or something else I'm unfamiliar with) ...
1
vote
2answers
30 views

Get product only with attributes used in product listing in a test

In my test I am creating a product like this: $product = $this->objectManagerHelper->create('Magento\Catalog\Model\Product'); $product ->setId(1) ->setTypeId(Product\Type::...
0
votes
1answer
22 views

There is a problem that only No is returned even if Yes / No is set for Catalog Input Type for Store Owner in Attribute Properties

The selectable products and simplified products were saved with Yes. No was output when acquiring the corresponding attribute code on the front end. The following is the code written when getting ...
0
votes
0answers
17 views

How to set values to “Manage Swatch(Values of Your Attribute)” section of swatch text attribute programmatically?

I have created a swatch text attribute. But the values are not getting saved properly. How to set values to the section "Manage Swatch(Values of Your Attribute)".
1
vote
0answers
10 views

Migrating from M1 to M2: need to / want to rename multiple attributes

in our mission to migrate from M1 to M2 we need / want to rename attributes that we have named say 7 years ago. So product attribute 'manufacturer' would become 'brand' and product attribute '...
1
vote
1answer
81 views

SQL Query for custom attribute

I have create custom attribute in product upc I want custom query (sql) to get SKUs and UPCs Can anyone tell me the related tables from where I can get data, or if anyone can share query that would ...