Checking the system log, I was hitting into this error:
[2019-05-27 04:12:12] main.WARNING: Attempt to load value of nonexistent EAV attribute '180'
for entity type 'Magento\Catalog\Api\Data\ProductInterface'.  
Google-d this error and a whole bunch of unsolved problems showed up. It seems that many users are hitting into this ...
First make sure to assign the "Brand Name" attribute to all the attribute sets in your system.
Afterwards, go to the products grid in the admin, click "Actions -> Update Attributes". You should be able to update the value of your attribute.
If you follow Abhishek Panchal answer above even-then your custom attribute value noe displaying on category pages the confirm you had not enabled this attribute for catalog pages:
edit the attribute select:
storefront properties -> Used in Product Listing -> yes
You might want to add some checks, in case the product you are supplying isn't configurable.
\Magento\ConfigurableProduct\Model\Product\Type\Configurable::getConfigurableAttributes is only available there.
you can make Magento\Catalog\Api\ProductAttributeManagementInterface
$attributeSetId = 20;//your_attributeSetId
$productAttributesManagement = $this->objectManager->create('Magento\Catalog\Api\ProductAttributeManagementInterface');
$productAttributes = $productAttributesManagement->getAttributes($attributeSetId);
Please note that you should not be ...
You appear to doing a category product collection. Can you not use something like this?
public function __construct(
array $data = 
$this->productCollectionFactory = $productCollectionFactory;
If you want to filter a collection on store-specific values (which seems to be the matter in your case), you should either use setStoreId() to make the collection aware of which store this collection applies to:
You can also filter a collection on a store, ...
Open your attribute by Catalog->Attributes->Manage Attributes->Open color attribute
Set category "Is Anchor" to yes
From Catalog->Manage Categories->Edit Category->Go to tab Display Settings-> Set Is Anchor to Yes
This is not a bug. It's a feature.
The default values serves as "default" from now on. It is not added to products existing prior to setting this default value.
If you create a new product, you should see the "yes" value selected.
There is no "out of the box" way of setting the default value to existing products.
You need to enable Free Shipping Promotions from Webshopapps Matrix Rates extension's system configuration.
Please check below links for more information:
Hope this will help you.
To get your custom attribute value in Magento/CatalogInventory/Model/StockStateProvider.php model file you just need to do following steps.
Override Model file in custom module Mee/CustomModule/Model/StockStateProvider.php as mentioned in below link https://magenticians.com/override-model-magento-2/
Include your function in the above overdid model file as
If I read your question correctly, you want to organize your products to only require specific attributes.
If so then you can use Attribute Sets to create attribute templates for your products.
When you create a new product, you can define the attribute set so the product only uses that subset of attributes.