Questions tagged [custom-attributes]

Denotes questions regarding Magento custom attributes

Filter by
Sorted by
Tagged with
0
votes
1answer
8 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 save product not save it.issue comes in magneto2.3.0 version if any one ...
0
votes
0answers
19 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
1answer
28 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
15 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
23 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
26 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
21 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
23 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
11 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
52 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
51 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
38 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
38 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
2answers
83 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
55 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\...
-1
votes
0answers
29 views

Magento2 : How can I create Group of Attributes?

I'm pretty new to Magento and I was wondering how I can group attributes in another attribute. For example, I would like to group some swatches into the family of the color. Like: aqua, turquoise, ...
3
votes
3answers
49 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
22 views

Fetching Custom Customer Attributes Magneto 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 ...
0
votes
2answers
59 views

Magento2: Adding custom attribute to category doesn't show store specific value

I have created a custom category attribute using the custom code from here, attribute created successfully and able to save the value. But I want to save store specific value in this custom attribute,...
3
votes
2answers
52 views

Magento 2: Create new customer attribute in module upgrade

I want to add new customer attribute 'business_type' which would be a selectbox. I want to do it in already created module, so I would need module update script. Can anyone help me on this as I am ...
2
votes
1answer
30 views

Unique Value For Custom Attribute in magento 2

I created one custom attibute for customer. and make unique value true. while we edit customer in admin panel , and trying to save, its always give error like attribute should be unique. but their ...
4
votes
0answers
32 views

How to set custom attribute value in m2epro extension once order create in Magento admin Magento2

I am using M2epro for Amazon and eBay. We want to set custom attribute value(static) once order creates in Magento admin. Can anyone have any idea how we can do it?
0
votes
1answer
32 views

How to replace SKU with a custom attribute on the frontend

our product has SKU and P/N number. All product's SKU has the same, but the P/N will depend on the country, so I've created an attribute "P/N" and want to show P/N on the product page instead of SKU. ...
0
votes
1answer
43 views

Magento2.3.1: How to display all attributes of product on a product page?

How to display all attributes of a product like default and custom attributes on a product view page at just right side to the product. Note: I don't want to display at tab or anywhere.
2
votes
1answer
30 views

How to add a custom attributes from backend in registration page in magento 2

How to add a custom attributes from backend in registration page in magento 2 Refer Image:
0
votes
1answer
25 views

Magento 2.3.1 add custom attribute to customer

I have follow several guide or tutorial but I can't understand how insert a custom attribute to customer general info, specifically I would to insert a second email field. Actually I've the following ...
1
vote
0answers
27 views

Updating Magento 2 product attribute, Import Add/Update feature always create a duplicate new item, instead of updating

i'm trying to update a custom product attribute called is_eol, but when i use the system->data transfer->import -> import behavior (add/update), it always created a duplicate item with same sku number....
0
votes
1answer
31 views

Magento 2.3.1 media urls in custom attribute of text editor type displaying as text

I've created a product attribute to display content in the product tabs which is specifically for technical drawings. The attribute is set as text editor type. When I add an image using the "insert ...
0
votes
0answers
24 views

Magento 2 REST API: Sort using custom attribute

I have created a custom product attribute best_seller and I want to use it for sorting API response. I am using the following API: V1/products?searchCriteria[filter_groups][0][filters][0][field]=...
0
votes
0answers
20 views

Add custom attribute to myorder magento2.1

How to add custom attribute like country of manufactured into my order page in customer panel magento2.1? Also i want to add configurable variations into my order page, EX: bought T-shirt red size m ...
3
votes
0answers
30 views

Configurable product changes the custom attribute when we change the colour In Magento2

I have created the configurable product, changes the custom attribute value when we change the color variation.
0
votes
0answers
96 views

Magento 2 PHP Fatal error when saving custom attribute to customers

I got this error when trying to save custom data to customer, 43766 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Eav\Model\Attribute\Data\...
0
votes
0answers
24 views

How to save custom attribute value in event customer_save_after_data_object Magento2

I added a custom attribute value that is displayed on the customer grid and on the customer view page (adminhtml), but when I want to change and save an attribute from customer grid that works in the ...
1
vote
2answers
28 views

Display Custom Attribute Multiplace Place on Products Details Page Magento 2

I'm adding code on attribute.phtml page for call custom attribute on the products details page <div class="product attribute <?= /* @escapeNotVerified */ $_className ?>"> <?php $...
0
votes
2answers
19 views

Mass update product attribute

[M1] I created a custom attribute with name 'Warranty'. we have over 2000 products listed and we would like to mass update 'warranty' attribute as the warranty for all products is the same, however, ...
0
votes
1answer
21 views

Getting error on attributeResource save

I'm trying to add an attribute called orchestra_id to Order and OrderAddress. I've made a plugin who have been already activated. So I've create an Setup\UpgradeData model. This is what it look like: ...
1
vote
0answers
22 views

Filter a custom attribute in Order Grid

I added new attribute and new column to Order Grid : [vendor]\[module]\view\adminhtml\ui_component\sales_order_grid.xml <?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www....
0
votes
1answer
41 views

Magento 2 Can not save custom attribute for customer

I am getting following error while register customer with API. It happen when i am try to save Company field. "Property \"Company\" does not have accessor method \"getCompany\" in class I have use \...
0
votes
0answers
9 views

Prevent Media Attribute from defaulting on image

I'm using Magento 2.2.8. We've created a module for displaying a sizing guide which works wonderfully. My issue though is the sizing guide works by tagging an image on the product with a custom ...
0
votes
0answers
9 views

Partial attribute Set's detail on custom product are not showing

Here is a setting of a particular attribute set: Crowdfunding item The focus on (Dimension parameter is missing) ts_dimension_xxx I will use it on a custom product type called donation (Not simple ...
2
votes
3answers
64 views

How to edit custom customer group attribute (column) in Magento 2?

Bonjour ! I try to edit some custom customer group fields in my Magento 2.3 but I don't know how to start. I already have added some columns and displayed it in admin back-office with a module. ...
1
vote
0answers
17 views

Magento2 How to add custom attribute to billing information of order rest api response

I want to add a custom attribute to the billing information section of order rest API response instead of showing in extension attribute section. please anyone can help me in this. Thanks in advance
0
votes
1answer
31 views

How to filter attribute by its option value in magento2.2.5?

I want to filter attribute by its option value in Magento2.2.5. I have tried with this: $collection->addAttributeToFilter('collections', 258); But it doesn't seem to work. Any help would be ...
0
votes
0answers
35 views

custom_attributes not returning from Magento 2 REST API

Using the Magento 2 REST API, I was able to successfully create a new product attribute sending a PUT request to V1/products/attributes/{attribute_code}. In the request, I added a value in the ...
0
votes
1answer
33 views

Calculate attribute value in indexer or cron?

This is my observer and its updating my custom attribute every time when I save attributes on catalog_product_attribute_update_before event. namespace MyVendor\MyModule\Observer; class ...
1
vote
0answers
32 views

How to add new custom field in checkout/shipping page and save it in db in Magento2.2.5?

I want to add new custom field in checkout/shipping and want to save them in the following tables in Magento 2.2.5: sales_order sales_order_address sales_order_grid I have referred this link https://...
0
votes
1answer
27 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
57 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
35 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::...