Questions tagged [custom-attributes]

Denotes questions regarding Magento custom attributes

Filter by
Sorted by
Tagged with
0 votes
0 answers
47 views

Show custom attribute of selected child item instead of their parent in product details page in Magento 2

How can i Show custom attribute of selected child item instead of parent/ConfigurableProduct attribute value in product details page in Magento 2 Parent/Configurable product: Here Child Product ...
matinict's user avatar
  • 1,500
1 vote
3 answers
84 views

How to create and save a product with global scope set to use default values programmatically in Magento 2.4.6

I am trying to create and update products in the global scope while making sure any attributes are set to "use default" values set in global scope. The script is triggered by CRON so there ...
Baz's user avatar
  • 161
0 votes
3 answers
32 views

Get attribute text field on front-end product page?

I'm looking to retrieve the value of an attribut with the ID "size_clamp" and show it on the short and long description of my product. I have tried to add the following code directly in the ...
Marcwales's user avatar
0 votes
0 answers
20 views

How to create custom Text Swatch product attribute using Data Patch in Magento 2

This code only saves the value (description). But I want to save values in ADMIN and DESCRIPTION both, can anyone help me here: private function addVisualSwatchAttribute() { /** @...
Hafiz Arslan's user avatar
0 votes
0 answers
38 views

Magento 2.4.6: How to create country attribute for custom registration form in

How to create country attribute dropdown for customer registration form. I have added the country attribute in eav_attribute table using the following code: vendor/module/Setup/InstallData.php <?...
Divya Rawat's user avatar
0 votes
0 answers
11 views

There are no payment methods

I have overwritten the checkout_index_index.xml to add a custom input but when I go to step 2 the payment methods are not displayed. I leave the checkout_index_index.xml. <page xmlns:xsi="...
jean Pier Riquelme Montoya's user avatar
1 vote
0 answers
17 views

Can't get Address custom attribute in custom shipping method collect rates

I've created new custom address attribute and able to save them in the quote_address and sales_order_address table, but i've found bug when i'm trying to get my custom attribute data from my custom ...
Rizky Pratama's user avatar
0 votes
2 answers
81 views

In Adminpanel di.xml for graphql [closed]

Autosmart\CategoryAttributes\Model\Resolver\CategoryAttribute resolve
Noor Mohamed's user avatar
0 votes
2 answers
207 views

custom attribute value not save in the Database

<?php declare(strict_types=1); namespace Vendor\Module\Setup\Patch\Data; use Magento\Eav\Model\Config; use Magento\Eav\Model\Entity\Attribute\SetFactory as AttributeSetFactory; use Magento\Eav\...
Nabeel shahbaz's user avatar
0 votes
1 answer
403 views

Magento 2 add custom fields to order create in admin area

How to add custom input and drop-downs order create in admin sales order creation. I want to add custom field hopefully a new section where when we create a custom order through admin only we can pass ...
jibin george's user avatar
0 votes
0 answers
12 views

Company A is an e-commerce store selling rugs online

Company A is an e-commerce store selling rugs online. Company A wants to charge based on the size of rugs provided by the customer. In backend, show product-wise option to enable/disable this ...
Deep Shah's user avatar
  • 525
0 votes
1 answer
150 views

REST API Response Modification to Include Custom Attribute

I'm currently using the following endpoint to retrieve the last 50 orders: /rest/V1/orders/?searchCriteria[sortOrders][0][field]=created_at&searchCriteria[pageSize]=50 However, I've noticed that ...
tess's user avatar
  • 1
0 votes
1 answer
96 views

How to add Product Custom Options for specific Product?

In Magento 2.4, I need to add "Date", "Time" fields for only One Product - That is Belongs to a Separate "Attribute Set" Called "Services". How to add this ...
Saravanan DS's user avatar
  • 1,118
0 votes
1 answer
37 views

Cannot display attributes those in Used in Product Listing set to yes

I created an attribute (my_text) as a text field. In stores Attributes Product under Storefront Properties I set Used in Product Listing to Yes. However, the attribute is not displayed on the category ...
Straddi's user avatar
0 votes
3 answers
257 views

Difference between Extension Attributes and Custom Attributes magento 2

I have a question in my mind what is the exact difference between Extension Attributes and Custom Attributes with the example? Is anyone here who can provide me with some ideas ?!
Rana Zain's user avatar
  • 614
0 votes
0 answers
32 views

Product Attribute Multi select

I am trying to replicate this kind of attribute (categories) in a custom attribute. There is a way to do it? I means, the text input field with the search bar with the multi select option to assign ...
Camilo Torres's user avatar
0 votes
0 answers
44 views

How to store the data of a "used_in_forms" attribute in the Checkout?

I've added an attribute to the Customer Addresses: <?php namespace Dc\Customer\Setup; use Magento\Customer\Api\AddressMetadataInterface; use Magento\Customer\Setup\CustomerSetupFactory; use ...
dotancohen's user avatar
  • 1,105
1 vote
1 answer
990 views

Custom Customer Attribute field data not showing in Customer Account Information

I have added the field "Favorite Color" to the Customer entity and added it to the registration form. The field properly stores data, as I can see when logging in as Admin and checking in ...
dotancohen's user avatar
  • 1,105
0 votes
2 answers
226 views

Magento 2 Attribute Property - How 'user_defined' and 'system' attribute propety are different?

'system' attribute property tells if attribute is system defined or not. 'user_defined' attribute property tells if attribute is custom (define by developer) or not. It means, if 'system'=0, the ...
Wakar Ahamad's user avatar
0 votes
1 answer
191 views

Remove attribute from the database

When the patch is uninstalled then the attribute is also removed from the database in the Magento 2 is it possible?
Rana Zain's user avatar
  • 614
0 votes
0 answers
104 views

Magento 2 Save Custom Address attributes in quote address

I have created 2 custom address attributes house name and landmark. From the backend, I can save the values of the attributes and it is shown in the address section. Also I have created fields in the ...
Jancy Abraham's user avatar
1 vote
1 answer
143 views

Unable to add attribute to product by InstallData

I would like to add a custom attribute to the product and create an installData.php according to the guide. However, nothing changed after se:up. Please help. app/code/My/Module/Setup/InstallData.php &...
hill2011's user avatar
0 votes
2 answers
238 views

Adding Custom attribute to Quote magento 2

I need to set a custom attribute to Quote entity. I saw some tutorials on how to set a custom attribute to quote_item, followed a similar structure, but it didn’t work. I'm on Magento 2.4.4 Here is ...
David Oliveira's user avatar
0 votes
2 answers
70 views

Create custom attribute for specifi product

i'm tring to create a custom attribute only for a specific product. Into apply_to field i have setted a list "configurable, grouped" , a array('configurable', 'grouped') or single type, but ...
user3665773's user avatar
0 votes
3 answers
167 views

Custom Attribute on order confirmation email in Magento 2.4.5

I'm trying to publish the custom attribute "flash_sale" (dropdown) on order confirmations. I've changed the file: vendor/magento/module-sales/view/frontend/templates/email/items/order/...
Vladimir Chiveri's user avatar
1 vote
0 answers
277 views

Custom customer address attribute not save in saled_order_address table for guest checkout order in magento 2.4?

I Have created a custom address attribute.This field is show in checkout form.Field is created in sales_order_address table also. When i am saving the data from checkout this custom attribute value is ...
Mujahidh's user avatar
  • 2,671
1 vote
1 answer
25 views

Sorting Families on Plp

First product list A1, A2,A3 Product Family A Second product list B1,B2,B3 Product Family B It shows on PLP such as in this way; Family A Title Family A description A1 A2 A3 Family B Title Family B ...
user109253's user avatar
3 votes
1 answer
166 views

Magento 2 : How to fetch custom input data in product attribute form

I have created plugin for add textbox in product attribute form. di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Darshit's user avatar
  • 43
0 votes
1 answer
44 views

How to create a custom address attribute for customer and show that in edit address in admin?

I want to create a custom customer address attribute called customer_custom_id in the below address.( check the below image.). how can I do that?
Mohmad Ashik M A's user avatar
0 votes
1 answer
182 views

how to copy custom attribute values from quote_address to sales_order_address table

i am using some custom attributes in customer address section.The attribute values are getting in quote_address table but not getting that in sale_order_address table. The file i used to do that field....
Benit's user avatar
  • 23
0 votes
1 answer
157 views

I have added a custom attribute in PDP page, I want to get that value in Observer/SaveToQuote.php to save in the quote table

I have added a custom attribute in PDP page, I want to get that value in Observer/SaveToQuote.php to save in the quote table after the product is added to cart. I am using the event ...
Mohmad Ashik M A's user avatar
0 votes
2 answers
285 views

How to Autofilll custom attributes field in checkout address for logged customer in Magento 2

I created custom attribute fields like DOB, and gender on the checkout page. If you see in the screenshot birthday is a custom address attribute. I tried to fill the attribute field(custdob) in two ...
Manoj Jarial's user avatar
0 votes
1 answer
48 views

add attribute of customer with primary

I want to add an attribute of customer,like phone number,how to add an attribute for primary I find source like this $eavSetup->addAttribute( Customer::ENTITY, '...
DanielHe's user avatar
0 votes
0 answers
157 views

how to get custom product attribute value in model file in magento2

I have created a custom product attribute using data patch in my custom module and it is visible in product configuration in admin, also when I save value in it, it get save to ...
Surjan Raghuwanshi's user avatar
0 votes
0 answers
295 views

How to add custom attributes to checkout summary magento2.4

I am trying to display a product attribute value I have found the template where it is displayed: vendor/magento/module-checkout/view/frontend/web/template/summary/item/details.html I override this ...
kiran's user avatar
  • 527
0 votes
2 answers
237 views

how to get attribute value to show on error message

I have this code that show error message if QTY requested is smaller than QTY on stock. i have created attributes and assign values into them. how to get those values in those attributes shown in this ...
Bayzel's user avatar
  • 163
0 votes
0 answers
53 views

Select multiple options in a single attribute in catalog

Not sure if I'm doing something wrong or if it's by design, or if it's a theme. I've added a custom option (size) and enabled it for catalog pages, it does display as a filter on the left. However I ...
Захар Joe's user avatar
0 votes
1 answer
33 views

Attribute with Image to show next to title

I have created an attribute and when clicked on, I need it to show this image next to the product title on the front end. https://www.ukmadesweets.co.uk/pub/media/logo/stores/1/icon-echo.svg Could ...
Julie - Bounce Creative Design's user avatar
0 votes
1 answer
122 views

Why Magento2 Rest API Deletes Empty/Empty Records in EAV Table for Product. Via MultiStore / Custom Attribute

I update some features of my products from time to time via the REST API. All property values change periodically for each of my stores and sometimes we turn it into a completely blank record. For ...
İsmail Çakır's user avatar
2 votes
0 answers
310 views

Magento 2, How to get and set of custom_attributes value for Rest API

API: /rest/V1/products?fields=items,total_count,search_criteria[page_size,current_page]&searchCriteria[filterGroups][0][filters][0][field]=category_id&searchCriteria[filterGroups][0][filters][...
sky's user avatar
  • 1,387
0 votes
1 answer
219 views

Get customer custom attribute value without loading the customer

I'm trying to get custom customer attribute value (for attribute code abn_no) without loading the customer but not able to find any way to get it. Is there any way to get custom customer attribute ...
quickshiftin's user avatar
1 vote
1 answer
83 views

Custom attribute created programmatically not working properly - Magento 1.9

I'm developing a module that creates configurable products, it's simple products and the attributes used to create this configurable (if not exists). All seems fine, products are created, associated ...
Matheus Delazeri's user avatar
0 votes
1 answer
539 views

How to add custom attributes to Customer Export? (from the import/export admin page -> Customers Main File)

I need to add custom attributes to the Customers Main File export (from the Import / Export admin page), but I can't seem to find a way to do it. I believe I can create a preference to override \...
Tokipudi's user avatar
0 votes
2 answers
612 views

How to delete all custom product attributes

How can delete all custom product attributes from database and keep only system attributes in Magento 2.4
Anass Hl's user avatar
0 votes
1 answer
196 views

Magento 2 get custom customer attribute displayed value

I'm using the module Amasty's customer Attributes to create custom customer attributes, I like to get custom attribute displayed value but i got the option value. I like to get the value in data-title ...
tarek fellah's user avatar
0 votes
2 answers
219 views

Can't get ID of newly created attribute

I am creating an importer which will add products from an API to our Magento site. Part of the requirements is to programatically create an attribute if it does not yet exist on the Magento side. ...
Ben Dodson's user avatar
0 votes
0 answers
1k views

custom sorting is not working in magento 2.4.3 p1

enter code hereI am created a custom sorting in magento2.4.3p1 but it is not working in the frontend. I am face issues is We can't find products matching the selection. Toolbar.php <?php namespace ...
Japharul Alam's user avatar
0 votes
1 answer
531 views

how to create or update product attribute value for specific categories? Magento 2

I created an numeric attribute, and product has assigned 2 categories (parent category and subcategory), is it possible update product attribute only for subcategory? or is it possible create custom ...
Diego Castro's user avatar
0 votes
1 answer
115 views

how to check the custom product attribure has the particular value using loop In magento 2.4.2?

In magento 2.4.2, I have custom attribute and it has some value assigned. how to load the product by custom attribute and how to check the custom product attribure has the particular value in for loop ...
Saravanan DS's user avatar
  • 1,118
0 votes
0 answers
114 views

Magento 2 copy SKU value to custom attribute value

I have approx 50000 product in my store. I would like to copy the SKU value to the Custom attribute(custom_sku_field) value for all products. I think going for SQL query might be risky. so can anyone ...
Chirag Patel's user avatar
  • 6,066

1
2 3 4 5
14