Closed
Description
Preconditions (*)
- Magento 2.3.1
Steps to reproduce (*)
- Find a product in your store which is not currently assigned to any store/websites.
In my case, I achieved this by deleting several old websites (store views) which left a bunch of products "orphaned" without a store ID.
For testing purposes you could also un-tick all of the boxes under the "Product in websites" section in the Magento admin panel -> Manage products -> [your product] area.
You could probably also achieve this by deleting a product from the catalog_product_website
database table.
I was able to find a list of all my "orphaned" products using the following query:
SELECT * FROM catalog_product_entity WHERE entity_id NOT IN (SELECT product_id FROM catalog_product_website);
-
Open the above product in Magento's admin panel (Manage products) section.
-
Don't make any changes (or you can change the product title etc. if you wish) but just hit the "Save" button to save the product.
Expected result (*)
- Since you haven't touched the "Product in Websites" section, the product should remain orphaned (i.e. it should NOT have a store ID associated with it). The product should NOT appear in the
catalog_product_website
table.
Actual result (*)
- The product is automatically assigned a store ID. If you expand the "Product in websites" section, the first website checkbox is automatically ticked. The product DOES appear in the
catalog_product_website
database table even though you have not chosen to assign this product to a store.
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.3 release lineGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release