Questions tagged [custom-attributes]

Denotes questions regarding Magento custom attributes

Filter by
Sorted by
Tagged with
1
vote
0answers
18 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
9 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
14 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
12 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
13 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
14 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
29 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
24 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
21 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
25 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
31 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
181 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
134 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
12 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
195 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
21 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
24 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
38 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
56 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
46 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
42 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
157 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 ...
1
vote
0answers
15 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
80 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
14 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
32 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
27 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
35 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
31 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. ...
0
votes
2answers
53 views

Magento 2 Get custom attribute values in phtml

I want to populate attribute(Gender) values in select dropdown on listing page. On selecting specific value of the gender attribute, the product list should be filtered. The gender attribute has 3 ...
0
votes
1answer
16 views

Remove my custom attribute code and only show the value in the checkout address summary

Is there a way to remove my custom attribute code and only show the value? I created a custom address attribute "special_instructions" and when I add an address in my account section everything ...
0
votes
1answer
38 views

Mageto 2: get custom attribute via rest api

I have a module "extra fee", I did get order info via rest api, but I don't see "extra fee", how can I get it? anyone help me. Thank in advance.
0
votes
0answers
26 views

Make custom attribute depend on another custom attribute's value

I have 2 custom attributes, private_item and item_key. The first one is a dropdown with Yes or No values. The latter is a text field. I would like item_key to be visible depending on private_item's ...
2
votes
1answer
52 views

Magento 2 js library(Magento_Customer/js/customer-data) how to get custom product attributes in js

I've a little problem with an override of google tag manager in Magento 2 enterprise. google-analytics-universals.js have some function that trigger the events: addToCart, removeFromCart. To get the ...
0
votes
1answer
37 views

Magento 2: How to update custom attribute value in cart page

Magento 2 How to update custom attribute value in cart page - Kindly find the below screen shot.
1
vote
2answers
45 views

Magento 2: New customer attribute not saving on admin

I created new custom customer attribute, it is added to admin edit customer page but its value cannot be saved. In /Vendor/Module/Setup/CustomerSetup.php use Magento\Eav\Model\Config; use Magento\...
-2
votes
3answers
153 views

Custom Sales Order attribute not saving in Magento 2.3.1

I've set up a custom sales order attribute so I can mark orders as 'sent' when they've been exported via a custom module. My issue is it's not saving the attribute on the $_order->save() function. ...
0
votes
1answer
48 views

Magento 1.9.X: how to create custom order attribute?

How can I create new order attribut using install script? All my attempts failed and I don't know how to do this. No one custom order attribute doesn't added to eav_attribute teble. Help me pls)
0
votes
1answer
36 views

Create product attribute type is file in magento 2

How to create a product attribute in file type in Magento 2 our requirement is a particular product-wise Pdf upload in Magento 2 and shows a product view page in Magento 2. So How can I sort it? ...
2
votes
1answer
287 views

Magento 2: Rest API products “custom_attributes” add selected attribute value “label”

Magento 2 product rest API provided custom_attributes and details provided attribute_code and value in /V1/products/:sku API. But V1/products rest API not included custom_attributes details attributes ...
0
votes
0answers
10 views

Prevent Product Attributes showing in “additional information” tab Magento 2

I have some product attributes that I want to use to display information in the theme but do not want them to show up in the additional information tab. Does anyone know how this can be achieved, I ...
0
votes
0answers
19 views

How to add custom attribute in custom tab created in admin customer section for Magento 2.3?

I added a custom attribute using InstallData.php script which is displayed in the Account Information section. Also, in the same module, I created a new tab in the customer admin area and I would ...
0
votes
0answers
23 views

Magento 2: Custom attribute not showing on custom productCollection

I have a Magento 2.3 helper module with a function to get a specific set of fields for a set of products, in basis this works fine. public function getSeriesCollection() { $product = $this->...
0
votes
1answer
85 views

Magento 1 - Update products in bulk for custom attribute value

My custom attribute is, PreBook[ Text Field ]. How can I add my custom text Book Your PreBook to my selected store & selected SKU's? Managed products bulk attributes option taking too many time, ...
0
votes
1answer
43 views

Magento 2: When to create custom attribute programmatically and when via admin?

In Magento 2, we can add a custom attribute for a product either programmatically or via admin (Stores->Attributes->Product) In my case, I need to just create a custom text field to hold some custom ...
0
votes
4answers
215 views

Magento 2.X: Customer custom attribute is not saving from admin or code

I have an issue I can't find why. I tried the issue on Magento 2.3.1 and 2.3.2. I have created a module to add a new customer attribute. No issue for the moment. When I try to save the customer from ...
1
vote
1answer
33 views

Magento 2: How to fetch a custom attribute of products

I am trying to fetch a custom attribute which is of collection type. I need to get all various types of collection in that attribute using Magento 2 custom rest API and display them in postman.
1
vote
0answers
48 views

Magento 2: Hide Add to cart button in all products

I created a custom attribute for hiding add to card button, it is working only for simple product. I want Hide to add to cart button for all product. Create product attribute for hide_add_to_cart and ...
0
votes
1answer
25 views

List all Products and change price, quantity and one custom attribute

We're a very small store and have to sell some of our products online. Magento is our system of choice. Right now we're still using Magento 1. For our shop we have the possibility to list all products ...