Stack Exchange Network

Stack Exchange network consists of 174 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

0
votes
1answer
14 views

“Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with id = 4 ” in magento 2

While tried to open products via admin end, it throws below error, 1 exception(s): Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with id = 4 Exception #0 (Magento\...
0
votes
2answers
23 views

Magento 2.2.3 - Add custom required validation for company

I want to add validation only for billing address on the checkout page. By default in the backend, the company name is optional. But if when I go to the checkout page and click on the Place Order ...
0
votes
0answers
18 views

Link attributes to attributes set

I'm new in magento2 and I need your help. In my InstallData.php, I created lot of product attributes with the following script : $eavSetup->addAttribute( \Magento\Catalog\Model\Product::...
0
votes
0answers
11 views

Custom Customer Attributes not showing in user account - Magento 2

I have created 3 custom customer attributes. So far I have them saving and displaying correctly in the account creation page and for the admin in the backend. In the users account on the frontend ...
1
vote
0answers
12 views

Magento 1.9.2. - (Configurable) Sort collection of associated products by attribute value position

I tried with multiple codes to try and sort the collection of associated products based on the position of the attribute value but without success. With my foreach in the product page I have pulled ...
1
vote
0answers
30 views

Magento 1: Add custom attribute in transactional e-mail

In transactional mail, I need to add a custom attribute. I modified the below files app/design/frontend/base/default/template/email/order/items/order/default.phtml app/design/frontend/base/default/...
1
vote
0answers
34 views

Dropdown first value is empty in select attribute magento 2

I am getting dropdown custom attribute option values from database in foreach loop.But it show the very first value empty in select option.How i can skip this first empty value. <?php //FOR ...
1
vote
3answers
88 views

Magento 2.2.3 How to check if attribute exist in current product?

I want to check if attribute exist in current product by attribute code. For Ex: attribute code if color and this attribute is assign to current product. but if i pass something else like abcde and ...
1
vote
1answer
18 views

Unassigned Attributes from an attribute set Magento 1

How Can I unnasigned an attribute from an attribute set without deleting it, in case I need to assign it back. I use Magento 1.9
1
vote
1answer
10 views

Custom Attribute Not Disabled on Bulk Update Attributes

I have a custom attribute named container that is a select field. When I use Update Attributes to update multiple products at once this container attribute is always enabled even though I haven't ...
1
vote
1answer
41 views

How to get products filtering by category and attributes?

I have searched about how to filter and I have tested about 20 codes but always return "". The situation is the following: - For the current category, I have 8 attributes, 7 are multiselect checkbox ...
0
votes
0answers
16 views

how can i sort by using option value not option id value in listing page magento 2?

I have created a custom dropdown attribute and set in sort by dropdown listing page, now currently magento 2 sort by using option id like "name="option[value][139][0]" but i want to sort using option ...
0
votes
2answers
41 views

Change order of configuration options in customer product view

I have configurable products with many attributes like size and color in v2.2.7. They are listed in the admin area and in Stores > Attributes > Attribute Set > Default. The order currently is "Size", ...
1
vote
2answers
36 views

Magento 2 - The right way to get a product attribute value

I'm wondering if there's a right way to get the value of a product attribute, in a generic way. EDIT: Or whatever I can use to get the info from a dropdown or text field using the same mechanism I ...
0
votes
0answers
15 views

Custom attribute value not displayed in 'Order Total Report' magento 2 admin grid

I want to add new columns 'ID' & 'Affiliate ID' to 'Order Total Report' admin grid (REPORTS > Customers > Order Total). I am able to add these 2 columns, but only customers Id's are getting ...
0
votes
0answers
19 views

Magento 2 - Dynamically hide empty categories based on attribute selected in a cookie

I'm trying to hide empty categories based on an attribute selected previously. Basically I have a vehicle parts website and a customer can choose a vehicle model and I've changed the products ...
0
votes
1answer
26 views

adding custom attribute to category

I'm trying to add a new custom image attribute for category, following the guide here "https://webkul.com/blog/add-custom-image-attribute-category-magento-2/comment-page-1/#comment-16835" However, ...
0
votes
2answers
62 views

Magento 2 - How to display a programmatically created attribute under SKU on the frontend?

I have created a custom module, which creating an product attribute, now I need to display this attribute on the frontend, right under product SKU How I can I do this? Thanks everyone!
0
votes
0answers
18 views

Magento 2.2.4 Attribute “manufacturer” only showing in simple product, not in other product types

I've created attribute manufacturer. It only shows when I add simple product, but when I whant to add other type of product, attribute is not showing.
0
votes
0answers
18 views

Category Date component showing wrong value

I have created a DateTime category attribute schedule_start, I have also created a bakend model for this attribute and before saving attribute value I am formatting the date time value as per the ...
0
votes
1answer
24 views

How to display attribute swatch image in listing page in Magento 2

I am using Magento 2.2.2 I have created one attribute "Manufacturer". Input type of this attribute is visual swatch. I have added values with swatch images in this attribute. I have selected ...
0
votes
0answers
18 views

Proper way to set default available options for custom Customer EAV attribute?

I have this basic class that I use in my UpgradeData script class Industry extends AbstractSource { /** * Retrieve All options * * @return array[] */ public function ...
0
votes
0answers
15 views

Grouped products, attributes changes on save not visible in frontend. - ver. 1.9

I have a strange behavior in ver. 1.9.3.9 with atributes and grouped products. Steps to reproduce: Choose a single product which is part of GROUPED PRODUCT. Change desired attribute value (it's a ...
0
votes
0answers
18 views

Open a popup with form on click of link/button on customer edit form at back end Magento 2

I want to add one link/button on customer edit form in admin side in General group. when clicking on that button/link we need to open a popup and show a form with all the admin users with a specific ...
-1
votes
0answers
15 views

Attribute Image Mgento2

How to get the image attribute in Magento2 $layer = $layerResolver->get(); $layer->setCurrentCategory($category); $filters = $filterList->getFilters($layer); $finalFilters = []; ...
-1
votes
1answer
18 views

How to display created dynamic attibute into the customer array?

We already created dynamic attribute and that attribute display on the admin side Account information tab of admin. But when we need to add some value on that feild at that time we find that, that ...
0
votes
1answer
25 views

Magento 2.2.6 - Attributes Issue with Store View and product created by REST

I have a product created in M2 and I create a new product attributes, and when we make an update with c# app using REST Call. In this case the new added attributes are empty in edit product page with ...
0
votes
1answer
20 views

Need to remove a product page statement

There is a statement that needs to be removed from all products that are in 1 attribute set. It is not located in the short description but is located just below. Thoughts on where I might find and ...
0
votes
0answers
27 views

Error on reindex Magento 2

I recently made a massive load of products. After this, it's happening the following error: bitnami@ip-172-31-24-128:~/apps/magento/htdocs$ php bin/magento indexer:reindex Customer Grid index has ...
0
votes
2answers
28 views

Change attribute value on Associated Products if change on Configurable product

I have a custom attribute who have two options Yes and No. I want if changing attribute value on Configurable Product also change in Associated Products.
0
votes
0answers
26 views

Magento2: I want to add layered navigation filter on category page

I have already added a layered navigation filter extension. But I want to add a new attribute filter to my extension. I have a dimension attribute. I want to filter on dimension attribute like the ...
2
votes
2answers
37 views

Get product, with 0 quantity, by attribute (sku)

I'm importing products and I want to get product by its sku. This is the code: $product = $this->productFactory->create(); $record = $product->loadByAttribute('sku', '1234'); It works but ...
0
votes
0answers
12 views

'Select Configurable Attributes section' screen does not appear when creating a new simple product

I've attached the attribute size to the attribute set clothing. However, when I want to create a new simple product, after Create product setting screen, I don't get the Select configurable Attributes ...
1
vote
0answers
44 views

Eav attribute type int which input to use

I am currently creating some product attributes and some of them should be of type integer but Magento doesn't offer any input type for integer values. If I use 'input' => 'text' it seems that ...
0
votes
0answers
11 views

Attribute Sets: pros & cons of using a few broad ones vs many specific ones?

Is it better to have a small number of very general Attribute Sets or a large number of very detailed Attribute Sets? Why? Obviously it depends on a lot of factors (eg: the number of products, how ...
3
votes
2answers
64 views

Which entity allows scoped attributes?

/vendor/magento/module-eav/Model/Entity/Attribute/ScopedAttributeInterface.php There are 3 defined scopes /** * @api * @since 100.0.2 */ interface ScopedAttributeInterface { const ...
0
votes
0answers
17 views

Magento 1.9.2. - Set Order by position attribute value of associated products

I'm trying to order my foreach for the products associated with the configurable product. I would like the values ​​to be printed in ascending order by position relative to the size attribute. At the ...
0
votes
0answers
21 views

Configurable products options value - Magento 2.2.7

When the attribute used in configurable products is of backend type TEXT or VARCHAR the options values are not shown on CART / CHECKOUT / MINICART. Backend and order summary works as expected. If ...
0
votes
0answers
12 views

Reload swatches not showing in frontend

My swatch attributes are not showing after i reload my div. <div class="quotation-body"> <ul data-index="<?php echo $step; ?>" class="option option-list"> <?...
0
votes
0answers
8 views

Magento 1.9.2. - foreach remove duplicate from options attribute value

I'm pulling out all the values ​​of the color attribute of the products associated with the product configurable with this foreach. foreach($simple_collection as $simple_product){ echo $...
0
votes
0answers
19 views

How do I add a custom attribute in amount/default.phtml?

I need to add in a couple of statements using some custom attributes for the Pricing. I am trying to figure out how to allow this to work. Right now I have this: <?php $helper = $this->...
0
votes
0answers
10 views

Magento 1.9.2. - Counter attribute color incorrect after import

Summing up after importing the configurable products the counter of color and size filter (which are the attributes that make up the configurable products) is not updated, even with a new reindex. It ...
0
votes
0answers
19 views

Unable to get custom customer Address attribute value to customer grid

I've created custom customer address attribute through admin panel. Attribute value is inserting in customer_address_entity_int table. I'm able to see custom attribute in grid options but attribute ...
0
votes
0answers
15 views

Create Attribute for Unit Price to use in Shopping Cart Price Rules

I'm trying to create Cart Item attribute to target the Unit Price of a product to use for Shopping Cart Price Rules. Can someone please guide me in the process of achieving this if at all possible?
0
votes
1answer
16 views

Simple product with attributes(Color and Size)

Can we make a simple product with attributes(Colors and size) for rental product cause I want to show attributes in simple product?
0
votes
0answers
42 views

Magento 2 - Layered navigation Parent and Child Category Filter issue

I am using WeltPixel layered navigation Free extension. In category filter, third level categories was not showing in filter navigation by default. I added some code to get third level categories. ...
0
votes
0answers
14 views

Customize Filter in layered Navigation

Hello, How can we achieve below? if a customer selects options from layered navigation (Magento vers. 2.3) and then goes to a product page, and then back to the category/search view, all of their ...
0
votes
0answers
74 views

Unique constraint violation found magento 2

I got this error when trying to add a new attribute for product can any one explain to me this error and how to fix it thanks in advance
0
votes
1answer
58 views

Magento 2 plugin change price of products that have a custom attribute with

I'm trying to change the prices of products with a plugin. And it works, basically. The problem is this: i only need to change the price of products that have a specific attribute, not the price of ...
0
votes
1answer
28 views

Magento 1.9.2. - Get Admin value of attribute option in frontend

I'm trying to recall in my configurable product the value of the 'color' attribute of the products associated with the foreach method: foreach($simple_collection as $simple_product){ echo "$...