-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get product attribute value for store-view scope type in product collection loaded for a specific store. #18374
Comments
Hi @milindsingh. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @milindsingh do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@magento-engcom-team give me 2.2.5 instance |
Hi @milindsingh. Thank you for your request. I'm working on Magento 2.2.5 instance for you |
Hi @milindsingh, here is your Magento instance. |
In above Magento Instance (https://i-18374-2-2-5.engcom.dev.magento.com/),
|
|
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
@engcom-backlog-nazar Thank you for verifying the issue. Based on the provided information internal tickets |
Hi @milindsingh. Thank you for your report. The fix will be available with the upcoming 2.2.8 release. |
Hi @milindsingh. Thank you for your report.
The fix will be available with the upcoming 2.3.2 release. |
Fixed issue - #18374 Unable to get product attribute value for store-view scope type in product collection loaded for a specific store.
Preconditions
ced_profile_id
has value 'blank' in All Store Views ( i.e. for Admin store ID - 0), and value '2' for Default Store ( i.e. ID - 1).$storeId = 1; \** @var Magento\Catalog\Model\ResourceModel\Product\Collection $collection **\ $collection->setStoreId($storeId); $collection->addAttributeToSelect(['ced_profile_id']); $products = $collection->getData();
Steps to reproduce
Expected result
1.$products have 2 attribute for 'ced_profile_id'.
Actual result
In above image, entity_id 2,3,4 have null values for admin store - 0 and collection can get the default store values.
While entity_id 1 don't have a row in
catalog_product_entity_varchar
, hence I am not able to get values in product collection for store id 1 i.e. Default Store .The text was updated successfully, but these errors were encountered: