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

Magento Entity Attributes

1
vote
0answers
10 views

Apply unique images by attribute to each sku magento 2 programmatically

How can I perform this task through a script? I already relate the configurations to the product with this segment $attributeModel = $this->objectManager->create('Magento\ConfigurableProduct\...
0
votes
0answers
17 views

magento2.2 how to translate values for country_of_manufacture

i've faced with issue with country_of_manufacture attribute, which looks like to be system one and not changeable at all, even on db level: basically it's ok, but how to translate country names for ...
1
vote
0answers
17 views

How to show Shop by Color filter on category page Claue theme Magento 2

I am using Magento 2 and facing issue to show Shop by Color filter. I am using Claue theme. I checked for the Use in Layered Navigation option inside Store > Attribites > Product > Color. The option ...
4
votes
2answers
151 views

Magento 2 : Unable to set custom customer attributes programmatically

I have a cron job that runs once a day, that reads a file uploaded to the server, and registers users from that file. The code works fine, but now I added a custom attribute to the customer (lets call ...
3
votes
2answers
94 views
+50

Add custom attribute to customer model - save not working

I need to add a new attribute to the customer model, because I need to save a customer input into the database. I followed the instructions on this answer. app/code/local/Black/Newsletter2Go/etc/...
1
vote
1answer
20 views

Remove attribute from creating a product

How can I remove for example "color" from my creating product page without removing it from the store (just removing it in new product page)
3
votes
0answers
25 views

Custom additional custom address attributes not getting saved

I have created two custom address attribute latitude and longitude in custom address and they are showing fine in backend. However when I am creating a new customer from backend filling some value to ...
2
votes
0answers
27 views

Bulk Ordering a Product with Many Possible Configurations

I am building a website that sells different types of fasteners (nuts, bolts, screws, etc). The issue is that each product has many, many different variations. For instance, a hex head cap screw ...
1
vote
1answer
13 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
1answer
27 views

Magento 2: layered navigation filter query (code)

I want to get the layered navigation filter query which applies on products according to the attribute value. I want to change that query. How can I get that piece of code where query is appling? The ...
0
votes
1answer
34 views

PHP execute issue in Magento 2

I'm trying to save my custom customer attribute when the corresponding checkbox is checked. But if the customer unchecks the checkbox it should update the attribute to a value of 0. var newProducts =...
0
votes
0answers
8 views

Saving custom customer attributes

I have a few custom customer attributes in the admin/customer information section of my site. The attributes are as followed: new_products_attr exclusive_offers_attr discounts_sales_attr I've setup ...
0
votes
2answers
63 views

How to hide Attribute for a particular category

i have 3 category on my website Mens, Womens, Childrens. I added another attribute as Sub Category which is only for Childrens to identify weather its a Boy or a Girl products. But the problem is that ...
0
votes
0answers
19 views

Magento 2 - Attribute (custom) filter not showing products

We have a shop with migrated products from M1. Now when filtering a custom attribute to make the options smaller, it gives me the error that it can not find products (see image). The strange thing is ...
0
votes
3answers
38 views

Magento 2 Adding custom attributes InstallData.php Error

I'm trying to add a few custom customer attributes, I've created a simple module to install the attributes but my InstallData.php file keeps failing. Here's my code: <?php namespace ...
0
votes
3answers
29 views

Magento2 addAttributeToFilter not working with Multi Select Attribute

I am try to filter Product collection attribute Multi Select with Following code but it not working with IN or FINESET. \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $collection1 = ...
0
votes
2answers
25 views

Need to filter products

For a own test.phtml I need a filter by Product Attribute and Category. if the product is in category X and have custom-attribute x echo sku what is the right code? I found solutions for each (...
0
votes
1answer
14 views

Magento 1.9 add attribute to Credit memo item

I am trying to add a quantity to return to stock data to the credit memo item. I have made 2 install scripts. One adds a column to the database <?php $installer = $this; $installer->...
0
votes
1answer
18 views

How to save programatically attribute option value in Default Store View in attribute in magento 1.9?

How to save programatically attribute option value in Default Store View in attribute in magento 1.9? public function saveAttributeValueAction() { $arg_attribute = 'ram'; $...
0
votes
1answer
27 views

Magento 2.1 - display attribute group name

How can I display the group names above the attributes. I found the solution for Magento 1 but not for Magento 2. Group 1 att 1 att 2 att 3 Group 2 att 4 . , I am using Porto theme on magento 2.1.
1
vote
1answer
20 views

How remove attribute fields when creating a new product?

i want to remove attribute fields when creating a new product.kindly give me the steps to remove that things according to the https://prnt.sc/kp0ici .
1
vote
1answer
17 views

Magento 1.9 - Custom Attribute - input_renderer / frontend_input_renderer not going into database

I'm creating an attribute like this $installer = new Mage_Eav_Model_Entity_Setup('core_setup'); $installer->startSetup(); $entityTypeId = 'catalog_product'; $installer->addAttribute($...
1
vote
0answers
20 views

Magento 1 : Custom address attribute is not appearing in order using custom module

I've installed a simple module that creates a new attribute in the customer address. I'm able to see it both on frontend and backend, but once the order is completed it's nor present in the order ...
0
votes
0answers
24 views

Magento 2 : How can we display custom drop down in registration page?

I created Custom customer attribute: $customerSetup->addAttribute(Customer::ENTITY, 'customer_type', [ 'type' => 'int', 'label' => 'Corporation Or ...
0
votes
0answers
12 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 ...
1
vote
0answers
43 views

Magento 2 how to avoid ids for color attribute values?

I have imported products in magento 2 with color and size using csv, but we have deleted previous color values and did re-index and re-again we have created new color values for the same color ...
0
votes
2answers
41 views

Adding custom product attribute properties in Magento 2

How to add custom product attribute properties in admin for admin? Magento2 has removed attribute filter to product type. So,in frontend layer-navigation I'm getting attribute filter of it's ...
1
vote
2answers
45 views

Add other information in Dashboard Magento 2

I have added 3 attribute to customer account and i want to diplay them in account information I just overrided info.phtml but i just have name and email. Any Idea of how to display this new ...
2
votes
1answer
27 views

Add custom attributes in Customer form registration

I followed this article http://www.extensions.sashas.org/blog/magento-2-1-3-how-to-make-customer-attribute-update.html to add 3 attributes this is My Install.php <?php namespace Magenticians\...
0
votes
1answer
22 views

Magento 2 In which database table is the attribute Position stored?

I need to write my own mysql query, where I need to use the attribute Position in the query. But I can not see which table is attribute Position stored in. In my *eav_attribute* table, the attribute ...
1
vote
0answers
18 views

Magento 2: Is it possible to create Product attributes sets and their options programmatically but not during the install

We are developing a REST API that extends magento 2's functionality. One thing we need this API to do is to create attributes "on the fly" based on the custom JSON product payload sent. For example ...
0
votes
1answer
24 views

Magento : Attributes For Product Not Saving

I am using Magento 1.9.x. I have created some attributes for products, When I save, this attribute not working. Pls help me https://ibb.co/hUmVY9 Thanks
0
votes
0answers
9 views

Custom made Attribute Group not saving the attribute values also importing through magmi is not affecting Magento 1.9

Magento 1.9 Custom made Attribute Group not saving the attribute values also importing through magmi is not affecting
1
vote
0answers
54 views

How to create new product attribute with file type?

I have one question : Magento 2 doesn't support attribute with file type ? I tried create new product attribute with file type but i can't see : Anyone can help me ?
0
votes
0answers
16 views

how to add extra attribute properties like upload image for attribute in Magento 2

I want a image uploader option in Attribute Properties in magneto2
0
votes
0answers
16 views

How to create layered filter navigation in slider ?like the price slider in magento 1.9

i am using magento 1.9 ,and i am trying to create filter using attribute in layered navigation.requirement is that i want those attribute filters in slider like the price slider. Like this above ...
2
votes
1answer
27 views

Update custom product attribute programatically?

How can I update custom attribute of a product programatically? $product->setCustomAttrName('value') does not work
1
vote
2answers
25 views

How to create Catalog attribute in Magento 2 Using Upgrade Script

I created attribute in Magento 2 using install script. By this code. namespace Custom\Features\Setup; use Magento\Eav\Setup\EavSetup; use Magento\Eav\Setup\EavSetupFactory; use Magento\Framework\...
0
votes
0answers
9 views

How can i get the products additional info block for an ajax request?

I´m looking for a solution to get the whole content block of additional info for an ajax request. I use the catalog/product/view/attributes.phtml script in the normal product view to get the ...
2
votes
0answers
18 views

How to create a new attribute with two text fields for product in admin

How to create a new attribute with two text fields for product in admin Please find the below screenshot
0
votes
0answers
40 views

Magento 2: how to get attribute additional options programmatically

In Magento 2.2.3, you can set additional options per each option of attribute: How to programmatically access these properties? I tried: $om = \Magento\Framework\App\ObjectManager::getInstance(); $...
0
votes
0answers
33 views

Custom dropdown attribute magento 2

How to create a custom attribute for configurable product using setup script. and the drop down list out all the bundle product and the value of drop down displayed in product detail page of a ...
0
votes
2answers
35 views

How to get all attributes list with details that assigned to Used in product Listing-> Yes in magento 2

How to get all attributes list with details that assigned to Used in product Listing-> Yes in custom.phtml file in Magento2
1
vote
0answers
64 views

Magento 2.2.5 Product attribute “use in search” RESETTING after Index:reindex

UPDATE:: Today i discover that happen when the cron run index:reindex How can i fix? Today during configuring manufacturer attributes i found a bug or however an anomaly on magento 2.2.5 I setting "...
2
votes
0answers
17 views

Magento 1: How replacing WYSIWYG button in product description field?

By default when there is an attribute with "Enable WYSIWYG" set to Yes you will get a button bellow that form field [WYSIWYG Editor]. When you click on the button your will get a pop-up window, but ...
0
votes
0answers
16 views

How to add Wysiwyg editor repeater in product attributes in Magento 2?

I have created custom extension for repeater Name and content section for products by following function in Company\Module\Ui\DataProvider\Product\Form\Modifier\Productstab protected function ...
3
votes
0answers
39 views

No results on layered navigation when filter applied

We have a Multi-Store site with product category pages, with some attributes enabled in layered navigation. The fact is that in certain stores, filters counts shows the items per filter correctly but ...
0
votes
0answers
23 views

Unknown error : Element 'script': The attribute 'src' is required but missing

I am a newbie Magento2 developer and tried to develop shipping restriction country. So I created custom module which consists install data setup for creating custom product attribute. After that I had ...
0
votes
0answers
15 views

How can I make my attributes editable from the catalogue page?

in my catalog page for products, Cost Price, Price, and QTY are editable from the catalog page itself without clicking into it. How can I make some of my other attributes act this way? I'm editing ...
0
votes
2answers
18 views

Magento 2 : Display Custom Product Attribute If it has a Value

I have created a custom product attribute and added the code below to display them within the grouped product table. <td data-th="<?= $block->escapeHtml(__('Breaking Strain')) ?>" class="...