Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [product-attribute]

Questions about creating, managing and using product attributes

2
votes
0answers
29 views

Product attributes on wishlist

I'm trying to display a couple of product attributes on the wishlist page. However, when I call $product->getData('attribute_code') it returns NULL. Here is the code I currently have in place: ...
0
votes
0answers
18 views

Magento 1.9.2.1 not working with 2 configurable attributes

Here we have 2 configurable attribute for a product.. For Leg length option 30 - 25 - in-stock and 26 - outofstock For Leg length option 32 - 26 - in-stock and 25 - outofstock Sometimes it's ...
1
vote
1answer
24 views

How to get currently selected product id of configurable product on view page?

I need to change name, price, SKU and more when options are clicked. So I need the product ID of the selected option in the product view page. I have a Custom phtml file to write my own alteration in ...
0
votes
0answers
13 views

bundle product not open

I just Migrated Mganeto 1.9.* to 2.3.0. All set well but when I open Bundle product that throws an error: This product doesn't exist. And in log, I got :[2019-03-13 09:16:16] main.CRITICAL: ...
1
vote
1answer
30 views

Import Product Dimensions (Length, Width, Height) in Magento 2

I am trying to import dimension data to a Magento 2.2.6 store. The Magento attributes are present on the product, but I cannot figure out how to import to these fields. I have tried length and ...
2
votes
1answer
17 views

How to add Schema markup for a custom attribute in Magento 1.9.4

I am trying to add the right Schema Markup metadata for a custom attribute in Magento 1.9.4 I tried this : <meta itemprop="gtin13" content="<?php echo $_product->getAttributeText('...
0
votes
0answers
28 views

Magento 2 Backend Product Insertion area customization

Hope you are doing well! I am working on a Magento 2.2.6 version.Into the backend product insertion area i want to add custom svg file uploader for insert the svg image. OR Into the textarea ...
3
votes
1answer
30 views

Mageno 2 after programatically removing product attribute group the attributes are no longer visible

(Magento 2.2.6) Hi, normally when you remove attribute group from an attribute set you still see the attributes that belonged to the group under "Unassigned Attributes" section of attribute set edit ...
0
votes
0answers
8 views

Change UI when changing product custom attribute

I just created several custom attributes for my products and added them to the corresponding attribute set. Is there a way to change how the layout of my custom attributes when I try to edit them ...
1
vote
1answer
72 views

How to increase character limit of text field in Magento 2? [duplicate]

I am using Magento 2.1.9 I have one attribute named "Features". Values for this attribute are coming from Lightspeed pos and input type for this attribute is a text field. Light speed doesn't provide ...
2
votes
0answers
19 views

Description Attribute Editor Issue in Magento 2.3

I am developing website with multiple stores and each store has product description in different language. My description attribute scope is Store View. When I'm going to change description store ...
4
votes
0answers
48 views

How to get product dimension units (cm/in)?

I need to get the dimension units for width, height and length. There are solution available only to get the value of these attributes like, $product->getTsDimensionsLength(); $product->...
2
votes
0answers
17 views

Set product attribute “comment” from backend

No time for coding actually, so I just want to ask if maybe someone already has a working solution (w/o rewrites) :) I just want to add a text input field to "edit product attribute" page, that show "...
0
votes
1answer
38 views

Multiselect attribute not showing on frontend when two or more options selected

I have a custom product attribute that uses a multiselect input to select one or more product stockists. The data is being stored correctly, and selecting 1 option adds the information to the "More ...
3
votes
0answers
45 views

Order Collection based on Multiple Select Option Values Magento2

I have a list of products (books) with a custom eav multiple select attribute named 'authors' in magento 2. This attribute is 'visible_on_front' and also 'used_for_sort_by'. I am trying to use that ...
3
votes
1answer
24 views

Create an Attribute Set and create a Product Attribute in Product Details Group for only One Attribute Set

I asked a question here about this just over a week ago, but it took a little while to edit the post to include some code. The original post and code can be seen here I am able to create an ...
0
votes
1answer
35 views

Magento 2 : How to add new fields in eav_attribute?

For my custom modules I need some new fields for product attributes in eav_attribute. Does anyone know how to add these fields?
1
vote
0answers
16 views

Photos needed for product attributes?

I have some shirts that the client can choose the size, color and also add a custom text and choose the color of the text. My problem is that I'm not sure if I have a photo of each shirt color without ...
1
vote
0answers
16 views

How to create a custom module for image and video upload in Admin product page magento2.2.5?

I want to create a custom module for image and video upload in Admin product page magento2.2.5? Any help would be appreciated.
1
vote
1answer
46 views

Magento 2 product attribute filter url rewrite?

I have override url-rewrite router in my custom module,and add my custom rewrite code in override router file. after filter url created like below : http://domainname.com/services.html?manufacturer=...
5
votes
0answers
26 views

How to create upload image and videos attribute in Admin product detail page in Magento2.2.5?

I want to create image and video upload for in Admin Product page Refer my screenshot: Under Available in I have created a attribute aaa, Under aaa I should get images and videos upload like this. ...
2
votes
2answers
30 views

How to add Product image attribute in Magento2.2.5?

I have created Product image attribute in Backend in Magento2.2.5. Refer my screenshot But I am not able to see in Product detail page in Admin side. Is there any other way to do this or I am ...
2
votes
1answer
34 views

How can I have a Configurable attribute populated from a source

I have a product attribute, which is populated by a source model which is extended from AbstractSource. Because of this the attribute is not set with 'is_user_defined' = 1 and therefore I am not able ...
1
vote
0answers
27 views

Magento 2.1.8 EE unable to update product attribute iin admin

I have a product attribute full_short_description created from admin panel. For already existing products, I am unable to update the attribute value. But if I create a new product, I can change the ...
0
votes
0answers
9 views

How to get swatch image of multiple select attribute values in Magento 2?

I am using Magento 2.2.2 I have an attribute called "Brand" and input type for this attribute is multiple select. In this attribute, I have set "Small Image" in additional settings for one of the ...
2
votes
1answer
10 views

M1.9x How can I reset 1 multiselect attribute for *all* products

I want to reset 1 multiselect attribute for all products. So remove any value (set to null) for all products and save Ideally targetting the products that have a value set ... it makes no sense to ...
2
votes
0answers
30 views

Magento 2 I have added the custom field in the product attributes field but that not get save value at edit time in product attributes form

I have add the custom text field at the stores->attributes>product in form field that save into database but when i return edit that attributes that value not set at the edit times. Here is the ...
1
vote
3answers
135 views

Magento 2.2.3 How to check if attribute exist in current product?

I want to check if attribute exist in current product by attribute code. For Ex: attribute code if color and this attribute is assign to current product. but if i pass something else like abcde and ...
0
votes
1answer
32 views

How to remove products tab when it has no value in admin in Magento 2?

I am using Magento 2.3 I have set custom product tabs in product detail page Now I want to display a particular product tab only if it contains a value in admin. for ex. if there is no description ...
0
votes
2answers
68 views

Change order of configuration options in customer product view

I have configurable products with many attributes like size and color in v2.2.7. They are listed in the admin area and in Stores > Attributes > Attribute Set > Default. The order currently is "Size", ...
0
votes
1answer
45 views

Error after creating boolean attribute magento2

I have created a boolean attribute using below code. $setup = $this->_objectManager->get('Magento\Framework\Setup \ModuleDataSetupInterface'); $eav_setup_factory = $this->...
1
vote
2answers
120 views

Magento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?

I want to get all the location names from the Multi Source Inventory (MSI). How could I get a collection of all locations in my custom module? Here I want to create a new multi-select product ...
1
vote
0answers
30 views

GET method arabic parameters doesn't work magento 2

I'm building rest api to get products filtered by specific attribute, when I pass parameter for GET method in arabic I get request doesn't match any route and when I send it using POST method it ...
1
vote
1answer
26 views

Rewrite product page URLs based on that product assigned attribute URLs in Magento 2.3

I want to achieve product URLs based on product attribute for product page only. I have product attribute manufacturer, having drop downs such as lg, samsung, motorola etc. My store category ...
0
votes
1answer
48 views

Magento 2.3 - Get all values from custom multiselect attribute

On the product page (within the "column main" area) I have created a phtml file. In this I want to echo all the chosen options of a custom multiselect attribute. What I have: current product (via \...
0
votes
0answers
11 views

Custom attribute issue while creating bundle product in Magento 2?

I am using Magento 2.3 I have one attribute called Manufacturer. I have also added these attribute in all attribute sets in my website. The issue is that when I tried to create bundle product or ...
0
votes
0answers
30 views

How to add product option dynamically in configurable product Magento 2?

how can I add and remove custom options for configurable products from admin. Please suggest any ideas or extension. Thanks.
1
vote
1answer
47 views

Change attribute from text to dropdown

How can I convert a product attribute type from Text to Dropdown in Magento? I already have attribute values assigned to many products, so don't want to lose these in the process.
0
votes
0answers
16 views

Hierarchical Bundled Products

We sell kits to build CNC machines. This means we go from a solidworks model, to a hierarchical parts list, to kits and products. We currently use osCommerce but are going to be migrating to Magento 2 ...
0
votes
1answer
36 views

Show Separate product detail page based on attribute value in Magento 2

Shall we load separate product detail page based on the product attribute value in magento2 ? I have created the attribute product called "type_of_product" If this attribute value is "Test 2", I ...
0
votes
1answer
51 views

How to Filter a Custom Column in Product Listing?

I have created a custom column in Product gird by a module, which shows Parent product's SKU there. It's working fine but when I try to filter it Magento gives "Something went wrong with processing ...
0
votes
0answers
49 views

Product drop down attribute with custom source model not display in layered navigation Magento 2

I have created a product's attribute select type (dropdown) source model of this attribute from custom table. Everything is fine but when I set this display in layered navigation, It's not showing in ...
0
votes
2answers
61 views

Load Custom Template file with argument as product id or sku in magento2

I have created a custom module and calling that template file from the CMS page as like below. {{block class="Vendor\Module\Block\Custom" template="Vendor_Module::custom.phtml"}} In templates/...
0
votes
1answer
24 views

How to get all products and its attributes?

I want to fetch all products in my ecommerce and all its attributes. How can I do that? For example, I want to be able to call a function that gets all products, an then one by one fetch all the ...
2
votes
2answers
84 views

Magento 2.2 - Get product attribute value in order detail Admin

How to show product attribute value in order detail in Magento 2.2.6? I already tried below code but not working: File Path: public_html/vendor/magento/module-sales/view/adminhtml/templates/items/...
0
votes
0answers
51 views

Magento 2 Create new “Catalog Input Type for Store Owner” Attribute

I need to create a special input type in adminhtml product form. My input will display as a table but save data as a standard text input. I need to create a "Catalog Input Type for Store Owner". With ...
0
votes
0answers
26 views

Add New Pricing method in Magento 2

I need to implement two pricing on my Magento 2 store. Here are the pricing : Landing Cost - Total price of a product or shipment once it has arrived at a buyer's doorstep MRP - Maximum Retail Price ...
0
votes
1answer
60 views

Create/Update Attribute Option Custom api issue

I have created custom rest api to create/update attribute options by attribute_id. Here is my webapi.xml file code. <route url="/V1/attribute/AttributeOption" method="POST"> <service ...
0
votes
0answers
21 views

Magento1.9.2 - Create product attribute for Time

Any possibility for creating product attribute for only Time
0
votes
0answers
16 views

Magento2 Product Custom Attribute needs load()

Q1. Why does getData() return null, I need to do load() first? They seem to be the same class type.. function (Magento\Catalog\Model\Product $product): $product->getData('my_attribute_1'); //...