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 [custom-attributes]

Denotes questions regarding Magento custom attributes

3
votes
0answers
191 views

Upload custom images dynamically from product edit page magento 2

I want to create custom image swatches for custom option. There is functionality in magento 1 please check this video. https://www.youtube.com/watch?v=tUvVjvgbJzI I want to develop similar ...
3
votes
0answers
207 views

Add Custom Attribute to Credit Memo and Show it at Grid

In credit memo grid there are some column originally defined I want to add new column, by adding custom attribute with datetime type to credit memo, is there a way to add this custom attribute to ...
3
votes
0answers
101 views

Unrelated attribute error The value of attribute “unrelated” must be set

Preconditions Magento 2.1.4 CenOS 6.9, MySQL 5.6.35, PHP 7.0.17, Apache 2.4.25 Steps to reproduce Go to Products - Add Product - Grouped Product - and create a product based on an attribute set you ...
3
votes
0answers
245 views

How can I remove a custom attribute from a product via REST?

I can add or change a custom attribute of a product, i.e. via curl -X PUT --header "Content-Type: application/json" \ --header "Accept: application/json" \ --header "Authorization: Bearer MYTOKEN" -d ...
2
votes
0answers
30 views

Magento 2 Save custom customer address attribute in customer edit form using extension attributes

I want to save custom customer address attribute in Customer Edit Form under My Account section. I have created an attribute using Setup script and save that attribute using extension attributes. ...
2
votes
0answers
62 views

Magento: 2 Broken image in wysiwyg after overriding the file

I have override the file vendor/magento/module-customer/Model/Indexer/Source.php in this path Magenticians\Moduleproduct\Model\Indexer\Source.php just adding one function public function ...
2
votes
0answers
122 views

Magento 2: Show/Hide product attribute based on other attribute value

I created two custom attributes for product. One attribute is of type drop down and other attribute is of type multi select. I want to hide multi select type attribute when drop down attribute is ...
2
votes
0answers
211 views

What is the distinction between defining a customer attribute as “system” versus not “user defined”?

General Context When adding custom attributes to EAV-storage data types such as customers and customer_addresses, two seemingly redundant configuration values are allowed to be passed in: // File: ...
2
votes
0answers
38 views

How add Text area field to Cart Page and pass data to checkout pages

I want to add textarea to collect comment in cart page and then want to pass it data to checkout page and save it with order. How can I do it and how to add and pass. thanks,
2
votes
0answers
318 views

Magento 2 Enterprise edition, get all custom attributes of product in the observer

My store has many GroupProduct and each one has many virtual products. This virtual products have custom attributes and some are required and some aren't. [MyModule]/Setup/InstallData.php $eavSetup-&...
2
votes
0answers
158 views

Magento Order Export with custom attribute Magento 1.9.2

Currently the order export dump only provides Order # Purchased On Bill to Name Ship to Name G.T. (Base) G.T. (Purchased) Status We need to add to this, Invoice Number, SKU, HSN ...
2
votes
0answers
200 views

Adding custom attributes to states and a dropdown to cities

I would like to change the way the users enter addresses, and I have several doubts about the best way to do it. First, I need to add a drop down for states/provinces to other countries, for what I'...
2
votes
0answers
480 views

Getting Custom Product Attribute Value via objectManager in Magento 2

I have a custom template where I would like to get custom product attribute value, in my particular case is a yes/no attribute type. This has troubled me for quite a while as I can get all default ...
2
votes
0answers
2k views

How to add multi select Custom Attribute Options Programatically

I am working on to create custom attribute, While creating the attribute i need to add multiselect custom attribute option via code. $eavSetup->addAttribute( \Magento\Catalog\...
2
votes
0answers
103 views

How to access custom attribute added to a product?

I have added a custom attribute "flag" to the product. But when I try to access the data using $product->getData('flag');. Its returning null. I find some way to load custom attribute in the ...
1
vote
0answers
10 views

Filter a custom attribute in Order Grid

I added new attribute and new column to Order Grid : [vendor]\[module]\view\adminhtml\ui_component\sales_order_grid.xml <?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www....
1
vote
0answers
16 views

Magento2 How to add custom attribute to billing information of order rest api response

I want to add a custom attribute to the billing information section of order rest API response instead of showing in extension attribute section. please anyone can help me in this. Thanks in advance
1
vote
0answers
25 views

How to add new custom field in checkout/shipping page and save it in db in Magento2.2.5?

I want to add new custom field in checkout/shipping and want to save them in the following tables in Magento 2.2.5: sales_order sales_order_address sales_order_grid I have referred this link https://...
1
vote
0answers
41 views

Magento 2 : Custom attribute create with “Use default value” checkbox and that functionality

I created custom attribute under custom eav_entity_type. Attribute was created successfully and display also in admin. But, it's not display "Use default value" checkbox when, I switch to other store....
1
vote
0answers
26 views

How to add attribute advance properties in magento 2.2.7

How to add attribute for product attribute advance properties in magento 2.2.7 I want to implement yes/no attribute for product and second attribute for image attribute for Product Attribute
1
vote
0answers
27 views

Magento 2 : How to keep the custom form fields filled in case of validation error Magento 2

How to keep the custom form field filled values in registration page. created one customer custom attribute from magento admin (input text field accountnumber). showing this attribute in frontend, ...
1
vote
0answers
79 views

Export csv Not working for the custom attributes customer grid Magento2

Below showing code is my customer_listing.xml, export csv not working when selected checkbox's export from grid. <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
0answers
31 views

Migrated custom attributes fail

With our migrated M2 shops the custom attributed were migrated. But now the problem is that we must make a choice between 2 options. The attribute is in mysql a varchar but then we can't change the ...
1
vote
0answers
42 views

Auto Add Product Attribute Options when Creating a new Product by Rest API

Is there a way to tell Magento 2 to: Send custom_attribute Label instead of Value; Auto create option in case the Label doesn't exist yet. I was able to do it with Magento 1 API, but I can't find a ...
1
vote
0answers
36 views

Add attribute link in admin panel is showing as page isnt working!

When we try to create an additional attribute from the admin panel,it shows the following error: This page isn’t working restaurantware.local is currently unable to handle this request. HTTP ERROR 500
1
vote
0answers
215 views

Special characters are not working to get option id of an attribute in Magento 2

I am using Magento 2 for my eCommerce website.I am trying to get option id from option text(i.e. D & G).Somehow I am getting option id for normal option text (i.e. Sample) but when it comes to ...
1
vote
0answers
192 views

Magento 2: How to add custom attribute in an admin field?

I created a new field using the file system.xml, but I need to add a custom attribute, for example, data-mycustomattr="true". You can see an example on this image below, the console shows a custom ...
1
vote
0answers
313 views

Magento 2 : custom image role apply in multiple images

I created one custom image role from admin side. It's working perfect. But, I want to set that custom image role in multlple images. I read this git issue but I didn't found any source to apply this ...
1
vote
0answers
331 views

Magento2 add unique attribute value programmatically

I'm trying to insert a value for a unique text value attribute programmatically to asign it to a product. All my others attributes have options so I can't use the same functions. If I try to insert ...
1
vote
0answers
59 views

How to import custom address attribute?

I added this code to my InstallData script: $eavSetup->removeAttribute('customer_address', 'erp_address_system_id'); $eavSetup->addAttribute( 'customer_address', '...
1
vote
0answers
44 views

How to use customer attribute for the not logged in customer (Guest Customer)?

Is there any why with which we can use customer attribute for the guest customer. Like I have a news letter with which I am getting subscriber Email, Name, D.O.B., Country, but the thing is all this ...
1
vote
0answers
72 views

Magento 2.1: How to add product custom attribute to order confirmation email?

How can we add product custom attribute in new order email ? For example custom product attribute my_sku
1
vote
0answers
355 views

Value index is not specified for an option - Magento 2 API

I'm getting the error at below, when i try to set the configurable attribute, to create configurable product via Magento 2 API: as described in: http://devdocs.magento.com/guides/v2.2/rest/tutorials/...
1
vote
0answers
356 views

Magento 2: address custom attribute, from Order entity to Account entity

I've added a custom attribute to checkout: added column in 'quote' and 'sales_oreder' tables plugin for Magento\Checkout\Block\Checkout\LayoutProcessor plugin for Magento\Checkout\Model\...
1
vote
0answers
16 views

How to store a custom attr to order when you hit “Place order” button in magento 1.9

I am looking for a solution with my magento order sales problem. I added to order a attribute which one I want to set on event sales_order_place_after. Attribute is added and seted correctly. When I ...
1
vote
0answers
17 views

Add product manual search

I need to add an option for searching product manuals. I have some pdf files as manuals which stored in folder named as it's manufacturer. Ex: manufacturer is ABC and manuals are abc-prmanu1.pdf, abc-...
1
vote
0answers
44 views

Add a Filter for an Attribute in Admin

I'm trying to create a filter for one of my product attributes that will consist of several dropdown menus. An example of the attribute is given below: I want to have dropdowns for year, make, and ...
1
vote
0answers
869 views

custom product attribute not saving

mysql> drop database magento2; $ cd /var/www/html/bin/ $ ./magento setup:install --admin-firstname FN --admin-lastname LN --admin-email 'email@example.com' --admin-user admin --admin-password '...
1
vote
0answers
151 views

M2 attribute handling, import , custom attributes

currently i use import/export for creating configurable products automatically. this is also quite a buch of work , because attributes aren't imported like in 1x. The optional attributes section in ...
1
vote
0answers
90 views

Add custom attribute in order email

I have made in my order email a notifacition when the product is out of stock and is backordered. Now I have created two custom attributes for location of an spare part etc. They are named ...
1
vote
0answers
148 views

Save customer custom attribute image in backend

When I am save customer custom attribute image from frontend, it should be save in location but not shown in frontend. It shows the broken URL $session = Mage::getSingleton('core/session'); $...
1
vote
0answers
207 views

City drop-down at checkout magento2

I'm working with magento2,i want custom field drop down city with dynamic data for checkout page in magento2.
1
vote
0answers
41 views

How to create custom attribute for products without using eav attribute table?

I have different price for products based on cities say for example Pune = 100 Mumbai = 120 Bangalore = 140. I planned to create a custom table in that fields will be id, ...
1
vote
0answers
170 views

Get custom attribute in category loop?

I'm trying to get my custom 'category_short_description' to appear within my loop but struggling to get this to appear. Anyone know how I can get this to display? Product name is displaying but short ...
1
vote
0answers
515 views

Magento 2 API - Update Product Custom Attribute to Blank/Null

I am trying to update a product via the Magento 2 Rest API. If an attribute already has a value I can update that value with another value with no problems. However if I want to delete the value and ...
1
vote
0answers
571 views

magento 2 custom product attribute won't save

I am writing a Magento 2 module - am trying to get it to add a custom attribute to every product. My Setup>InstallData.php file is successfully adding the attribute to the eav_attribute table when ...
1
vote
0answers
1k views

How to add dynamically custom attributes to quote and order in magento 2?

I'm developing an extension which requires adding fields to quote (and later to order as well) dynamically. Should I make two extra tables in the database, one for quote and second one for order, or ...
1
vote
0answers
867 views

Magento 2 : Custom Category Attribute not Showing in Admin

I am using magento 2.1.3. I have created customer group as a custom attribute while creating category. On my localhost its showing textfield to enter customer group. But on server its not showing text ...
1
vote
0answers
238 views

Magento 2 add order data to custom field

I have added an extra field in the sales_order_item table. How can I add order data from a custom attribute of a product into this extra field when an order is placed? which file should I change? Code ...
1
vote
0answers
367 views

Unable to save Created attribute

When trying to create and save a new Attribute set. I am presented with a message saying "ATTENTION Sorry, we're unable to complete this request." when trying to save. Preconditions: Magento CE 2.1....