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

Magento Entity Attributes

0
votes
0answers
7 views

Display some colunms in the grid customer according to group

i have created a new menu so that when clicking on all customer i have two sub menu : local and export and i want to have in the local grid the list of customers that belong to group 1 and in the ...
0
votes
1answer
20 views

$attribute_string = $this->product->getResource()->getAttribute('attribute_code') returns null

why the following code: $attribute_string = $this->product->getResource()->getAttribute('attribute_code'); gives me null although the attribute exist. and following code: $...
0
votes
0answers
12 views

stop defaults setting on size and colour attributes when i import products

i have one attribute set and i import all my products in CSV yet both size and color always select a default if i havent selected anything in the CSV. I cannot find a way to disable the default ...
0
votes
1answer
19 views

Magento 2.2: How to add a custom attribute in to Order?

I have created a custom attribute of type customer_address and I would like to have the API to return me the value as an attribute when I call the API to receive an order. Attribute: private ...
0
votes
0answers
10 views

Magento 1.9.2 - Set Position Order when i call getAllIds() for an attribute options

I tried to sort all the options of a specific attribute after calling the getAllIds() function. The error that brings me back is: setPositionOrder () can not call in array. I also tried to insert ...
0
votes
0answers
30 views

Magento 2 how to hide attribute at Layered navigation?

I would like to hide some attributes at left layered navigation based on the category & category's filters ? Can any one suggest how to achieve this in Magento 2? For Example: Travel is an ...
1
vote
1answer
67 views

How to add multi-select category tree at admin end in magento 2?

I would like to display *Category Tree Names** in multi select field in magento 2 admin end? I have tried with below code but displaying only first cateogires could you please any one help on this? ...
2
votes
1answer
19 views

Get attibute label option for current store

I have a 'size' attribute with lot of option. For each option, I have translation for each my stores : I want to get the translation label for a product and for a given store. So : I load my ...
0
votes
0answers
21 views

How to make test on custom attributes magento 2

I created 2 custom attributes: Web site That must be valid(exp: domaine.com or http://...) Personal contact That must be just letter without number or special characters. How to make the ...
0
votes
1answer
17 views

Retrieve all the products attribute using rest api

I am new to magento2 and learning using rest API of magento2. I want all products to attribute that is present in the database. I searched in the database and I found that the table eav_attribute ...
0
votes
0answers
28 views

Magento 2 - Custom Customer attribute in order create select customer grid

I am trying to add a custom column in sales create order customer grid. When admin trying to place order from back end ,after create order button click we get a customer grid . I have added a new ...
0
votes
1answer
15 views

Magento 2 - Add Size Chart issue

I try to add Size Chart block on product view page in Magento 2. I add this code in catalog_product_view.xml <referenceContainer name="product.info.main"> <block class="Magento\Catalog\...
0
votes
0answers
15 views

Truncation of Special Characters

I'm using Magento ver. 2.2.6. Server database: MariaDB 10.3.10 OS: Ubuntu 18.04 LTS From my Admin Panel, I go to "Stores > Attributes > Product". I add a new attribute, and under the option "...
0
votes
1answer
19 views

How to hide the Price attribute in Magento 2?

I was able to hide the price on the frontend but I am unable to hide the attribute. Under the Attribute set the price attribute is locked. I can hide it with CSS but is that the proper way ? Thanks ...
0
votes
1answer
23 views

Magento 1.9 - Foreach for sum values is not correct

I recollect the question because I explained myself badly in the previous one. I have 40 clients in my Magento and I have created a custom attribute (input text) called attribute2. Only 3 customers ...
0
votes
1answer
20 views

Trying to get filterable attributes of product collection

I am trying to get filterable attributes of product collection after applying filter to it programmatically. same as layered navigation idea after I apply filter to category, it just return ...
0
votes
0answers
19 views

Cannot get attribute after adding it programmatically

Very often I can't get attribute in my own console command using $this->attributeRepository->get(\Magento\Catalog\Model\Product::ENTITY, $attributeCode); after adding attribute using $eavSetup-&...
0
votes
2answers
43 views

Usage of {{block type=“bla/blubb”}} in WYSIWYG backend forms

I want to implement a {{block type="bla/blubb"}} in a newly generated Magento Category Attribute, which is configured as a WYSIWYG field. However, if I put my code into that attribute in the backend,...
0
votes
0answers
22 views

Unselect Attribute “Is Default” - Color

Magento 2.2.6 The attribute 'color' had, for as long as I can remember, no "Is Default" value selected. A few days ago, I add a new color to the color value. Upon saving, there is now a color value ...
1
vote
1answer
37 views

How to sort layered navigation attributes on Alphabetic order

Trying to find a solution for the order of the attributes in layered navigation on the category list page. Now I have to sort them in the attributes from backend, and it is not a good way with many ...
0
votes
1answer
21 views

Attributes error on importing Magento 2 products

Im tryin to import products.csv on my Magento 2.2.6 website, but i receive the below error. 1. Value for 'news_to_date' attribute contains incorrect value in row(s): 1, 2, 3, 8, 18, 19, 20, 21, 22, ...
0
votes
0answers
13 views

Get Custom Attribute value of Child product under grouped products on Magento 2.2

i tried my best but i havent found a solution. I would like to get a custom attribute value of a child product inside a grouped product view. With this code i've been able to get a Text attribute but ...
0
votes
0answers
11 views

Magento 1.9.2. - Join eav customer attributes table with all its values

I have joined the eav / config table to pick up a specific attribute (created with Attribute Manager) connected to the customer id. But now I would like to be able to get all the attributes from that ...
1
vote
0answers
10 views

Magento 2: Disable custom product attribute editing?

I have a custom product attribute called blacklisted, which indicates if a product is currently blacklisted. This is controlled by a cronjob and shouldn't be edited by an admin. It however should be ...
1
vote
3answers
31 views

Backend Only Attribute

So I've setup a 'discontinued' attribute in Magento 2. I plan to use this to set a badge on the product to let customers know if a product is discontinued. I was able to create the attribute and load ...
2
votes
1answer
88 views

Magento 2 configurable product variation dropdown attribute/s want to select automatically, if it has single option?

We have configurable product have some drop down attribute variations. here would like to choose by default when the attribute has single option in the product view page. Can you please give me some ...
0
votes
0answers
12 views

How to Divide Product Qty to Product Custom Attribute Value

My PHP/Magento knowledge is very poor, so any help/direction would be a massive help. Please tell me exact which files i need to edit and whats the root. Using Magento 1.8.1.0 All i want to divide ...
0
votes
0answers
21 views

API catalogProductAttributeOptionManagementV1 return different result than doc

When I'm using catalogProductAttributeOptionManagementV1 API (get All options of attributes), with the URL https://local.dev/rest/V1/products/attributes/color/options, I get this result : [ { ...
0
votes
0answers
23 views

Translate labels of options from attribute

I try to translate my options label for an attribute using installer. I try this code : $attributeId = Mage::getResourceModel('eav/entity_attribute')->getIdByCode('catalog_product', 'my_attribute'...
0
votes
1answer
35 views

Changing attribute type (dropdown to textfield)

I'm wondering if there is a simple way to change an attribute from dropdown to text field? We had a development shop set up our Magento website but they made the fields dropdown and we have entered ...
0
votes
2answers
25 views

Get all dropdown and multi select attrinbutes in system configuration

I have to get all the attributes which have type dropdown or multiselect in system configuration. <field id="test" translate="label" type="multiselect" sortOrder="0" showInDefault="1" ...
0
votes
0answers
21 views

Magento 2 how to check custom product attribute exist for the attribute set?

Hi I have an Product save after observer to implement custom logic while save product at admin end. How to know the custom product attribute is assigned for the attribute set?
0
votes
2answers
41 views

Dislaying certain attributes

I am displaying all of the attributes right next to the product as shown below I am doing it by adding <?php echo $this->getChildHtml('additional')?> to my theme \app\design\frontend\...
1
vote
0answers
23 views

How to implement logic for the copy an attribute value to another attribute based on the attribute sets?

We have some attribute sets like BCDs, Polespears ...etc and respected attributes like bcds_color, polespears_color ..etc would like to copy the value from attribute set based to "ca_color" ...
2
votes
1answer
55 views

Magento 2.2.6: Product collection does not apply the filter

EDIT: I have seen that in magento 2 the ListProduct page is cached, for this reason once loaded it does not enter. Is there any way to modify the query returned by ListProduct? I extend the class: ...
1
vote
1answer
26 views

Magento 2.2.6: I have an error modifying the select collection

I need to modify the query of the orders in the grid of the backend by representative attribute (custom attribute). I get the following error: Item (Magento\Framework\View\Element\UiComponent\...
0
votes
2answers
21 views

Magento 2 Get all attributes option in phtml

I have created an attribute with multiple options I have to get all option of in dropdown. Attribute created: country Options: India, USA, UK below is my code in phmtl file $objectManager = \...
0
votes
0answers
30 views

Save extension attribute on sales_order

I have created an extension attribute, it's a field created in the checkout but when I want to save it sales_order, it still empty. My column exist in my table sales_order. Please find my code : ...
0
votes
0answers
22 views

Upgrade or add customer Attribute in magento 2

How to upgrade or add additional customer attributes in existing module using upgradedata file. Please share step by step steps. Please note that i have already created few customer attributes in ...
0
votes
1answer
35 views

How to remove special characters in a dropdown menu in product view page?

I am using a dropdown attribute but it is displaying special characters. Can you please give me a solution for removing special characters in dropdown menu. Thank you in advance !
0
votes
0answers
9 views

Use a Product Attribute Values for a new custom category attribute

I would like to add a custom dropdown category attribute for categories. This category attribute would actually use existing product attribute values already entered (like colors). I know how to ...
2
votes
0answers
23 views

Cant drag back product Attribute to unassigned attribute in Magento 2.2

Cant drag back product Attribute to unassigned attribute in Magento 2.2 I am not removing a default attribute, its created by me Manufacturer.
3
votes
0answers
32 views

Apply unique images by attribute to each sku magento 2 programmatically

How can I perform this task through a script? I already relate the configurations to the product with this segment $attributeModel = $this->objectManager->create('Magento\ConfigurableProduct\...
0
votes
0answers
21 views

magento2.2 how to translate values for country_of_manufacture

i've faced with issue with country_of_manufacture attribute, which looks like to be system one and not changeable at all, even on db level: basically it's ok, but how to translate country names for ...
1
vote
0answers
39 views

How to show Shop by Color filter on category page Claue theme Magento 2

I am using Magento 2 and facing issue to show Shop by Color filter. I am using Claue theme. I checked for the Use in Layered Navigation option inside Store > Attribites > Product > Color. The option ...
4
votes
2answers
199 views

Magento 2 : Unable to set custom customer attributes programmatically

I have a cron job that runs once a day, that reads a file uploaded to the server, and registers users from that file. The code works fine, but now I added a custom attribute to the customer (lets call ...
3
votes
2answers
187 views

Add custom attribute to customer model - save not working

I need to add a new attribute to the customer model, because I need to save a customer input into the database. I followed the instructions on this answer. app/code/local/Black/Newsletter2Go/etc/...
1
vote
1answer
31 views

Remove attribute from creating a product

How can I remove for example "color" from my creating product page without removing it from the store (just removing it in new product page)
3
votes
0answers
34 views

Custom additional custom address attributes not getting saved

I have created two custom address attribute latitude and longitude in custom address and they are showing fine in backend. However when I am creating a new customer from backend filling some value to ...
2
votes
0answers
27 views

Bulk Ordering a Product with Many Possible Configurations

I am building a website that sells different types of fasteners (nuts, bolts, screws, etc). The issue is that each product has many, many different variations. For instance, a hex head cap screw ...