Questions tagged [product-attribute]

Questions about creating, managing and using product attributes

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

Magento2 - Attribute taking 0 as default value

I have a strange issue and not sure what is wrong, I have identical attributes (see image below), but the strange part is when I keep Metal 02 Weight blank and save the product its taking 0 value ...
0
votes
0answers
10 views

Add attributes to bundle-product options

How can I display custom product attributes for bundled products options? Products that are used as bundle-option are not fully loaded, so i cant access all/custom attributes. (Right?) E.g. I'd like ...
0
votes
1answer
16 views

Removing attributes from New Cart Price Rule - Actions tab

At New Cart Price Rule -> Action Tab. There is a green plus mark, where I can choose Conditions. The problem is, that I see there all added attributes to Magento but I need only few. Is there a way ...
0
votes
1answer
11 views

possible to write product custom attributes into session?

I have a product custom attribute, want to write in session when then product detail page was load. So I can get use the session value on the other block on the same page. Anyone can give me an advise?...
0
votes
3answers
33 views

Not able to get product image

How to get product image in "default.phtml" file ? Magento2/vendor/magento/module-sales/view/frontend/templates/email/items/shipment/default.phtml I am getting the shipped product object in ...
0
votes
2answers
23 views

Product Attribute always returns null

my products has a custom attribute named producing_days and im pretty sure that it has a value in catalog_product_entity_varchar now im trying to access producing_days from quote item /* $item is a ...
0
votes
0answers
22 views

Product grid - sorting by custom field - not treating as integer

I have a Magento 2.4.1 site where I've added a custom attribute to store a discount percentage. I want to sort a category by this value. However, in the grid list view (based off the Luma theme), it ...
0
votes
1answer
50 views

Display attribute value as a Product Tab label in Magento 2

I added a new product Tab which displays the custom attribute value. app/code/Vendor/Module/view/frontend/layout/catalog_product_view.xml <referenceBlock name="product.info.details"> ...
0
votes
0answers
9 views

Get Stock Data for Individual Products - No Admin

Is it possible to check if an individual product is in_stock OR even the actual stock quantity without being the admin? The GET Request http://magentohost/api/rest/products/:id obviously returns ...
1
vote
1answer
20 views

Magento 2.3.5: Attribute value is changing automatically after every hour

I have created a custom attribute with Yes/No values in Magento 2.3.5. Its value is changing automatically after every hour from Yes to No. I can't figure out what is changing its value. Can any know ...
0
votes
1answer
19 views

In Current variation product weight not showing

I have added weight to the product but weight is not displaying in grid section
0
votes
1answer
26 views

Adding a productAttribute handler in Magento 2.4

I'd like my Magento 2.4 module to be able to modify the output of one of the product attributes programatically. I see that the ability to create a handler for this purpose was added in Magento 2.3.4, ...
0
votes
0answers
6 views

How to get specific value from attribute over the all

Image(1).This is my code to get attribute values. Image(2).It shows the values from particular attribute like color,it showing all the color's inside the color attribute. Image(3). I need to get these ...
1
vote
0answers
15 views

How can I import multiple select attributes in Magento 2.3.5?

I'm working with a new installation of 2.3.5. I am unable to import a multi-select product attribute. My attribute I'm trying to import is "Year" for auto parts. I have tried importing with ...
0
votes
0answers
17 views

Unable to edit/add product attribute in admin in magento 2.4.1

Kindly help if anybody have any idea
0
votes
0answers
100 views

Upload multiple attachments for product in magento2

I have a requirement to upload multiple attachments(pdf) for a product. used the following code to achieve the functionality. Vendor/Module/Setup/Patch/Data/Addfileattribute.php. <?php namespace ...
0
votes
0answers
21 views

Help I can't see the reviews comments

Can someone help me, in version 2.3.5 of magento I can't see the reviews, and also put it in a tabs
0
votes
3answers
42 views

Show product attribute on product page magento 2.4

i need to show an attribute to product page under the name of the product. The attribute is text and the code is plustile I try to load it to a shopbybrand extension that has a block in the wanted ...
0
votes
1answer
22 views

M2 - How to get attribute on Product Page showing above title

I am using custom theme inherit from blank theme, i want to display my attribute on product page above title, how to do that?
0
votes
0answers
7 views

Magento 2: Load product data-block (via webservice) on product page

We use Magento 2.3. We should be able to load a data block (containing a message related to the speed of delivery) on the product page. The message should be loaded real time as it depends on the ...
0
votes
0answers
12 views

Add a new dropdown attribute to product and display on product and check out pages

I want to add a new product attribute like sku or color option . The attribute is drop down. This i can do through admin side with out issues. But how can i display the value of the attribute in ...
0
votes
0answers
12 views

Where I get the code file of default products and attributes in magento 2 directory?

I want to Change Stock status Value Manually in Atrributes in admin in Magento 2 because I want to add one more attribute manually for stock status
0
votes
0answers
19 views

How to Change Page Title for Product Page

I'd like to add a product's designer as part of the title on the product page. I tried changing app/design/frontend///Magento_Theme/templates/html/title.phtml and added a sample designer name under it,...
0
votes
0answers
36 views

Magento2 - How to update the value of an option of a product attribute programmatically?

I'm using the REST api and believe that we can't update the value of an option of a product attribute: we only have the POST method and no PUT. So, what would be the best way to do it in code? In fact,...
0
votes
1answer
16 views

Magento 2: Get price for every attribute

I want to get price per attribute (this price will change when I change color or other attributes). Here is the method that shows the estheics swatch: protected function extractNecessarySwatchData(...
0
votes
0answers
34 views

How to add custom tab like “Up-Sell Products” in product edit in Magento 2.4.1

I want to create custom tab like "Up-Sell Products"
0
votes
1answer
56 views

Recently viewed products are empty in custom layout template in Magento2

I am loading a new template for product detail page based on the product attribute value. I have used the following code Vendor/Module/etc/events.xml <?xml version="1.0"?> <config ...
0
votes
0answers
23 views

How can I Create custom product sorting on category view page without use of product attribute Magento 2.4.1

I'm trying this app/code/Vendore/Sorting/etc/di.xml <type name="Magento\Catalog\Model\Config"> <plugin name="config" type="Vendore\Sorting\Plugin\Catalog\Config&...
0
votes
0answers
12 views

Magento 2: show price with another attribute in one box (button)

I want to add price with attribute in one button like in the bellow image. Magento version of shop is 2.3.4. I want to show the price with estethics attribute in a single box (button) like in the ...
0
votes
0answers
13 views

Magento2 - After changing Attribute set, dropdown attribute values changes to default store

I am using Magento 2.3.1. When I try to change attribute set in Magento admin product edit page, product's drop down attribute values changes from its store = 0 values to default store value. Ideally ...
0
votes
0answers
11 views

Different currency for an price attribute

I have an issue in magento 1.9 about the "special_price" attribute currency in the backoffice. For the packaged product, the currency of this attribute (special_price) is "THB" ...
0
votes
0answers
24 views

Magento 2.4 Custom Product Multiselect Attribute Options not saved

I have created a Multi-Select Product attribute programmatically but my options are not being saved. Vendor/CustomProductAttributes/Setup/Patch/Data/AddAllowedCountriesAttribute.php <?php ...
1
vote
0answers
10 views

Display specified variations of a configurable product in category display page, all linking to configurable PDP

This is less of a coding question and more of community knowledge. We would like to include product filters on our site, specifically for size and width. However, at the moment, for products with ...
0
votes
0answers
21 views

create custom product image attribute in magento 2

I have to add the custom image attribute in product attribute. I referred this link: create product image attribute in magento2. but image saved in my temp directory after saving the image how can we ...
0
votes
1answer
19 views

How can I setup a product shipping for magneto2 based on attributes or categories? A Unique Scenario

We have 3 categories CAT A, CAT B and CAT C. CAT A and CAT B product mixed in other categories also so we can't apply via categories i think. CAT C product is not mixed in other categories. TRANS-...
0
votes
0answers
13 views

addAttribbuteToFilter size doesn't match with the object in side it

I tried to use the addAttributeToFilter like the example below: $_productCollection = $block->getLoadedProductCollection()->addAttributeToFilter('discontinued', 1); echo($_productCollection->...
0
votes
0answers
6 views

Getting order items + custom product attributes and sum up by totals per product?

Magento 1.9 I want to get the sku, the name the custom attribute xyz (id = 425) and the totals purchased for each of the products found. This is what I came up with, but it seems to be running forever,...
0
votes
0answers
18 views

SelectAll option for product attribute multiselect dropdown

I'm trying to add functionality for SelectAll option in product attribute. Like if i click SelectAll option all other options should be disabled. How can i achieve this in attribute multiselect ...
0
votes
1answer
46 views

Magento 2 - Field “Tax Class” not showing

I have the problem that for a custom new product type there are no taxes getting calculated and are always 0. I found a solution here. It says there is a dropdown in the product details called Tax ...
2
votes
0answers
17 views

How to set different product attribute Default value for different store view?

I'm using magento 2.4, i just created a new product attribute like this: $eavSetup->addAttribute( \Magento\Catalog\Model\Product::ENTITY, 'brand_history', [ ...
0
votes
1answer
25 views

Magento 2 - Delete/update all products attribute values by attribute_code

In Magento 2, How to do a mass deletion of all products attribute values, by attribute_code. For exemple I want to delete all values for attribute_code = "my_code". EDIT I also want to ...
0
votes
0answers
21 views

Create fabric product which has meter as unit with default length

Want to create a fabric type of product which has Meter/Centi meter as selling unit in Magento 2. I'm following this Question Can you sell product (fabric) by the metre in Magento?, we can use decimal ...
0
votes
1answer
41 views

Validate uploaded file extension product save in Magento 2

I have created a product attribute input type as 'file'. Vendor\Module\Setup\Patch\Data\AddProductPdfProductAttribute.php namespace Vendor\Module\Setup\Patch\Data; public function apply() { $this-&...
0
votes
0answers
6 views

Get Image URLs (and prices) of product attributes (color)

I need the images for all color options of a product (and also prices in case they are different in different color options). I figured out how to get the color options of a product: $colorAttribute = ...
0
votes
1answer
34 views

Magento2 custom sql to get data from external table and import into product

In Magento2 I am trying to connect to an external database and table and use the data to update a custom product attribute where the sku' match in both tables. I temporarily put this code in my footer....
0
votes
0answers
14 views

Configurable product not displaying options on dropdown on product page

I created a new configurable product, with color configuration, I have two colors, but when i go to the product page, i can view de configurable product, but on the dropdown i can't select any option ...
2
votes
2answers
2k views

Elastic search illegal_argument_exception error “Text fields are not optimised” but it's NOT A TEXT FIELD

I upgraded to 2.4.1 and elasticsearch, which I did not use before. In my log I find the following error "type":"search_phase_execution_exception","reason":"all ...
0
votes
0answers
20 views

Stop propagation of attribute values between store views if value empty

I have following problem with magento 2.2.4. Let's say i have 2 store views and 1 product with text properties document_name (scope: store view). When I remove value of the property from secondary ...
0
votes
1answer
167 views

Magento 2 dynamic rows add row not working

I'm trying to add dynamic rows in the product edit page. I have successfully added a dynamic row UI component; the problem is the 'Add' button is not working after one row is inserted. Thanks! this is ...
0
votes
0answers
16 views

Product Form SEO URL KEY even listener

When I am adding a new product, Then, Search Engine Optimisation fields: meta title, meta description, meta keywords have an event listener which fills in these fields when the user types in the ...

1
2 3 4 5
36