Questions tagged [attributes]

Magento Entity Attributes

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

get values from attribute page to checkout page

I have below code which work on attributes php file and i want to echo same information on check out page, but doesn't work. what am i missing, please help <?php /** * Copyright © Magento, Inc. ...
user avatar
0 votes
1 answer
16 views

Attribute with Image to show next to title

I have created an attribute and when clicked on, I need it to show this image next to the product title on the front end. https://www.ukmadesweets.co.uk/pub/media/logo/stores/1/icon-echo.svg Could ...
user avatar
0 votes
0 answers
15 views

Why dropdown items are displayed in the wrong order?

I created a module with a custom dropdown attribute, but the numbers are not displayed in the right order on the product page. How do I fix this? InstallData.php <?php namespace Test\RingSizes\...
user avatar
0 votes
2 answers
26 views

What is the product attribute for product ID?

Every product recieves a unique ID, shown on the left on the product page screenshot. I do not choose this nunmber, the number is assigned by the system. Now I am trying to create a pricefeed with XML ...
user avatar
0 votes
1 answer
39 views

Show a Text if attribute is set to "yes"

I want to display "it working" on default.phtml if the product is assigned to attribute [Franke] with "yes". Please help. I have tried the below code, but it doesn't work ...
user avatar
0 votes
1 answer
24 views

Magento 2 : Get Configurable Product using swatch-option

I want to get product id on selecting swatch option.for that i have used code as given below. i am getting error of "Cannot read properties of undefined (reading 'options')" as per given ...
user avatar
0 votes
1 answer
60 views

Magento PWA show custom product attribute in details page

I am trying to modify product details page on Magento PWA Studio. I have a custom attribute(text-editor type), and I have some html there. When I am trying to call that attribute it comes as string ...
user avatar
  • 704
0 votes
0 answers
11 views

How to get attributes based on attribute set in dynamic row?

I have created dynamic rows and there I have two fields. 1st field is I am listing out the attribute sets and in the 2nd field I need to show the attributes based on the attribute set. How can I set ...
user avatar
  • 480
0 votes
0 answers
61 views

Magento 2 : How to add product attribute as color picker in product form?

I'm trying to add color picker attribute in product form I have referred this link:- https://kiwicommerce.co.uk/blog/how-to-add-a-color-picker-in-product-edit-form-in-magento-2/?unapproved=1745&...
user avatar
  • 1,838
1 vote
1 answer
31 views

How do I get all option value id's for a given attribute in a specific category in my custom block?

My shop has an attribute manufacturer. This attribute has option values like adidas and nike etc. I have a custom module with a block I placed the block on a specific category through a widget The ...
user avatar
  • 1,281
1 vote
1 answer
58 views

How to enable Use in Layered Navigation field in admin panel?

I don't know why with some attributes, Use in Layered Navigation field is disabled.
user avatar
  • 11
0 votes
0 answers
9 views

custom attribute on catalogus page

I'm trying to display a custom attribute on the catalogus page (grid). I've created catalog_category_view.xml and placed it in app/design/frontend/THEME_VENDOR/THEME_NAME/Magento_Catalog/layout and ...
user avatar
0 votes
1 answer
18 views

How can I get the codes from the options of an attribute?

public function getOptions($attributeCode) { $attribute = $this->eavConfig->getAttribute('catalog_product', $attributeCode); $tmpOptions = $attribute->getSource()->...
user avatar
1 vote
0 answers
34 views

Magento 2 we are unable to change attribute set from product edit

it shows an error in the exception log and the screen is stuck when trying to change the attribute set of the product
user avatar
0 votes
0 answers
30 views

How to copy a product's attributes value to Manufacturer - Magento 2

I want to copy a product's attributes value to Manufacturer e.g. I have attribute CAR MANUFACTURER with values OPEL, TOYOTA, AUDI, BMW... I need to copy values OPEL, TOYOTA, AUDI, BMW... to ...
user avatar
1 vote
0 answers
60 views

Page Builder was rendering for 5 seconds without releasing locks

My products have small descriptions and description attributes. A small description is a Tinymce field and a description is a pagebuilder. When I edit a product, if I open the content section, here ...
user avatar
  • 431
0 votes
1 answer
38 views

Magento 2 -> Error Checkout -> Notice: Undefined index: number in vendor/magento/module-checkout/Block/Checkout/AttributeMerger.php on line 174

The problem appears when entering the checkout page 1 exception(s): Exception #0 (Exception): Notice: Undefined index: number in /var/www/../vendor/magento/module-checkout/Block/Checkout/...
user avatar
0 votes
0 answers
11 views

Preventing todays date in datepicker when existing date is null

I have added a date attribute to magento in a custom product import module, if the value is null in the db, which is what i am looking for the frontend date picker defaults to todays date on null ...
user avatar
0 votes
1 answer
22 views

General system exception happened - The custom_range value wasn't found in the algorithms

When importing a csv spreadsheet I am getting the following error:
user avatar
0 votes
1 answer
10 views

add "add to cart" button in popup containing attribute information

in catalog page, there is a tool tip next to each product,once we click on it a popup, that contain attribute detail and add to cart button, should appear. my question is how to add 'add to cart' ...
user avatar
1 vote
0 answers
39 views

How to add category filter with OR condition in product collection?

I'm using magento v2.4.1 and i have a custom attribute name landmark, and i want to filter a product collection using landmark attribute and category id using OR condition. Currently i'm doing it like ...
user avatar
  • 177
0 votes
1 answer
19 views

Update attribute : add source

I have a product attribute that have been added directly in the database threw a migration process. I want to update that attribute to give him a source. But this seems not to be working. $attribute = ...
user avatar
  • 772
0 votes
2 answers
46 views

How to delete all custom product attributes

How can delete all custom product attributes from database and keep only system attributes in Magento 2.4
user avatar
0 votes
0 answers
56 views

Magento2 remove specific filter on specific category value under Layered navigation

I'm trying to hide/disable a particular attribute filter in layered navigation for a specific category. I do not want to show all filter in left side bar. If I disable in Anchor is "No" ...
user avatar
0 votes
0 answers
16 views

Customer Address attribute not getting saved from backend and frontend in magento 2.2

I have created customer address attribute using InstallData.php. The attribute gets successfully created in backend but when i add some value in it, the value is not getting saved and again returns as ...
user avatar
1 vote
0 answers
34 views

Magento 2.3.4: Add new column to Manage Options of Product Attribute

Like the title, I'm trying add new column to Manage Options. The problem is that the style of the row I want to add is select. It is showing but when I click on the select box, the list of options is ...
user avatar
0 votes
3 answers
74 views

Magento ver. 2.4.3 sort attributes in additional tab on catalog product view

I need to re-order / sort the attributes on product detail page. They are sorted with there attribute_id but I don´t want to delete and recreate them. I know that the attributes can be sorted for the ...
user avatar
0 votes
0 answers
23 views

How to create a product with multiple variables for set a prices

I am struggling trying to create a product in magento with diferent prices We will sell travel package but the price have to change in this 3 cases. Season (more expensive in hight season) 3 ...
user avatar
  • 1
0 votes
0 answers
25 views

Magento 2.3.7 filter without results in prod system

On Product-Listing the available Filters got listed for the configured Product Attributes, also the availabe amount of products for this attribute is shown within braces on the listing. When apply a ...
user avatar
  • 141
0 votes
1 answer
30 views

How to Delete Attribute Sets

I have a site where we have about 300 attribute sets that we are not using. I want to mass delete this attribute set but I can't find how to do that. I will prefer an option where I can delete it from ...
user avatar
0 votes
1 answer
59 views

Magento 2.4.2: how to add a custom attribute field

I need to add a custom attribute field named google_product_category in addition to those already existing for products. I tried doing it with Add attribute button, but ended up seeing a new field ...
user avatar
0 votes
0 answers
66 views

Add a custom attribute to Cart Price Rule Coupon

I want to add a boolean attribute published to the coupon rule form (different from activate) but the same kind of attribute. From what I see the only attribute linked are product attributes. I've ...
user avatar
  • 772
0 votes
1 answer
97 views

How to get Multiselect attribute admin value in magento 2?

I am trying to get admin value in multiselect but I am not able to get this can anybody suggest?
user avatar
  • 217
0 votes
0 answers
20 views

Magento 2 - How to make a customer attribute required in admin_checkout form only

Magento 2 - How to make a customer attribute required in admin_checkout form only
user avatar
0 votes
1 answer
54 views

How can I get an attribute option id from its label?

Magento 2.4: I have a custom product attribute called shop_status. It has two possible options: ACTIVE INACTIVE I would like to get the option ID from the text label, eg: $id = $attribute->...
user avatar
0 votes
1 answer
39 views

How to display cms block in product page if some attribute is set to yes

I want to display cms block if product has the attribute set to yes. A product may have multiple attributes set to yes, and may display multiple cms blocks. Attribute label text will be a BlockId. It ...
user avatar
0 votes
1 answer
40 views

How to delete empty attribute values in Magento 2

We have an attribute for some of our products that has hundreds of empty values. If you try to make and save any changes to any values, it kicks you back out to the dashboard and the changes are not ...
user avatar
  • 1
1 vote
1 answer
48 views

how to get custom product attribute in block file?

I have created one custom attribute on the admin product details page, the attribute name is hsn_code. now I want to get this attribute value in Block/Adminhtml/Sales/Igst.php I need in Igst.php ...
user avatar
  • 105
0 votes
0 answers
33 views

How to get category name and count product when selecting manufacturer select attribute in Magento 2?

I have created a new page where I want to get the number of selected products from the same manufacturer in all categories into a list. Does anyone have any idea, how to get this data? Thanks. https://...
user avatar
1 vote
3 answers
82 views

How to save stock attribute value ('qty') for a product with Magento 2 objectmanager?

I've found out how to do this with other attributes. For example a custom 'location' attribute: $product = $this->objectManager->get('Magento\Catalog\Model\Product')- >load($post['id']); ...
user avatar
0 votes
0 answers
14 views

Magento 2 - Adding Attributes on Attributes?

Anyone know if its possible to add a column here like a dropdown for us to basically group these swatches (Attribute to be used for something else later on).
user avatar
  • 169
0 votes
3 answers
119 views

Magneto2: Base table or view not found table amasty_conf_group_attr doesn't exist

The changes made in products attributes doesn't show on the frontend. The part of the database won't update and shows the following message. "Base table or view not found table ...
user avatar
  • 3
0 votes
0 answers
38 views

Sorting products in the catalog by filter

I create a module that displays additional filters and does sorting for them: app/code/VendorName/ModuleName/Plugin/Model/Config.php <?php /* * Copyright © 2019 Zekinah Lecaros. All rights ...
user avatar
  • 57
0 votes
1 answer
45 views

Get attribute from using dropdown yes no

I have created a dropdown attribute with the options of "yes" and "no" with the hope to show an element with yes is selected in the admin. I have a few of these dropdown attributes ...
user avatar
0 votes
0 answers
15 views

Show the Order Attribute in the creation of New Order in Admin Page

I have created an attribute for Orders through a module using the steps here http://www.thecoachsmb.com/how-to-add-order-attribute-in-magento-2/ But in the example given, the value is only added after ...
user avatar
  • 101
0 votes
0 answers
31 views

Magento 2 | getData("news_from_date") return wrong value

I created a php file external to Magento2 with a foreach that takes the value of the "news_from_date" attribute. On many products the "news_from_date" field is empty but despite ...
user avatar
  • 297
0 votes
0 answers
26 views

Magento 2: Get Layered Navigation filters by store id

We are fetching layered navigation filters as follows: $layer = $layerResolver->get(); $layer->setCurrentCategory(2); $productCollection = $layer->getProductCollection(); $productCollection-&...
user avatar
  • 548
0 votes
0 answers
14 views

Layered navigation results show only products with and-and attributes, now showing or-or attributes, Magento 2

How can I do and-and filter when filtering with layered navigation? For example: When I filter attributes (size = 50, color = red), the result returns a configurable product when some of this child ...
user avatar
  • 728
1 vote
3 answers
243 views

Is there a limit for Number of Options for a Dropdown Attribute?

Is there a limit to the Number of Options for a Dropdown Attribute? Let's say I have 10000 different lists of options in an attribute. How that will affect the Magento, website load time, backend data ...
user avatar
  • 109
0 votes
0 answers
22 views

How to get attributes ordered by admin Magento2?

I need to sort attributes like default admin sort (attach) code // $collection from Magento\Catalog\Model\ResourceModel\Product\Collection `$collection = $prodColl->addAttributeToSelect('*') ...
user avatar
  • 728

1
2 3 4 5
45