Questions tagged [attributes]

Magento Entity Attributes

Filter by
Sorted by
Tagged with
1
vote
2answers
34 views

Move additional attributes below short description

I want to move additional infos below short description. I found this: <?xml version="1.0"?> <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
2answers
30 views

Shop This Collection

How can I achieve the following image(shop this collection) in Magento 2 product page by adding an attribute?
0
votes
0answers
12 views

Manadev Advanced Filters - restrict by store view in magento 1.9

We are using a customized implementation of Manadev Advanced Filters in Magento 1.13.1.0, and we have multiple websites and stores set up on our platform. The filter results seem to sometimes include ...
0
votes
0answers
9 views

Magento 2 grid filter(active filter) lost on page reload

I am using Webkul Marketplace ext. and they have issue on active filters. after filtering whenever reloading the page or visiting other page and backing on the filter page then filter get losses and ...
0
votes
0answers
20 views

M2 - Get attribute group name

With the code below I can load all the attributes from a specific group, in this case attribute group with id: 37 <?php $av_attribute_group = $_product->getAttributes(37); foreach ($...
0
votes
1answer
22 views

M2 - Get all attributes from attribute group

I have an attribute set for example "Camera" in that set, we have multiple groups like; General, Recording, Storage, Monitoring etc... All those groups have attributes which are specifications from ...
2
votes
1answer
21 views

How can get All Attribute of a specific Group in magento2

In constructor inject dependency protected $productAttInterface; \Magento\Catalog\Api\ProductAttributeManagementInterface $productAttInterface $this->productAttInterface=$productAttInterface; ...
1
vote
1answer
44 views

How to rename third-party table from our module in Declarative Schema in Magento 2.3.0?

I wanted to rename table ThirdParty to NewTable So I wrote the following code: <?xml version="1.0" ?> <schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
13 views

php code or mysql query to 'bundle' 2 attributes into 1

I would like to know if it's possible to update a text attribute by appending the content of another text attribute. i.e. For all my products, I would like that the new content of attribute1 becomes ...
0
votes
1answer
15 views

How can I add an attribute to all products?

How can I add an attribute to all products? Now i am adding this attribute to all sets. Is there a way it can be done faster?
0
votes
1answer
36 views

Magento 2.3.0 - Migrated from 1.9.3.4 - Some attributes not updating on product save

Having some weird trouble with a migrated M2 website. I've seen some resources on here, but they all don't seem to be showing the same symptoms. Migrated a site using the Magento tool - all went ...
0
votes
1answer
21 views

magento 2 how to get product (country_of_manufacture) by sku via API

Here is the script i get the product but the country_of_manufacture is not inside in the product object. get Product attribute from the function getProduct ($sku, $token, $ch) { $ch = curl_init(...
0
votes
1answer
24 views

The product page moves down - Magento 2

Good morning, I have a problem ... clean installation plus sample products. When you do not choose attributes and press button add to cart, the page is going down. Why is this happening? https://demo-...
0
votes
2answers
30 views

adding custom filter on Magento\Catalog\Block\Product\ListProduct getLoadedProductCollection not working

I am overriding below product collection function with sku filter but its giving all results in category page including that sku product. /** * Retrieve loaded category collection * ...
0
votes
0answers
15 views

Magento 2.x Layered Navigation for Text type attributes

I am trying to use the Layered Navigation to have quick filters for my customers on my various products. Some of my attributes are Text and probably could be picklists because there are only a dozen ...
1
vote
1answer
26 views

How to add filter product search result by product attribute in magento 2

i want add a filter in search result page, filter by attribute. How to make it? Thanks all
0
votes
0answers
5 views

Navigation attribute filter missing when attribute added to a product

Issue We have a custom attribute of "manufacturer". We've been using it for 9 months assigning it products and it appearing correctly in the shop sidebar / facet filters. Today we noticed the filter ...
3
votes
1answer
26 views

How can I reconfigure (revert factory settings) for Links Purchased Separately field?

I was experimenting with attributes API in Magento and accidentally modified the attribute that I didn't want to modify and which seems to be important in for product form. It is ...
1
vote
0answers
20 views

layered navigation filter in magento 2

Recently working on my module i need to filter product collection on the basis of certain attributes and show then on a custom page of my module i have doe this shit.. but problem is that the ...
3
votes
1answer
24 views

Magento 2 - Clean SEO URL with attribute

We run Magento 2 - 2.1.6 Question: If I create a link based on layered navigation attributes (storeurl: /clothes?cat=1029&gender=124) for example. We get a lot of errors regarding Google Search ...
3
votes
2answers
48 views

Magento2 - Reorder options inside layered filter

I'm quite new to Magento so maybe this is a stupid question. I have some filters set up in the layer navigation, one of them is the size of the products we're selling. I'd like to know if it's ...
0
votes
0answers
18 views

override product attribute values on product detail page

Hei We have tabs on product detail page and in specification tab I have length , weight attributes Those have some decimal values, I want to override them, how can I achieve this?? Looking for ...
0
votes
1answer
25 views

I want show price after edit a product(admin panel->catalog->products->edit product) in magento 2.3

On this1 online shop, the price("pret") for all variation is same. I want that when I edit (and save) a product, to display the price on grid with products in admin. I think that I must take price ...
-1
votes
0answers
29 views

Magento2 : How can I create Group of Attributes?

I'm pretty new to Magento and I was wondering how I can group attributes in another attribute. For example, I would like to group some swatches into the family of the color. Like: aqua, turquoise, ...
0
votes
0answers
8 views

Cant drag back product Attribute to unassigned attribute in Magento 2.3.1

I want to remove some attributes which are not mandatory. But Cant drag back product Attribute to unassigned attribute in Magento 2.3.1.
0
votes
0answers
12 views

Magento 2 Catalog Input Type for Store Owner from Visual Swatch to Dropdown programatically

How can I change Catalog Input Type for Store Owner from Visual Swatch to Dropdown in Magento 2 programmatically $eavSetup->updateAttribute(\Magento\Catalog\Model\Product::ENTITY, 'size', '...
0
votes
0answers
21 views

Manage Attributes - New Options not saving - 1.9.4.1

In Magento Admin going to catalog/attributes/ Choose a specific attribute, such as "Artist" Go to Manage Label/Options Add Option (in this case an artist's name) Click Save Attribute or Save and ...
0
votes
0answers
12 views

Object DOMDocument should be created. with order custom attribute

I've followed this link : https://www.yereone.com/blog/magento-2-how-to-add-new-order-attribute/ to add a custom attribute to my orders. But when I check at the step before the event I've got this ...
0
votes
0answers
20 views

Magento 2 Color Attribute: How to make the size of uploaded swatches match the default ones?

For our site's color attribute, we would like to use both the default color options and a few uploaded swatches. However, the uploaded swatches are showing up much smaller, with a white border around ...
1
vote
0answers
20 views

Custom Attribute with custom Source is not appearing in Layered Navigation Magento1

I have created several attributes and want now to filter on them. I create the attributes with these values: $defaults = [ 'required' => false, 'comparable' => true, 'filterable' =...
2
votes
1answer
30 views

Unique Value For Custom Attribute in magento 2

I created one custom attibute for customer. and make unique value true. while we edit customer in admin panel , and trying to save, its always give error like attribute should be unique. but their ...
0
votes
0answers
11 views

Layered navigation not working

Have set the attribute set and product attribute in sales->product. But unable to use it in Layered Navigation. Is there any changes that has to be done at the configuration level. Similar issue but ...
0
votes
1answer
15 views

Update Product Attribute based on Stock Levels [Magento 1.9]

I am trying to have two out of my Product Attributes updated once the Stock Level reaches 0, or goes above 0. Would this be possible ? Thanks
2
votes
1answer
31 views

Variable product attributes

Magento 2.3 Is there a way you can change a products attributes depending on the choice of the first attribute. For example... I have 3 types of curtain rails Straight, U Shaped and L Shaped each of ...
0
votes
2answers
30 views

Magento 2 unable to save category custom attribute value

I have created below modules to create custom category attributes, but values are not getting saved from admin . below is my module code please with what i am missing 1: Yereone/NewCategoryAttribute/...
0
votes
1answer
61 views

Magento 2.3 what is "Empty attribute value constant' in import

Is anyone know in Mageno 2.3 product import a new field is introduced i.e "Empty attribute value constant" field. What is the use for
0
votes
1answer
25 views

M1 - View Multiple Select Attribute in Front End

I've created a product attribute in the admin panel and have added it to a product. These attributes are now showing within the tabs on the frontend, however I would like them to appear between the ...
1
vote
2answers
51 views

Custom Customer attribute not saving Magento 2.3.1

I have the following code to create a custom customer attribute. <?php namespace Vendor\MyModule\Setup\Patch\Data; use Magento\Customer\Model\Customer; use Magento\Customer\Setup\...
0
votes
3answers
45 views

How to override protected function Magento 2?

i want to edit this function in Magento\Eav\Model\ResourceModel\Entity\Attribute.php protected function _updateDefaultValue($object, $optionId, $intOptionId, &$defaultValue) { if (in_array($...
0
votes
0answers
27 views

Magento 2 : Show Customer attributes in separate tab

I have created custom customer attribute and they are showing in account information tab in the admin panel. Now I want to show the custom attributes in a seperate tab.
0
votes
0answers
12 views

Assign product to the last level category in magento 2

we are importing product from outside of magento.we create an mappings for all attributes as target attributes and magento attributes.we have categorys as Abc/Cde/efg.Here is my category mapping code ...
1
vote
0answers
29 views

The image is not assigning to the correct attribute option after sorting when use visual swatch- Magento 2.3.1

Summary of Issue: I am looking to sort the color attribute options programmatically with input type 'Visual Swatch'. I have made customization in below files to sort the attribute options: File 1:...
1
vote
0answers
16 views

Change the display of attributes when the customer changes the product configuration

I will try to be as clear as possible. On the configurables products pages, when the customer chooses his product configuration, the price display changes according to the price of the configuration. ...
0
votes
1answer
33 views

Magento 2 - Configurable how to get Name of first associated product

I need to get the name and assigned attributes value of the first associated product of configurable in Magento 2. I use something like this: $_product->getResource()->getAttribute('color')-&...
0
votes
1answer
31 views

Magento 2.3.1 media urls in custom attribute of text editor type displaying as text

I've created a product attribute to display content in the product tabs which is specifically for technical drawings. The attribute is set as text editor type. When I add an image using the "insert ...
2
votes
1answer
45 views

How to get the Unit of measure label of product attributes like weight,Length etc in product detail page?

How to get the Unit of measure label of product attributes like weight,Length etc in product detail page?
0
votes
0answers
36 views

Magento2.3.0 How to brand filter sorting left side layer navigation

I am using Magento2.3.0 i need to brand filter sorting for left side layer navigation. I attached image for layered navigation to clearly understand, where am i need.
1
vote
1answer
36 views

How to make a field required on product edit page only if another filed is checked

I have creaed two product attributes "show member price" and "member price". By default the field Member price is non mandatory. But when the admin checks the "show member price(checkbox)" filed than ...
0
votes
0answers
18 views

Magento2.3.0 How to attribute for brand layered navigation automatically A-Z

I need in programatically set brand attribute layered navigation automatically A-Z. If anyone know please reply for specific category attribute option sort by ascending order. Thanks in advance.
1
vote
1answer
39 views

magento 2 get configruble attribute [duplicate]

how I can get all attributes that used for creating a configurable product? did we have API for this? and how we can create configurable attribute by admin panel