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

0
votes
1answer
11 views

Magento 2: Facing issue in “Edit Configurations” can't save product

I faced issue in "Edit Configurations" of product, can't save products, in Magento 2.3.1 with Apply images for all. Error: The "/var/www/html/magentosample231/pub/media/tmp/catalog/product/d/o/...
0
votes
0answers
11 views

Magento 1.9.4.1, saving product attributes values lost/messed up

I have a catalog drop-down attribute, within that attribute there are about 70 options defined. Every time after saving that specific attribute, one of the options loses its display-value for each ...
0
votes
0answers
23 views

Configurable product add extra price in attribute option dropdown in Magento 2.3.1

I am using Magento 2.3.1, I have created configurable products associated with simple products with different prices for variants on the website. have used one text-swatch type attribute and 2 ...
1
vote
0answers
23 views

How to update product's attribute value in Magento 2?

i want to edit values of my attributes product so i tried with event after save but nothing changed so i tried this : <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
2
votes
0answers
22 views

magento2 custom product attribute acl permission how to? [closed]

protected function _isAllowed() { return $this->_authorization->isAllowed('Mageants_AdvancedPermissions::catalog_attributes_attributes'); }
2
votes
1answer
67 views

I can see attribute in Catalog -> Products grid but how to Shown Product attribute in Sales -> Orders grid in magento 2

I have created a custom attribute "item location" for every product. It was created in Stores -> Attributes -> Product, then assigned to the default attribute set. So every item has its own ...
2
votes
0answers
38 views

Magento 2.3.X Country of Origin or Manufacture attribute doesn't save on product page

I'm trying to save 'country of manufacture' attribute on product page but it's not save it. Other attributes is save successful. How can i fix it ?
1
vote
0answers
9 views

how to make my custom attribute an attribute of configuration m2

I want to create a configurable product according to my custom attribute but i can't find it when i pass create configurations here is my code public function install(ModuleDataSetupInterface $setup,...
3
votes
1answer
20 views

Magento 2 - Store wise description very hard to manage

I have 1000s of products and there are 3 different stores. Product descriptions are stored on store level. So everytime I need to update any description I have to update it on all store levels. Is ...
0
votes
0answers
12 views

How to change the value of options for attribute product after saving the product magento 2

I have a custom attribute type select that does not have options in creation but when i create a product this attribute will have options according to the name and the data in custom table so how to ...
0
votes
0answers
11 views

How to export all attributes ad its options to Maganto 2 store by using magento 2 connector with Akeneo PIM?

In PIM akeneo dasboard, after exporting products with all attributes and its options, Magento 2 store is not receiving all the attributes options. I have already set all the setting: 1)in PIM ...
1
vote
1answer
29 views

how to create a dropdown attribute for product with dynamic options M2

I want to create a new attribute product with dynamic options that comes from custom tables then i want to edit my product and make it configurable according to this attribute how to proceed thanks in ...
0
votes
1answer
34 views

How to get attribute codes used to build configurable product

I need to get attribute codes used to build to the configurable product. How to get them in PHP? Please help.
0
votes
0answers
13 views

can't find my new attribute with dynamic options

when i access to stores product my new attribute i found this : ok this is my code to install the new attribute public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $...
0
votes
1answer
29 views

Change the name Attribute of product to not required magento 2

I want to generate the name of product based by sku. For example : when i enter 10014000 for the sku, the name of product will be Bovin phenelop 16/18 blanc 100. This information is coming from ...
0
votes
0answers
14 views

How to set shipping method at Checkout page programmatically as per product attribute

I have a product attribute color that have two options RED and BLACK. i want to set shipment method UPS when product have attribute value RED and Fedex when attribute value BLACK.
1
vote
2answers
28 views

Undefined index - get key - on product page

I keep getting : Notice: Undefined index: from in /app/design/frontend/default/theme246k/template/catalog/product/view.phtml on line 1 Notice: Undefined index: from in /app/design/frontend/...
0
votes
0answers
19 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 ...
1
vote
1answer
56 views

Magento 2 custom module set the css and js file using the check the particular product attribute is enable or not

I have a custom module.I want to the add the css and js file if my custom product attribute value is available. In xml I can't check product attribute value is available or not. so what i do? ...
3
votes
1answer
25 views

How to show ts_dimensions attributes in product edit panel?

I have a three attributes: How can I show them in Product Editor?
0
votes
0answers
27 views

Custom Product Attribute values editable through Dashboard

I created a module that install and upgrades custom product attribute programmatically. It works as intended, however, when viewing the attribute through admin dashboard, I am unable to make any ...
0
votes
0answers
25 views

Product Tabs display issue in the front end in Magento 2?

I am using Magento 2.3 I have created 4 separate tabs in the product details page. see below code: app/design/frontend/myvendor/theme/Magento_Catalog/layout/catalog_product_view.xml <block ...
1
vote
1answer
23 views

Manage hundreds of product attributes in a simple way

For the type of products that I manage in my eCommerce I should create about 300 product attributes to create a complete technical sheet. Is there a way to create feature in a product page tab, like: "...
10
votes
1answer
5k views

Magento 2 - Product sorting issue on category page using product attribute

I made product attribute and assign it on of attribute set so that it will show in the admin product detail page. Based on this product attribute I sort the product collection on category page. The ...
-1
votes
2answers
20 views

How do I get the product updated timestamp?

I am trying to display the data and time for the last time the product was updated. <?php $product = $block->getProduct(); ?> <h1><?php echo $product->getData('spec_sheet'); ...
1
vote
1answer
60 views

Magento 2, Add custom attribute after description field

I need to add a new custom attribute after description field. How make it? Thanks UPDATE: I want to show the attributes how this image:
2
votes
0answers
46 views

Web API: Product set use default status for store view

Our products are created and updated via the web API. When we update a product for all /rest/all/V1/products/123 and set status: 2 the product is disabled. But per store view it's still enabled ...
5
votes
2answers
84 views

Super Attribute Position on Product Page Magento 1

Hello Good Day to All I have Attribute "Malakas","Mahina","Payat" On a Product Page it will Show Malakas --Choose an Option-- Mahina --Choose an Option-- Payat --Choose an Option-- Is this a way ...
5
votes
1answer
39 views

Add button on product page

I want to add a button only on those products which are having product size.Button displaying over Color attribute. My XML file is catalog_product_view.xml <?xml version="1.0"?> <page xmlns:...
3
votes
1answer
53 views

Doubt about attributes (getting the brand)

I am a little confused about attributes whether they are simple eav attributes or not. I dont fully understand when an attribute has option or option value. How can i check it? So, for example in ...
0
votes
1answer
43 views

add new column to catalog product entity table

I add new column to catalog_product_entity. so when i want to add new filter to collection i get this error The "user_id" attribute name is invalid. Reset the name and try again. $subject->...
0
votes
2answers
60 views

How to create Dependent Product Attributes

I have created 3 Product Attributes, I want to make Start Date and End Date attribute to depend on Enable Attribute. When i make Enable to Yes both the Date Attribute should be displayed how can i do ...
0
votes
1answer
13 views

Add options to Sub-category attribute in Magento 1

I want to add additional option to the subcategory attribute but I cannot locate where to update its content within the Magento Admin Panel. See this link for full image - https://drive.google.com/...
2
votes
1answer
115 views

Help with Magento 2.3 custom product sort plugin

I have tried to implement a custom sorting plugin in Magento. Namely, with the options: Price (Low > High) Price (High > Low) Name (A - Z) Name (Z - A) Now, I have the plugin installed and ...
-2
votes
2answers
109 views

magento1 and magento2 which table to store all the category [closed]

magento1 and magento2 which table to store all the category .so which related table to store data like category and also give the different. Thank you, Your Faithfully, Mehul Kanjariya
1
vote
0answers
28 views

Set Length, Width, Height OOTB Attributes Using API

Currently I can only change weight using api not Length, Width and Height. these are out of the box attributes in magento 2.3 as seen in the product panel below. Price and weight is updated by POST ...
1
vote
1answer
26 views

Magento 2 : Not set custom attributes value when create product programmatically

When I create product programmatically I want to set custom attributes value. try to below code but it displays Uncaught Error: Call to a member function setCustomAttribute() $objectManager = \...
1
vote
1answer
45 views

How to get custom product attribute values in magento 2 jquery?

I want to get custom product attribute ('deliverytime') values for checkout config in jquery Here is the code for getting default product attributes jquery date-block.js function ...
0
votes
3answers
85 views

How to get simple product id from selected configurable Attribute id and it's value in Magento 2?

I have configure product id 2671 And selected attributes with value attributes id 280[color] and selected value 142[Black] attributes id 757[size] and selected value 181[M] Based on these values ...
0
votes
1answer
26 views

Magento 2 Shipping Method I want Ternary condition for thee Like 'LBS' : 'KILOGRAM' :'GRAMS'

I am using shipping method in Magento2 my website.but this shipping method only two weight unit support so I want three weight unit support. my code is below, so help me public function ...
1
vote
0answers
26 views

How to add attribute advance properties in magento 2.2.7

How to add attribute for product attribute advance properties in magento 2.2.7 I want to implement yes/no attribute for product and second attribute for image attribute for Product Attribute
0
votes
0answers
21 views

how to get configurable product id in cart item in magento 2 using js

I want to get the configurable product_id in cart. My Questions 1) I want to get configurable product id using js 2) Also get product attribute values in js
1
vote
1answer
21 views

Is there a way to select a field to be returned when using the getList() function within a Repository?

MAGENTO v2.2.6 To better illustrate my question here's an example. When using the ordinary collection I can limit the attributes/fields returned like so: NOTE: I wouldn't normally use the object ...
1
vote
1answer
34 views

How to show Additional Shipping Fee of per product on checkout page by an attribute

I have added an attribute for use on the product page: Now I would like it show on cart page like this: If the quantity of a product in the cart is increased, I would like the additional shipping ...
0
votes
0answers
21 views

Magento 2: Snippets for call (get) product attributes incl. helper via if statement in phtml to get the values in custom tab in product page

Trying to reproduce the phtml files content from M1.9 to M2.3. Calling a phtml file via: {{block class="Magento\Framework\View\Element\Template" name="delivery" template="Magento_Theme::html/...
0
votes
0answers
21 views

Empty row in dropdown admin panel magento 2

I had empty row in drop down for attribute in adminpanel. Although there is no empy value while creating attribute.How to remove it.
0
votes
0answers
32 views

Boolean attributes not displaying any options when used as part of conditions or actions in a promo rule

I've got a couple of boolean custom attributes which I'm having an issue using in cart or catalog price rules. These attributes appear correctly on the product edit pages and can be used successfully ...
1
vote
1answer
32 views

Update Product Attribute through Import Tool using csv - ERROR: keep creating new same sku number - magento 2

I'm try to update a product attribute called "custom_stock_status". I have put together a csv file, with 2 columns like this, and import the file using import behavior "add/update", but it keeps ...
1
vote
1answer
27 views

Magento 1.9 : How to get the total price of products added to cart based on product Attribute?

I'm currently working on a Magento extension where I need help in getting the total price of all products having the same attribute when they are added to the cart. Here is my code for a better ...
2
votes
2answers
127 views

Magento2 : How to add attribute options values into dropdown attribute programmatically

Need way to add options to already created Color attribute.