Stack Exchange Network

Stack Exchange network consists of 174 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 about creating, managing and using product attributes

0
votes
0answers
20 views

Multiple select product attribute is not showing in front end

I have created a product attribute(Bookcase Doors) and selected it has multiple select and in advanced attribute properties I have made the scope as Global but I am not getting this attribute at a ...
2
votes
0answers
13 views

Magento 2.2: How to disable Attribute Set on product page

I have about 5000 types of attributes and when loading the product page it stays locked for 20 seconds. How can I remove this field from the product page?
0
votes
0answers
15 views

tag a limited quantity ribbon or label in listing view or grid

@MagentoAaron please help me to tag all my products as limited quantity without any exception in Magento community 1.9 grid view as well as listing view.
0
votes
1answer
17 views

How to add new field in product attribute options in Magento 2

I want to add custom field for attribute options in Magento 2 how can I do?
0
votes
0answers
10 views

Is it possible to add icon for multiselect product attribute options in Magento 2?

I have a requirement to upload icon or image for an option of multiselect options in magento 2. Or any other way to do this? For example: I have a multiselect product attribute: KeyFeature And ...
0
votes
1answer
22 views

Magento 2: Adding custom attribute for product

I want to add a product attribute like https://nwdthemes.com/2018/06/21/magento-2-working-with-arrayserialized-backend-model/ How I can create a product attribute with multiple value in one record?
0
votes
2answers
10 views

Magento 2 Get product attributeId in foreach loop

I have a collection of product I am looping and displaying for E.G ... $product->getName() ... $product->getProductUrl() ... Now Also I am getting it some option like attributeText foreach ...
0
votes
0answers
32 views

Custom backend model for multiselect attributes causes exception

Exception #0 (Exception): Warning: Illegal offset type in isset or empty in /var/www/html/magento2/app/code/Magento/Eav/Model/Entity/Attribute/Source/AbstractSource.php on line 76 Steps: create a ...
0
votes
0answers
26 views

How to display color and size in magento 2

I am using magento 2.2. I've both color and size attribute and I want to display on frontend I tried and colors are showing in left side:
0
votes
0answers
6 views

Magento 2.2.6 on WAMP - Product Attributes will not save Visual Swatches

Process: -Create new attribute -Add Visual Swatches with attached images from import folder and labels -save new attribute Expectation -New values are saved in the product attribute Result -no ...
0
votes
1answer
14 views

Magento 2 Get product collection filter by atributes does not give the exact match

I have created a filter to get product bellow is an examples: $filter = array( array('attribute' => 'color', 'eq' => '2'),//id of option array('attribute' => 'size', 'eq' => '5'),// ...
0
votes
0answers
8 views

Save a loaded product with the checkbox checked to “Use Default Value”

In magento 1.7, I try to save a loaded product for a specific store and I would like to check for the attribute "special_price" the checkbox "use default value". Do you have an idea ? Thanks
0
votes
0answers
14 views

Magento 1 REST API All Product attributes

I'm just trying to get all attributes of Product using Rest API Following is in my api2.xml <products translate="title" module="Test_Connector"> <group>Test_api</group> <...
0
votes
0answers
22 views

Magento 2 {“message”:“Child product does not have attribute value %1”,“parameters”:[“attr_1004201801”]}

I am creating configurable products using REST API: Steps I followed : Created configurable product Created child products Set the configurable attribute When I try to link child products to ...
0
votes
0answers
8 views

Product custom brand attribute doesn't updated automatically after assigning product from brand extesnions

Please visit here to see my problem:- http://nimb.ws/JkrGdY http://nimb.ws/Qi6rBn http://nimb.ws/sb3M8p I've approximately 5k products so it's not possible to save individually, from the grid I ...
1
vote
0answers
23 views

Use CMS blocks inside product attributes

I want to use CMS blocks inside product attributes, eg in description and short description. inside product description I've added {{block id="test1"}}. i have two observer ...
0
votes
0answers
15 views

Magento 2 how to have product Advanced Inventory as store level

How to set product Advanced Inventory as store level. I need this store level for each product I have two stored one is retail and wholesale, How can I set quantity increment only with wholesale So ...
0
votes
0answers
36 views

In Magento 2.2.5 The Custom attributes values are not coming in Collection

In Magento 2.2.5, I am creating a Custom Product and Customer attributes. It is saving fine, but while retrieving, It is not coming in the Collection. Here is my Code. UpgradeData.php $eavSetup = $...
0
votes
0answers
13 views

How to change other values along with size change?

When I change the size of configurable product, its price is changing. But along with that, I need to change the attribute value and other information as in the following image also. How can we do ...
2
votes
1answer
20 views

How to add rental period attribute in Magento 2?

RENTING PERIOD: How to add rental period attribute in Magento 2 ? So i can add price on Hourly and Daily Rental Period. There will be product like daily based renting type which are used for days ...
0
votes
2answers
40 views

New product attributes value cannot be saved in magenta 2

I have created nearly 10 new attributes under product attributes. Its added to attribute set as well. But now, when I update the product information, the data is not getting saved. Instead, after the ...
0
votes
1answer
13 views

How can i display admin users as product's attribute options in magento 2

I need to add a select type product attribute (same as size/color) Magento 2. but options of this attribute should came from custom table (like admin user). Thanks
0
votes
0answers
14 views

How to hide fields or Field sets on product add/edit in Magento 2 admin using observer

How can i hide fields or field sets on product add/edit page in magento 2 Admin form using Custom module. For example:- Cataloging Role can't add products Meta details and SEO Role can Edit only.
2
votes
1answer
25 views

product length width height

im importing a large csv programmatically and i want to save product length width height and didn't found any post related to this, so: I tried to: $product->setCustomAttribute('width',(int)$data[...
1
vote
1answer
32 views

How to get product parent category id and category id separatly in magento 2.2.6 using product ID?

Problem definition: I have product under below category: Beauty --> Sun --> my-some-product-name. where 'Beauty' is root category and 'Sun' is the subcategory of 'Beauty'. Currently, I am ...
0
votes
1answer
28 views

Programmatically Delete Product Attribute Sets

Due to some shoddy code from a previous employee I have inherited a Magento 2 store with thousands of erroneous product attributes and hundreds of attribute sets. I've been able to delete the ...
2
votes
0answers
17 views

Cant drag back product Attribute to unassigned attribute in Magento 2.2

Cant drag back product Attribute to unassigned attribute in Magento 2.2 I am not removing a default attribute, its created by me Manufacturer.
1
vote
0answers
20 views

Add attribute link in admin panel is showing as page isnt working!

When we try to create an additional attribute from the admin panel,it shows the following error: This page isn’t working restaurantware.local is currently unable to handle this request. HTTP ERROR 500
0
votes
0answers
27 views

Unset / modify attribute value before save

I have a problem in saving products which I need to unset an attribute value upon saving e.g. url key. I thought catalog_product_save_before would be the solution but it seems dispatchers don't pass ...
1
vote
2answers
26 views

Change product price based on choosen weight

is that possible to change easily the price based on product weight ? And is that possible to select product weight ? Let me explain : My website will sell for example some flour in bag of 25kg. But ...
2
votes
0answers
22 views

How to create a custom design product attribute

I want to create a product attribute like below image. When user click add then it will add two new textboxes. if clicked on delete button it will get deleted. All the data will be stored serialized ...
3
votes
0answers
9 views

Magento 2.2.5: Adding cart-attribute for cart-rules / conditions tab

I use a product attribute called "carton" which describes in how many carton a product is packed. I want to add a cart-rule which counts the amount of all cartons in the cart (accordingly the amount ...
2
votes
2answers
37 views

What is frontend when creating a product attribute

I want to know what is the use of frontend when creating a product attribute using installData or updateData. public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context) ...
5
votes
1answer
76 views

Magento 2.2.5 : How to place a check on prouduct page on product attributes

How can we can place an if condition on proudct attibutes in a frontend .phtml file In front end .phtml which is associated with our handle in custom module layout catalog_product_view , we get ...
1
vote
1answer
26 views

How to make a product not visible in storefront

Current Magento Version: Magento EE 2.2.5 I have created a product in admin panel I need that product not to display in storefront but I should be able to place an order for that product through API....
4
votes
2answers
30 views

Widget/block code in product custom attribute not rendering at front-end magento 2.2.5

I have created custom attribute of Input Type "Text Area" with WYSIWYG option Enable. After that add widget code in that product custom attribute input at store back-end. Its showing same code ...
2
votes
1answer
14 views

In how many tables, product custom attribute entries saved?

Suppose I have a product custom attribute 'brand', after choosing one of the brand options & saving the product in how many tables this product attribute will be saved? attribute "brand" type is ...
0
votes
1answer
35 views

Magento 2 Reindex Fail `Unknown column 'entity_value.value'` in 'field list'

I am having this error when running php bin/magento indexer:reindex also failing when loading the product: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'entity_value.value' in 'field list',...
1
vote
1answer
14 views

Magento 2: How to get value from attribute from store_id 0 (admin/unique)?

I'm trying to get store label for admin (store 0 - zero) but since I have something in "Default Store Label" I'm getting only that value. I need to find the solution to get always only the admin (...
1
vote
0answers
14 views

How to count “in stock” and also “out of stock” in layered navigation as per attribute in magento 2

I am trying to show count for all products "in stock" and also "out of stocks" in sidebar. I used bellow code but its not working. $size = $productCollection->getSize(); $itemData[] = [ ...
1
vote
0answers
14 views

Magento2: How to display product collection data under the drop-down on product view page?

How to display product collection data under the drop-down on the product view page? I have product collection data and I want to create a new custom drop-down option and which data selected in drop-...
0
votes
0answers
17 views

Magento 1: Mix-and-match Bikini Builder

I’m setting up an online store selling swimwear. I have a number of products (bikinis) and need to allow customers to select either the set, or the top and bottom separately with different size bikini ...
0
votes
1answer
22 views

which observer to call while removing item from cart and empty cart in magento 2?

Is there an observer which can be used to observe events when a product is removed from the cart? I haven't found any.
0
votes
1answer
34 views

Product Condition

We're unable to find anything through the web regarding adding a product condition attribute in magento2. We would like to add a Used, Refurbished, New, etc. but weren't sure how can we implement that ...
1
vote
1answer
33 views

Magento 2: How to display custom attribute in product page?

How can i display an attribute under the title in magento 2.2.5
1
vote
1answer
75 views

Magento2: How to get product collection by attribute or category id?

How to get product collection by multiple attributes? Magento 2.0
0
votes
0answers
17 views

Configurable product set variant per store view

I have cloths website, with multi store view for french, germany etc. For a configurable product with attributes like say color, size say: Size: M, L, XL Color: red, green, yellow, black I have ...
0
votes
1answer
55 views

How to add attribute filter in product listing page in magento 1.9?

How to add attribute filter.For eg, When city attribute not set in any product then this product are showing after filter of city. Here is my Product Collection List.php block file public function ...
0
votes
1answer
34 views

Magento 2: Adding custom attributes to pages in the front end

I've added a custom attribute in the Magento 2 back end called preorder and preordernote, then in my custom theme I have created an override to display Preorder instead of Add to Cart in the product ...
0
votes
0answers
15 views

Magento 2 configurable product not displaying parent attribute value

When I created a configurable product, more information tab is showing attribute value as NO, it is unable to retrieve its value from its parent. After selecting the type under the configurable ...