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

0
votes
1answer
17 views

Magento2 Showing a custom attribute on category listing page

I have a magento2 based website and I am wanting to show a custom attribute on the category listing page. My issue seems to be that on desktop and tablet the products are shown 3 across and on mobile ...
2
votes
2answers
42 views

Customers custom attribute with dropdown is not working

I need to create a custom attribute for customer entity with the Yes/No. I tried to use boolean type and also select method. But nothing has worked. Below are my work: Try 1: (Type as select) $...
1
vote
1answer
28 views

Efficient method to load/get and assign multiple custom options/attributes from quote item?

Is there a more efficient way to load and assign quote item custom options/attributes? This is code in my Observer: public function MyFunction(Varien_Event_Observer $observer) { $QuoteObject = Mage::...
1
vote
0answers
37 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....
0
votes
0answers
15 views

Get custom customer address attribute on email

I have a module with which I create my attribute. I can get it and show it in the admin panel, but not when the data is recibed on checkout process. This is my installer code: public function ...
2
votes
0answers
21 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. ...
0
votes
0answers
13 views

How to Add Wishlist Custom Attribute in Magento1?

I want to add customer attribute in magento wishlist in order to save additional field in wishlist table.
0
votes
1answer
33 views

How to get the custom attribute of products from the cart?

There is an attribute in the product AllowSameDayDelivery how can I get it out of the product? I got the products ids from the cart, But how do I get the attribute now? <?php namespace Ronis\...
2
votes
2answers
42 views

Show Delivery Time over or under Availability on Products Page

I am completely new to magento. I use Magento 2.3 and I created an attribute Lieferzeit under Stores->Attributes->Product and set visibility to yes. Further, I set the Attribute to a group in Stores-...
1
vote
0answers
22 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
0
votes
1answer
29 views

Get custom attribute value in Magento2 product page

I have created one custom attribute through code, in admin product edit page,but i wolud like to display that value in product detail page, How to get the custom attribute collection in product ...
0
votes
0answers
29 views

Boolean attributes not displaying any options when used as part of conditions or actions in a promo rule

I've got a couple of boolean custom attributes which I'm having an issue using in cart or catalog price rules. These attributes appear correctly on the product edit pages and can be used successfully ...
1
vote
1answer
50 views

check if product attribute exists in upgradeData.php

I have a custom product attribute named additional_cost. Now I want to delete this additional_cost attribute or I want to update it. In order to do this both I need to first check if this attribute ...
0
votes
0answers
12 views

layer navigation using custom attributes in magento 2

i have to create filters with products attributes in magento 2,from where i can filter my results on category page, as i have already side bar but i want to create something which should be in drop ...
2
votes
1answer
30 views

How can I add State and Country attribute for customer in Admin, Magento2

I need to create State and Country attribute for customer registration and Admin. How can I Achieving State and Country field functionality in Admin under customer Account Information
0
votes
0answers
9 views

Change UI when changing product custom attribute

I just created several custom attributes for my products and added them to the corresponding attribute set. Is there a way to change how the layout of my custom attributes when I try to edit them ...
0
votes
1answer
49 views

Multiselect attribute not showing on frontend when two or more options selected

I have a custom product attribute that uses a multiselect input to select one or more product stockists. The data is being stored correctly, and selecting 1 option adds the information to the "More ...
1
vote
2answers
110 views

Magento 2 product custom attribute source_model outerset attribute not showing in product collection and not working in addAttributeToFilter()

I am creating a custom product attribute in Magento 2 by custom module InstallData.php code following <?php namespace Awa\Brand\\Setup; use Magento\Eav\Setup\EavSetupFactory; use Magento\...
0
votes
1answer
38 views

Magento 2 : Custom module - Shipping per product

I have created custom shipping method named ad My Shipping Method and have created custom attribute named my_Shipping_charge. Both are working fine without any error. Now I want to set condition if ...
0
votes
1answer
10 views

How to hide custom product description tab based on product attribute value?

I've made global product description tab as well as global attribute with yes/no values. Attribute default settings is set to "no". I want to show this additional tab only for products whose attribute ...
1
vote
0answers
24 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, ...
0
votes
1answer
30 views

Magento 2 show custom checkout step based on custom product attribute

I'm trying to show a custom checkout step when a product has a boolean attribute that I created. My attribute is showing 'undefined' when I check it with console.log on the step view js. The name of ...
2
votes
1answer
109 views

How custom attribute of “sales_order_item” table will be save also in “sales_order”

I am using plugin for converting "quote_item" to "sales_order_item" from below give code it work. public function aroundConvert( \Magento\Quote\Model\Quote\Item\ToOrderItem $subject, \...
0
votes
1answer
43 views

Attribute not showing category

I am using Magento 2.2 for my store. I have created a custom attribute. I have modified list.phtml and catalog_product_view.xml and I have created a myatrribute.phtml. I have also enabled visible in ...
0
votes
0answers
19 views

how can i update custom attribute value from customer [duplicate]

i need to update custom customer attribute value programmatically, i tried this: public function userapprove($id){ $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); ...
0
votes
1answer
34 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, ...
1
vote
2answers
23 views

Custom Customer Attribute not being read from Request

I'm trying to add a new Custom attribute to the Magento customer model, and I think that I've set everything up correctly from what I've been able to scour off of this website & google, but I'm ...
0
votes
1answer
90 views

How to Filter a Custom Column in Product Listing?

I have created a custom column in Product gird by a module, which shows Parent product's SKU there. It's working fine but when I try to filter it Magento gives "Something went wrong with processing ...
0
votes
0answers
68 views

Product drop down attribute with custom source model not display in layered navigation Magento 2

I have created a product's attribute select type (dropdown) source model of this attribute from custom table. Everything is fine but when I set this display in layered navigation, It's not showing in ...
0
votes
0answers
19 views

Magento2 Product Custom Attribute needs load()

Q1. Why does getData() return null, I need to do load() first? They seem to be the same class type.. function (Magento\Catalog\Model\Product $product): $product->getData('my_attribute_1'); //...
0
votes
0answers
19 views

Magento 2 custom address attribute

I have created custom address attribute "extension" as varchar type through InstallData. I have also added Extension field in customer registration form. Since I want customers to enter some value ...
0
votes
1answer
57 views

How to have 2 different registration forms in one module in magento 2 (B2B, B2C)

Trying to add different attributes to 2 different registration forms. If anyone can advise where i can make this change please ? see below for the file structure that i Currently have: 1. module....
0
votes
0answers
84 views

Magento 2.2 Display Product Custom Attribute in products in Home Page

I have custom attribute called "hasgift" and its Boolean (yes, No), and trying to display it's value in products tab Module in homepage. But Its Only Give Me (No) Vaue. I have Used Same Code in ...
0
votes
1answer
73 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
0answers
10 views

Is it possible to Extract Attributes with its all Values and their value Id's using My SQL in Magento 2

Is it possible to Extract Attributes with it's all Values and their value Id's using My SQL in Magento 2?
0
votes
1answer
26 views

What new tables need to be created when building module for custom attributes?

Magento 2.2 -- I am trying to build a module that would allow for custom attributes to be created in the admin panel. At this point, I'm stuck on what tables need to be created to allow for that ...
0
votes
1answer
23 views

Unable to get custom customer data in a standard manner? [duplicate]

I have added few custom attributes and one of them is is_mobile_verified while registering I dont set any value for this however, while creating the attribute I set default value as 0. now after ...
1
vote
1answer
70 views

Magento 2 get custom attribute of a single product inside a plugin

Hello Everyone :) I'm in a bit of an empasse now: I'm building a module to edit the price of products that have a custom attribute by multiplying their weight by a variable. Now, almost everything ...
0
votes
0answers
19 views

Fetch created new attribute of product in order summary of checkout page

I have created new attribute for products and given yes/no option to them. How can I fetch that new attribute data in the order summary checkout page
0
votes
1answer
61 views

How to move attributes in magento 2.2.x?

I want to move some attributes, but I don’t see any settings for this.
3
votes
2answers
110 views

How to hide a custom text attribute which displayed in product edit backend

I am using Magento 2.2.5 I need to hide a text attribute which I'm using to save serialized data of custom options of product. I think this can be done using adminhtml/ui_component/product_form.xml ...
0
votes
1answer
63 views

How to save serilized data in product's text backend_type custom attribute

I'm working in Magento 2.2.5. Basically, I have created a custom product attribute serilized_data with text as backend_type by using below file and want to save custom options of product in this ...
0
votes
0answers
71 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:...
0
votes
1answer
56 views

Magento 2 save product custom attribute in order to retrive them on sales information and otder email

I have created a custom attribute that shows in product detail page like colour and size attribute, I want them to be saved on order placement so that i can retrieve them in order information, order ...
0
votes
0answers
136 views

Magento Customer Grid Custom attribute can't export csv and export xml

Magento Customer Grid Custom attribute can't export csv and export xml, Showing error, how to add custom attributes to the customer export. PHP Fatal error: Uncaught TypeError: Argument 2 passed ...
0
votes
0answers
60 views

If attribute value exist, then echo, else hide

With many custom attributes sometimes it is needed to show additional information on a product, and sometimes just hide it. How do I do that?
0
votes
0answers
86 views

how to get custom attribute value for related products in product details page

I am overriding default related.phtml in custom theme Magento_Catalog but data is not showing properly.If Any One have idea please help me. <?php if ($currentProduct = $block->getProduct()) {...
1
vote
0answers
30 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
2answers
114 views

How to show product custom attribute in items ordered section in magento2.2.0?

How to show product custom attribute with values in items ordered section in magento2.2.0? Refer screenshot The above image is my custom attribute(PCB Master) In the above image i need to show my ...
0
votes
1answer
98 views

additional catalog attributes not working in catalog_category_view

In my templates I want to have access to custom product attributes on the detail page, the cart and also the category list view. This can be (or should be) easily achieved by creating a Vendor/Module/...