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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Denotes questions regarding Magento custom attributes

0
votes
0answers
4 views

Magento 2: Get custom attribut formatted as a price

I have a custom attribute, which is configured as a price so, when the shop owner creates a new product he enters for example 90€. Now when I want to display this attribute in the frontend, I try to ...
1
vote
1answer
27 views

Magento 2 - Override title.phtml with custom attribute value

CURRENT STATE: Custom theme installed Title of the product in the product details page displays the product name In backend: Made new custom attribute (brand), put it to default attribute set, ...
0
votes
1answer
12 views

Error: The configuration parameter “formElement” is a required for “costum_attribute” field

I am trying to update a new custom boolean attribute for my products. I made a csv file with "additional attributes" column value like below: disable_purchase=0,product_image_size=Default,sw_featured=...
0
votes
1answer
20 views

New Customer Attribute with UpgradeData

I have used below code in my setup folder to create custom customer attributes, use Magento\Eav\Setup\EavSetup; use Magento\Eav\Setup\EavSetupFactory; use Magento\Framework\Setup\...
4
votes
1answer
34 views

How to get custom product attribute

I added new attribute src/app/code/local/PACK/MODUL/sql/pack_modul_setup/mysql4-upgrade-2.1.6-2.1.7.php : <?php $installer = $this; $installer->startSetup(); $installer->addAttribute('...
0
votes
1answer
25 views

Customer custom attribute not included in collection by default in edit account information

I've created a custom customer attribute "Skype", for more detail you can visit here:- http://nimb.ws/CrM0YF I've displayed & saved(in the backend) successfully this attribute on the ...
1
vote
1answer
32 views

Custom attribute creation in magento 2

While creating custom attribute in magento 2, what is the use of below 'backend' => '', 'frontend' => '' 'class' => '' 'source' => '' $eavSetup->addAttribute( \Magento\...
3
votes
0answers
29 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 ...
1
vote
1answer
18 views

Magento 2 : Is there a way to query products using Custom Attributes in Rest API Call?

I have a custom attribute setup for Books called isbn_13 Now I try to find the products using the isbn_13 values but unable to filter the results based on this. Is there any way to do this? Update: ...
0
votes
0answers
17 views

M 2.2 dropdown attribute in frontend form - populate options with attribute values in .phtml

I have a custom customer select attribute. It works just fine in the backend. Now I need to provide it as a dropdown field in my frontend (customer registration form). How can I add it to the form ...
0
votes
0answers
14 views

How can I make my attributes editable from the catalogue page?

in my catalog page for products, Cost Price, Price, and QTY are editable from the catalog page itself without clicking into it. How can I make some of my other attributes act this way? I'm editing ...
0
votes
0answers
11 views

How to get the LABEL of a custom product attribute value (not id of value) via Magenta 1.9 REST API?

Using the REST API for Magenta 1.x, I already get the ID of a value of a custom attribute when fetching a product. The value is of the type "select". However I also need the label associated with that ...
1
vote
1answer
20 views

Magento2 : Base table or view not found: 1146 Table 'magento_mymodule.catalog_category_entity_textarea' doesn't exist

I have created a custom module to create attribute for categories in Magento 2.2.4. When I run the setup upgrade command then it gave me this error. 1146 Table 'magento_mymodule....
1
vote
0answers
22 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 ...
0
votes
0answers
7 views

Autofill customer address attribute in shipping form magento 2

I am trying to auto-fill Shipping Address form using Plugin. I am able to fill default fields in Shipping form by below-mentioned code but the code is not working for custom address attributes of ...
0
votes
0answers
7 views

Custom source model attribute value in export csv multiselect

Source model class Custom_Cat_Model_Catalog_Product_Attribute_Source_Btype extends Mage_Eav_Model_Entity_Attribute_Source_Abstract { public function getAllOptions() { $...
1
vote
1answer
26 views

Magento 2 - How to add custom values from custom table to product custom attribute?

I want to get the locations from custom_location table values to custom product attribute multi-select box. custom_location values like: 1 - location_1 2 - location_2 3 - location_3 4 - ...
0
votes
2answers
23 views

Custom customer attribute not being created

I have written the following script to create a custom customer attribute in Magento 2.2.3. When I run setup:upgrade magento tells me data was installed but the attribute does not appear in ...
1
vote
0answers
21 views

Custom customer attribute not saving

I have created a custom customer attribute using the following code: <?php namespace MyNamespace\AccountActivated\Setup; use Magento\Eav\Setup\EavSetup; use Magento\Eav\Setup\EavSetupFactory; ...
2
votes
2answers
82 views

Magento 2 how to get custom attribute value in cart page and mini cart

Please help me out on this Magento 2 how to get custom attribute value in cart page and weight in mini cart Thanks in advance.
0
votes
1answer
29 views

How to implement a Customer custom attribute using EAV?

Scenario I'm trying to implement a custom attribute for Magento Customer, that should accept boolean values (True/False, Yes/No...). I'm using Magento CE 2.2.4. This is part of a custom Module ...
0
votes
2answers
32 views

Customer custom attribute value not getting set

I have created a custom attribute for a customer in Magento 2 and when I tried to save the value it gives me an error "Trying to get property of non-object". How can I save the attribute value? Here ...
4
votes
2answers
107 views

Magento 2 | Access custom order attribute

I created an custom attribute for orders: UpgradeSchema.php <?php namespace UO\Mediabase\Setup; use Magento\Framework\Setup\UpgradeSchemaInterface; use Magento\Framework\Setup\...
1
vote
1answer
16 views

Magento 2 | How to print all custom attributes of order?

can you tell me how I can print all custom attributes an order has programatically? Thanks!
0
votes
1answer
23 views

Magento 2 | Add custom attribute for orders

I want every order to have a custom attribute called "Fremdnummer". How can I do that using InstallData? I just know how to add custom customer attributes.
0
votes
1answer
10 views

Magento2 - Add custom attribute in transactional sales e-mail

we are using magento 2.1.9ce. In the ordermails are now (by default shown) the name, sku, qty, price and the size attribute. Now I would like to add a custom attribute to this. The name of the ...
0
votes
0answers
25 views

How to get product's comparable attributes list by product id

I would like to know, the process to get list of comparable attributes of a product with their label/name and their values. i'm using this, but it's not working. $attributes = $objectManager->...
1
vote
3answers
60 views

Get my Attribute in details.phtml file on Product Page

I need to get my Attribute code and it should be printed its values on details.phtml in my theme's template. I have tried below but no luck. $attribute = $_product->getResource()->getAttribute(...
0
votes
0answers
16 views

Unable to display label of Multiselect attribute value in product api in magento 2.1

I will create a module for display attribute value label: Step 1:- create a new module using silk software tool ex:- CompanyName_ModuleName Step 2:- create a new product attribute using install ...
0
votes
1answer
53 views

How to update or rename the attribute code of the attribute in magento 2

How to update the attribute code of the attribute in magento 2. I have refered below link https://stackoverflow.com/questions/5198266/how-do-i-rename-an-attribute-code-in-magento
0
votes
0answers
13 views

How to change the option label of an attribute via programmatically in Magento 2

I need to update the option label for the existing option in colour attribute in Magento 2. Please provide me with a solution. I have tried like below but not working function getExistingOptions($...
3
votes
2answers
62 views

Magento 2 Plugin Not Extending Model - Finally Solved It

I'm trying to use a plugin from the answer on this question Add additional select attributes to grouped product's child collection I would go back and ask the person who answered but I don't ...
1
vote
1answer
21 views

Add more columns and add to basket to the grid in grouped products Magento 2

I'm trying to add more columns, with custom attributes into the frontend product grid in Magento 2.2.4 I've overridden vendor/magento/module-grouped-product/Block/Product/View/Type/grouped.phtml ...
0
votes
0answers
56 views

Displaying custom product attributes to cart and quote / order Magento 2.2.x

I need to be able to show custom attributes that are attached to my simple products in cart and send them through the quote / order. I've followed - Magento 2 - Display Attribute on Cart Page and ...
0
votes
2answers
84 views

How to get the product id based on custom attribute value?

I have custom attribute value in my store. How can I get the product id based on that custom attribute value?
0
votes
0answers
20 views

Add custom field to product quote on Magento 2

I have added some inputs to product form, when user select parameters, they generate string with id at the hidden input. Now I need to send this id to user cart, when product added to cart, and than ...
0
votes
0answers
28 views

Trouble adding customer attributes in Magento 2

I'm trying to add three custom attributes to customer table in Magento 2. I created the file : app/code/local/CustomCustomerAttributes/Customer/etc/config.xml; <?xml version="1.0"?> <...
0
votes
0answers
15 views

Add and Store Custom Attribute at checkout page and stored to database table

I want to add the custom attribute at checkout page (frontend) and want to show that value to backend orders details. I have followed this tutorial it is working with frontend but not showing the ...
2
votes
2answers
308 views

Customer custom attribute not showing in admin form

I successfully add customer custom attribute for magento 2.2.5 like this: $setup->startSetup(); $insertArray = array( 'profile_picture' => array("type" => "varchar", "label" =&...
0
votes
0answers
13 views

There is a problem that “HTML” entered in the value of the Mgento 2.2 attribute is output as plain text

There is a problem that "HTML" entered in the value of the Mgento 2.2 attribute is output as plain text. I am looking for ways to solve it. Backend Frontend
1
vote
1answer
98 views

How to get all the custom attributes and it's description

In Magento 2, How do I get all the attributes and it's description ? Please provide me a solution. Anyone have any script ?
0
votes
1answer
46 views

Customer attribute is not being saved after migration

I have migrate database from Magento 1.9.3.1 to Magento 2.2.3 via data-migration-tool and it went without any errors in proccess. Everythink I need was mograted to new database. But I have noticed ...
0
votes
0answers
57 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 called, it will be data-mycustomattr="true". You can see an example on this image below, the console shows a ...
0
votes
5answers
83 views

For each loop running only once

In the below code, where I am trying to update a custom attribute called branding. The for loop is running only for one iteration and stopping. It is updating only the first product in the list and ...
1
vote
0answers
62 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 ...
0
votes
0answers
9 views

Custom attributes for Address like landmark,locality,address-type etc. is not saved via admin panel.But it works in api

I make a module for creating a custom attribute for an address like landmark, locality,address-type etc. Address updated is working through Rest API, but when edit address through admin panel of ...
0
votes
0answers
39 views

How to export all the attribute and its options in magento 2

I wish to export all the attribute and its options in magento 2 via script. Please provide me a solution, How to export attributes and its options
0
votes
0answers
27 views

Magento 2 - Add admin user to order

I created an external WebApp that communicates via REST API to my Magento instance (Magento version installed is 2.1.13). This WebApp will be used by shop's operators to sell the same shop products to ...
0
votes
0answers
71 views

Magento 2: Custom product attribute is missing from products bulk update

I created a new custom product (boolean) attribute (programmatically). It's now available on product edit page & I can use it on frontend. Now, I when I try to select all product & use the '...
0
votes
1answer
15 views

Add & Retrieve Custom Attribute Data from Attribute Set Collection

I need to add additional information for Magento attribute set, like when i add custom attribute for invoice like this: Mage::app()->setCurrentStore(Mage::getModel('core/store')->load(...