Questions tagged [custom-attributes]

Denotes questions regarding Magento custom attributes

Filter by
Sorted by
Tagged with
0
votes
1answer
22 views

How to set data for my extension attribute Magento 2.3

I can't set the value for my extension attribute , how to set the value for extension attribute using json array swagger. And i can't show the data in the order grid. My Module that created for ...
0
votes
1answer
16 views

Magento 2 | Create custom customer attribute as a dropdown

I want to create a custom customer account which should be displayed as dropdown in frontend (customer registration) and backend (edit customer). I only was able to create a "normal" custom attribute....
1
vote
1answer
15 views

Cannot save custom product attribute via custom console command

I am trying to update a custom product attribute via a custom console command. The command runs, and the product seemingly saves; it never throws an exception or any form of error, yet the attribute ...
1
vote
1answer
58 views

Magento2 - Unable to Manage Options (Values of Your Attribute) in Product Attribute

I am baffled. I cannot add to, or reorder existing product attributes. (Note: This is a site I inherited, so I didn't build it.). I have max_input_vars set at 20000, up from 10000. Nothing I try ...
0
votes
0answers
10 views

Get custom attribute from a customer in API Soap magento 1

I need to get custom attributes created for customers from magento 1.9 Soap API v2. From the following code below, I get the "base" data from customers: $proxy = new SoapClient('http://mymagento.com/...
0
votes
0answers
22 views

How to update custom order attribute from order view in magento 2?

I want to update some custom order attributes from the admin order section. I have successfully created order attributes. I want to show these attributes in the admin order edit section. I can show ...
0
votes
0answers
25 views

Error “DDL statements are not allowed in transactions” while Reindexing programmatically using Event Observer Magento 2.3.0

Actually i am trying to reindex category data while saving category from backend but i am getting an error DDL statements are not allowed in transactions in log file while reindexing ...
0
votes
0answers
28 views

Magento 2: Best practice to add custom attribute to products

I want to add a serial number to particular products, I know custom module which does it exist, but my goal here is to understand the process and do it by myself. So what's the best practice? ...
0
votes
0answers
38 views

Attributes… different in frontend and backend

It is possible to set up attributes to display a label and options to the user and then be able to extract different information in the backend. To clarify, the User needs to see 'Chain Colour' with ...
0
votes
0answers
20 views

Magento 2 How to create custom attribute for product weights text field with dropdown options as units?

I want to create a custom product attribute for weights, I want a text field and dropdown with weight units Grams, Kgs, carat, lbs, mg, etc in the dropdown and same for heights. How can I archive ...
0
votes
1answer
26 views

Update customer's custom attribute pro-grammatically in magento 2

I am using following extension: https://github.com/diglin/Diglin_Username2 The custom attribute 'username' is created and working fine during login. But I need to update this attribute value along ...
4
votes
2answers
279 views

Magento 2 checkout address buttons are missing and the developer console shows a customAttributes error

We have recently upgraded to Magento ver. 2.3.4 from 2.3.1 (open source) and currently have an issue in Checkout for registered customers. When they get to the shipping part of checkout they cannot ...
0
votes
1answer
29 views

What is difference between creating custom attribute programmatically and via admin in magento 2?

Creating an attribute in the back end is easy, then why to create it as programmatically? I like to know what is the difference between these two.
0
votes
0answers
29 views

Magento 2 - How to hide/remove custom attribute from backend Account Information tab in customer page?

I have a custom attribute showing in the account information tab page. how can I remove them? Right now I can see the following
0
votes
0answers
25 views

Magento2: Update custom attribute using MySql query

I have two custom attributes:- is_featured_product => Yes/No type start_to_date => Date type Now I want to update the status of the featured product to 0 if current Date > start_to_date using Mysql ...
0
votes
0answers
35 views

Magento 2 : update product custom attribute value (type: date) in specific product programatically

I want to update product custom attribute value in specific product which is type date programatically can anyone suggest how to update. I trying below but not success. $date = 31/03/2020; (string) $...
0
votes
1answer
24 views

Magento 2 : Get all values of dropdown attribute

I want to get custom attribute like this in product detail How can i do that? Any help? Thank in advance.
0
votes
0answers
28 views

Magento 2: Get customer collection along with the custom attribute values using Rest API

I had created a custom customer text field in Magento 2.3 using custom module. When I fill the customer details in the customer form to create new customer. The whole data is stored in the database ...
0
votes
1answer
35 views

How to remove custom product attributes on module disable?

I added 2 custom product attributes with the help of setup/InstallSchema.php in my Magento 2 custom module. It's working fine. But, I can't remove these Product attributes on module disable from the ...
0
votes
0answers
16 views

Magento 2 Product custom attributes are not in created order

In my admin dashboard product Add/Edit page I have my custom attribute order like below image. Admin Page But in my product view page i get in random order like below.
1
vote
0answers
24 views

Magento 2 - How to create attribute with images on product page

I want to recreate this in magento 2: It's an image slider with attribute icons. I currently have it in magento 1 as a multiple select value: This is the Magento 1 code: <?php if ($...
0
votes
0answers
10 views

Get all attributes with group name

I have a webshop with a lot of attributes, they are divided into attribute sets which I choose for the product and in the set I have groups to arrange the attributes. What I need is to het all the ...
1
vote
0answers
15 views

Adding new input fileds for attributes in a specific attribute group - Magento 2.3

I created a new attribute group 'Features' in the products section. I need to create two new fields (checkbox and text field) apart from the available option for attributes inside the group 'Features'....
0
votes
0answers
19 views

Magento 2 customer custom attributes such as VAT

I am tring to add a customer custom attributes such as VAT. So I will not use the address structure but account structure. And i want to display the field during the payment and not during the first ...
0
votes
0answers
20 views

Extension attribute 'neighborhood' not working when payment method is PayPal standard

I have added an extension attribute via extension_attributes.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
0
votes
1answer
17 views

Add custom attributes with product quotation and save in product orders

Add custom attributes (i.e hire start date & hire end date in below picture) with product quotation and save in product orders items details. I want these attributes should be visible on checkout ...
0
votes
0answers
59 views

How to save new customer attribute value from admin new tab?

I am using Magento 2.3.3 version. I just installed Magento. I have created a custom attribute for a customer in the admin side. Issue: I set new customer attribute textbox in custom tab but its not ...
0
votes
0answers
25 views

Pragmatically add product attribute label to an existing attribute for a new store view

I have setup a working store in English (default store view), but now i wish to add a new language which will be a new store view; 'Italian'. We have alot of attributes that have been added ...
0
votes
1answer
25 views

How to store custom attribute after place order?

I am trying to store customer's reward point into sales_order table using event-observer. here is my events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
1answer
32 views

How to create a customer attribute with options on the fly

I want to create a custom customer attribute where for example he can complete custom values for Complete your 5 best movies Multiselect does not work because they need a source. There is something ...
1
vote
0answers
34 views

Magento 2 Custom Attribute Multi select without specific options [closed]

What can be the solution on Magento 2 to have a Customer Attribute multi-select where the customer can save custom values on the fly? For example: Add your five favorite movies Is there some JSON ...
3
votes
5answers
294 views

Magento 2 : How to show/Hide custom tab on product detail page based on product attribute?

I have created a product attribute like, display_custom_tab, if it is yes then show custom tab on product detail page, otherwise do not show tab. can anyone please tell me how to write condition in ...
3
votes
3answers
196 views

Magento 2 What is the use of 'apply_to' to add product attribute?

I have seen one option 'apply_to' while adding an product attribute. ex. $eavSetup->addAttribute( \Magento\Catalog\Model\Product::ENTITY, 'sample_attribute', [ ...
0
votes
0answers
35 views

Magento 2 - Getting all details of product attribute options (Multiple Visual Swatch)

i was trying to get information on my visual swatch but unfortunately I can't find any method where I can get my attribute option ID, Option Label, Option Image and Option sort order. This is my ...
3
votes
2answers
213 views

Get Grouped Products Associated Child Product Custom Attribute

I've created a few product attributes with these settings: Scope: Store View Add to Column Options: Yes Visible on Catalog Pages on Storefront: Yes Used in Product Listing: Yes Used for sorting in ...
2
votes
0answers
31 views

Value for '*' attribute contains incorrect value, see acceptable values on settings specified for Admin in row(s):

Not sure what is causing this problem. The previous line which has the same value is valid. But this line is invalid.
1
vote
0answers
25 views

How to check a custom attribute from $block?

I have a custom attribute I need to check and if its 'Catalog' then I want to hide the price as its not available on the site. If its one of the others then it should display. Originally I did this ...
1
vote
1answer
60 views

How to add a custom attribute to a product view in Magento 2?

I created the attribute with code "supplier" in my admin area, besides, I saved the file "mycustomblock.phtml" in "/app/design/frontend/{MyThemeName}/default/etc/Magento_Catalog/templates/product/...
2
votes
1answer
71 views

How do I pass the product ID and attribute to Gallery.php block?

How do I get product ID and product attribute at magento/module-catalog/block/product/view/gallery.php? Please help, I need to do some image filtering by product custom attribute with the image ...
0
votes
1answer
96 views

Magento 2.3: Show custom attribute value for configurable products

Is there a way to show the value of a custom attribute that changes for every child product? I mean something like: user selects "blue" color for shirt and, under the swatches a text appears (like, ...
0
votes
0answers
14 views

how to display image with custom attribute, base on the bundle product custom attribute?

I did create custom attribute for image at simple product, which is called imageA and imageB. I have a bundle product also create a custom attribute to determine it show imageA or imageB, since ...
0
votes
1answer
71 views

Magento 2.3 - Add order attribute

I need to add a text attribute to placed orders, filled by logic in a observer module. Now I used/follow this code before on Magento 2.2 and there it worked like expected. Now, copying the same module ...
0
votes
1answer
455 views

Create a custom graphql module with filter attributes magento 2

I need to get all attribute values of product based on the category id. I had implemented this logic in rest api but I couldn't find clear solution for graphql module. My schema.graphqls file is ...
2
votes
0answers
22 views

Get a dropdown attribute value from ProductInterface, without breaking interface contract

I have an instance of \Magento\Catalog\Api\Data\ProductInterface. This product has a product attribute 'custom_attribute', which is a dropdown. Now, if this was an instance of \Magento\Catalog\Model\...
0
votes
1answer
169 views

Magento 2 wysiwyg editor hide/show button not showing with custom category attribute?

I have create custom category attribute as wysiwyg editor under content fieldset. Attribute is showing and working fine but I want to add Hide/Show Editor button with atribute. How can I do this? ...
0
votes
0answers
18 views

How can I unchecked custom Yes/No address attribute in the checkout new address popup?

I created a new custom customer address attribute and I set the default value to "No" but when I add a new address in the checkout step I always see the option checked. Is there a way to make it ...
1
vote
0answers
33 views

How to get Custom Attributes in Carts Item REST API?

End Point: /rest/V1/carts/mine/ Added Custom Attribute Name: Unit Type: Dropdown Response: { "id": 10, "created_at": "2019-10-19 10:23:20", "updated_at": "2019-11-01 09:27:51", "is_active":...
0
votes
1answer
34 views

How to add custom class in Product Attribute?

I am trying to add a custom class for some validations and styling purposes in a Programatically created Product Attributes, I have tried frontend_class and class property but it didn't work. Can ...
1
vote
2answers
50 views

Custom attribute in cart not working

Getting a custom attribute in the cart should be simple enough: adding a app/code/<Vendor>/<Module>/etc/catalog_attributes.xml with e.g. the following content: <?xml version="1.0"?> ...
1
vote
1answer
62 views

How to remove custom attribute of category using object manager in magento 2

I created 4 custom attributes for category. Now I want to remove it. I want to use object manager for delete attributes and its values. See this image. Created attributes are display in this manner. ...

1
2 3 4 5
12