Questions tagged [custom-attributes]

Denotes questions regarding Magento custom attributes

Filter by
Sorted by
Tagged with
0
votes
2answers
37 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
12 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
26 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
13 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
18 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
23 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.
0
votes
2answers
17 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
126 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
20 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
28 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
140 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
10 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
19 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
51 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
20 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
139 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 ...
0
votes
1answer
26 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.
0
votes
0answers
44 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
22 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 ...
0
votes
0answers
27 views

Product Image attribute cannot assign to Configurable products

I have created 3 new product image attributes in Magento 2.3. Which can be assigned to the parent product of the configurable product but cannot be assigned to variations created. I need to assign the ...
0
votes
0answers
25 views

Create custom attribute conditions model magento 2

I would like to build a conditions model that shows the attributes with conditions model in a form. I have not found good online tutorials that explain how to deal with the conditions model. <...
0
votes
0answers
20 views

Attributes values are not showing at admin panel after adding them from database magento2

I have created a new product attribute warehouse_country and inserted values from database. But these vales are not showing at admin panel.See image 1 And I want to use this attribute for layered ...
3
votes
0answers
125 views

Facing problem with custom attributes in customer address checkout

I am facing a problem adding customer address custom attributes, in Magento 2.2 is working fine but after upgrading to Magento 2.3 I am receiving this error when shipping-information is saved: An ...
0
votes
1answer
17 views

Custom product attribute doesn't display on cart and confirm mail

I need some help because I don't know how to fix this problem. On my product, I have 3 attributes (classe, dimension, color) and I choose with a select the value. But when I go to the cart page, the ...
0
votes
1answer
68 views

custom “sales_order_item” attribute to API response

I followed this guide to add a custom product attribute to quote and sales order item throughout the order process and this works fine. My custom attribute is added to the sales_order_item table ...
0
votes
0answers
24 views

Magento 2 - How do i sort custom attribute in admin product listing gridpro

How could i sort product attribute in admin product listing? I couldn't find how they call the attribute in product_listing.xml . Drag and drop is not what i'm looking for. I want something ...
0
votes
1answer
42 views

How to get value of customer custom attribute load by customer Id in phtml file in Magento2.3.0?

How to get the value of customer custom attribute load by customer Id in phtml file in Magento2.3.0? $customer = $this->customerRepositoryInterface->getById($customerId); $value = $customer-&...
0
votes
1answer
80 views

how i can get custom attribute value in magento 2 final_price.phtml

I have created a product attribute in Magento 2 admin I want to get custom attribute price in magento 2 final_price.phtml How I can get this?? I tried this code but showing null in $_product ...
0
votes
4answers
122 views

Filter customer collection by custom attribute in magento 2

I created a custom attribute for customer and would like to filter my collection through it. My UpgradeData: if (version_compare($context->getVersion(), '1.0.6', '<')) { $attributesInfo = ...
0
votes
0answers
24 views

Manadev Advanced Filters - restrict by store view in magento 1.9

We are using a customized implementation of Manadev Advanced Filters in Magento 1.13.1.0, and we have multiple websites and stores set up on our platform. The filter results seem to sometimes include ...
0
votes
1answer
59 views

Magento2.3.0 How to add custom attachment for pdf in admin side product edit page?

I am using magneto2.3.0 and I already free plugin use for custom attachment for product edit page but there PDF attached after product not save it. Issues come in magneto2.3.0 version if anyone tries ...
0
votes
0answers
132 views

Add custom attributes when creating product via REST API

I am attempting to set custom attributes when creating a new product via the REST API. The products have a required attribute hpUuid. This is part of my JSON file to create the new product: { "...
0
votes
2answers
118 views

Get product custom attribute in observer that listens to x specific event

Anyone know how to get product custom attribute in observer? In my case event is controller_action_predispatch_checkout_cart_add. My current code is giving me: Uncaught Error: Call to a member ...
0
votes
0answers
17 views

How to create Dropdown list for custom attributes in grouped Products in Magento 2?

I have created two custom attributes like File Length and File Size. Now i have to create Dropdown list for above custom attributes and by using custom attributes i have to filter the table data in ...
0
votes
0answers
32 views

Magento 2.2.8 set custom customer attribute value after checkout

I want to set custom customer attribute value when a user places an order, i.e when a user checkouts depending on checking fields filled in billing information on checkout page. Please provide a ...
3
votes
1answer
67 views

How to display custom checkout field value in Admin Sales Order?

I have creat a custom module that adds a custom field to checkout. It is the input text field. I save this value to quote table and to the sales_order table. But now I want to display this value in ...
0
votes
0answers
24 views

Magento 2 : How to show product attributes in product list

I am working magento 2.3.1 How to show product attributes in product list as image. Any ideas ?
0
votes
0answers
31 views

Magento 2 get customer attribute value issue

I am trying to get customer attribute value i have created text attribute and storing json data. {"cloud":["<div><span style=\"font-family:Comic Sans MS,cursive\"><u><span style=\...
0
votes
0answers
27 views

Want to add custom field like mobile no. in magento 2 registration api

I have added a field mobile in api and it is showing in swagger interface and created a column to store it into customer_entity table. Api accepting the mobile field when i am passing it into body but ...
0
votes
0answers
13 views

Magento 2.2.7 - attribute is being save in default template when I don't want it there

I am sure this is a simple question but it seems for the last week I have not been able to find it out I am using Magento 2.2.7 and when I used the color attribute then made an attribute set. I move ...
1
vote
1answer
54 views

Magento 2.2 custom product attribute not visible on catalog / category page

So I've created 6 custom attributes in my modules using installData.php let's take two of them: $eavSetup->addAttribute( \Magento\Catalog\Model\Product::ENTITY, '...
4
votes
0answers
122 views

Magento2.3.1 : Shipping address custom attribute value getting wrong format

Ref url - Shipping address custom attribute value not getting in RateRequest object in Carrier Model in magento2.x Above link in working perfect in magento2.2.x but not in magento2.3.1. I checked ...
0
votes
2answers
39 views

Magento 2: Cutom product attribute is not available for lyered navigation

I have created product attribute using following code. But attribute is not available in layered navigation filter. $eavSetup->addAttribute( \Magento\Catalog\Model\Product::ENTITY, ...
4
votes
1answer
46 views

custom attribute

I have a custom attribute which is not displayed after the activating use flat directory category, moreover, I did not activate the visible_on_ front, but I still did not get any results.
5
votes
3answers
127 views

How to Display Attribute value in magento 2 using getProducts() Method

When I Try to get data using below code,But return null value. $_attributeValue = $block->getProduct()->getResource()->getAttribute('weight_spices')->getFrontend()->getValue($block-&...
3
votes
1answer
137 views

Save customer custom address attribute programmatically

I have created new address attribute hide_address with yes no value. Using setup script: if(version_compare($context->getVersion(), '1.0.2', '<')) { $objectManager = \Magento\...
3
votes
1answer
58 views

Magento 2 Updating Other Products in catalog_product_save_after event Observer

I had created an Observer of this event:catalog_product_save_after I am trying to update other products and loading them on the basis of their id, but it is giving me an error. I am Sharing my code ...
3
votes
3answers
68 views

Magento2 How to get category custom image attribute on frontend phtml page

I need to get category custom image attribute on frontend. Anyone have solution for this? Thanks
0
votes
1answer
38 views

Fetching Custom Customer Attributes Magento 2

I am trying to fetch a custom attribute value of a customer in magento 2 but I am unable to fetch it I am using \Magento\Customer\Api\CustomerRepositoryInterface class to fetch the custom customer ...