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

Denotes questions regarding Magento custom attributes

0
votes
0answers
26 views

How to display color and size in magento 2

I am using magento 2.2. I've both color and size attribute and I want to display on frontend I tried and colors are showing in left side:
0
votes
1answer
19 views

Create custom attribute in catalog category display setting

We are working to add custom attribute in catalog category display setting. but it not working in my server could you please check code and let us now where i made mistakes. code/Tendersoftware/...
0
votes
1answer
22 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
0answers
25 views

Magento 2 order REST Api append Custom Attribute

I want to get Custom Attribute value which is already saved in database table, i just want to append it to my Sales order REST APi, i have tried adding extension attribute , i am able to get set and ...
0
votes
1answer
19 views

Magento 2 hide customer fields based on url parameter

I have a custom url parameter in the admin create new account page which goes like this : mysite.com/admin/customer/index/new/addcompany/1/key/ea3f0bcad39...... where addcompany is the parameter ...
0
votes
0answers
36 views

In Magento 2.2.5 The Custom attributes values are not coming in Collection

In Magento 2.2.5, I am creating a Custom Product and Customer attributes. It is saving fine, but while retrieving, It is not coming in the Collection. Here is my Code. UpgradeData.php $eavSetup = $...
0
votes
1answer
13 views

Displaying custom attribute made add to cart and short descrption hide on product view page

I was trying to display a custom attribute to product view page and overwrote the base file with child theme but after that only the custom attribute is showing and rest has disappeared i.e add to ...
0
votes
0answers
17 views

Magento2: Shipping method shows based on customer group

How can I show shipping method based on customer group. I created custom attributive for named retailer_status, (Approve, Reject). Please let me know if anyone has any idea. Like I have enabled Two ...
1
vote
0answers
20 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
2
votes
1answer
21 views

visibility attribute value is not rendering from product collection in magento 2

We need to display the visibility of the product in category page, but currently we are not able to fetch its value from product object. We tried with $_attributeLabel = $_product->getResource()-&...
2
votes
1answer
27 views

Magento 2 How to hide products from entire shop based on custom attribute value

Is there any way by custom code or plugin, products can be hide from entire frontend shop based on custom attribute type yes or no ?
1
vote
0answers
18 views

Magento: 2 Broken image in wysiwyg after overriding the blog

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 ...
4
votes
2answers
173 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 ...
2
votes
2answers
38 views

Customer custom attribute not being saved

I'm using magento v2.5 and i tried to create customer programmatically from frontend and backend, i share the same code between frontend and backend, after customer being save then i try to save the ...
4
votes
2answers
30 views

Widget/block code in product custom attribute not rendering at front-end magento 2.2.5

I have created custom attribute of Input Type "Text Area" with WYSIWYG option Enable. After that add widget code in that product custom attribute input at store back-end. Its showing same code ...
0
votes
3answers
47 views

Magento 2 how to get custom attribute title and its value in phtml file

Magento 2 how to get custom attribute title and its value in phtml file.
1
vote
1answer
24 views

Magento 2 Setting custom customer attributes

I have some custom attributes set in the customer information in the admin. I have a page setup with checkboxes which if checked should set these attributes to yes or no. I'm struggling with setting ...
0
votes
0answers
55 views

product attribute limit by ACL Magento2

I have number of custom of product attributes in my store and I want to limit this attribute access to only few users. so how can do this(in backend)? is it possible by ACL? I read about ...
0
votes
0answers
12 views

How to get dynamic product price in Magento 1.9 custom Attribute

I have created custom attribute with textarea element. I am adding static price in that attribute and print this attribute in magento1.9 front side. I have to change price manual in every attribute ...
0
votes
1answer
81 views

Magento 2 - How to hide/remove custom attribute from backend product edit page?

I've created a custom attribute yes/no with default value no. If I update the product with custom attribute value yes then attribute should not be visible on the edit page, if with no value then ...
0
votes
2answers
55 views

How to set customer custom attribute in magento 2?

I have created some custom attributes for a customer in magento2 community edition, I have used below code to set in my custom code use Magento\Customer\Api\AccountManagementInterface; use Magento\...
0
votes
0answers
5 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
41 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
39 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
30 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
38 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
30 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
49 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 ...
2
votes
1answer
60 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
30 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
15 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
37 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
45 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
82 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
50 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
13 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
49 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
26 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
1answer
37 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; ...
4
votes
2answers
249 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.
0
votes
1answer
43 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
60 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
117 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
20 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
32 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
16 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
60 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
200 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 ...