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

2
votes
2answers
35 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
23 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
72 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
0answers
11 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
14 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
32 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
23 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\...
0
votes
1answer
22 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
28 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
39 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
60 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
13 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
51 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 ...
1
vote
1answer
45 views

Update custom data for customer

I'm trying to Create new customer attribute "last_login_at" to store customer last login date time. My requirement is to update "last_login_at" data for the customer after the customer logged in. I ...
4
votes
0answers
113 views

Magento2 : How to add row/pattern type of customer attribute

How to add a row/pattern type of custom customer attribute (dynamic rows). We have the below attribute in Magento 1, we need to achieve the same in Magento 2. I don't find any code reference for this,...
1
vote
1answer
18 views

Add Order attribute to New Order Email

How do I add the value of an order attribute to the New Order Email template. Specifically an attribute called delivery_date stored in sales_order_grid. I tried to reverse engineer how {{var order....
2
votes
1answer
27 views

Magento 2 :Sort Attributes Alphabetically in layered Navigation

I want to sort the attributes in layered navigation in the alphabetical order. http://i.prntscr.com/zDuYTVDbSWqv_507ew0JbQ.png Sort in the order as:Climate, Color, ... I tried to override the ...
0
votes
1answer
20 views

Get Product Attribute into Order Confirmation Email

I'm currently attempting to override the following file in order to add the color attribute to the Order Confirmation Email: vendor/magento/module-sales/view/frontend/templates/email/items/order/...
0
votes
0answers
31 views

Want to add a small popup box on the product page

Want to add a small popup box mentioning a small description of the particular brand. Like for example on every product page, we have a brand attribute, so whenever someone hovers on the brand name or ...
2
votes
0answers
30 views

Product dimensions visible on product configuration page

How to get these attributes visible on product configuration page? ts_dimensions_height ts_dimensions_length ts_dimensions_width I already added them to my attribute-set, set 'Visible' ...
1
vote
0answers
29 views

Add customer attributes to Magento shopping cart rules

I have customer attributes added using a module and I need to add add them to Promotions, especially for Shopping Cart Price Rules. I found this tutorial, but looks like I'm doing something wrong, ...
4
votes
0answers
23 views

Magento 2.2.7 error when using bulk attribute update when item is enabled

When trying to use the bulk update attributes I get the following error: Exception message: Required parameter 'theme_dir' was not passed I've been chasing this error for the last 2 weeks. At ...
1
vote
1answer
29 views

Magento 2 how to add product dimensions using rest api

I can add simple products to Magento 2 just fine and adding the weight is no problem at all I do the following: $data = '{ "product": { "sku": "' . $row["item_number"] . '", "name": "' . ...
3
votes
1answer
66 views

Attribute filter with checkboxes , Magento2

Has an product attribute filter with checkboxes by default for category view ? For example
1
vote
0answers
23 views

how to save values to magento customer module default stored attributes in magento2? [closed]

I have created new filed in Magento 2 registration form I want to save the values to default stored attributes (if Zip code => default in Magento 2 attributes) How to pass the values to that ...
2
votes
0answers
29 views

Manage Brands / Manufacturers in admin. Show brand logo and story in Product Page

I am looking for a best practice to show content about the manufacturer/brand on a product page. For example brand logo and story/description. This could be achieved just by importing the description ...
0
votes
1answer
19 views

Magento 2 How to create a address custom attribute and show them in admin, checkout and account address box

I want to create a custom address attribute, I need them visible in all the following places. Admin Addresses. My Account Address Box Checkout address and forms. How can I implement to have them on ...
1
vote
1answer
60 views

Import Product Dimensions (Length, Width, Height) in Magento 2

I am trying to import dimension data to a Magento 2.2.6 store. The Magento attributes are present on the product, but I cannot figure out how to import to these fields. I have tried length and ...
1
vote
0answers
28 views

Magento 2.3 Layered Navigation Returns all Products, unfiltered

I have set up a store with demo products, installed the Porto, which uses MagePlaza layered navigation. However, when I use the layered navigation to filter the products down, it always returns all ...
1
vote
1answer
69 views

How this InstallData works each line in Magento 2?

My questions: I want know how this works by each and every line of code I want to add new attribute here Difference between InstallData and InstallSchema Here is InstallData.php <?php ...
2
votes
1answer
19 views

Can an Attribute be used more than once in an attribute set?

How to reuse an attribute in the same set? I have a product that has multiple items and I'd like to use "description" (attribute) several times.
1
vote
0answers
48 views

Magento 2.2.6 How to UPDATE attribute (Mass Action), don't REPLACE attribute that already exist?

All it is in the title of the topic. I want to update product that already exist with different attributes. it's impossible to me to add a bulk operation because when I use the product update of ...
1
vote
1answer
39 views

How to filter duplicate values in magento array?

I am trying to get attribute option values for specific products. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $baseUrl = $objectManager->get('Magento\...
2
votes
0answers
19 views

Magento hierarchical attributes

Does anyone know how to make product attributes visible only when they exist? Ex. you have a T-shirt, models are Spiderman and Thor (model attribute), and available on red, blue and green (color ...
3
votes
1answer
33 views

Mageno 2 after programatically removing product attribute group the attributes are no longer visible

(Magento 2.2.6) Hi, normally when you remove attribute group from an attribute set you still see the attributes that belonged to the group under "Unassigned Attributes" section of attribute set edit ...
1
vote
0answers
22 views

Custom attribute address in checkout page

We're experiencing the same problem, even in Magento 2.2.7 version. https://stackoverflow.com/questions/52619136/magento2-save-new-address-attribute-in-checkout Newly added custom attributes are ...
0
votes
0answers
25 views

Magento 2 DropDown Attribute - Get “Admin” label value, not the StoreView value

how can i get the "Admin" label value, not the StoreView value with $_product = $this->getProduct(); $state = $_product->getResource()->getAttribute('m4y_state')->getFrontend()-&...
0
votes
1answer
49 views

Multiselect attribute not showing on frontend when two or more options selected

I have a custom product attribute that uses a multiselect input to select one or more product stockists. The data is being stored correctly, and selecting 1 option adds the information to the "More ...