Description
When adding a product to a certain store view under "Product in Websites", it chooses the wrong category name, namely the default category name, and not the store view category name. Note that this is not true for all category names, the product is added to, just one for some reason, when the product exists in several categories.
Preconditions (*)
- Install latest Magento and set up two or more store views.
- Add a default scope category, and a specific category, for each store view.
Steps to reproduce (*)
- Add a simple product, and choose the store view for the product:
- The thought category name for the actual store view:
Expected result (*)
- The category name should be "storlekar" from the corresponding store view categories
Actual result (*)
- Magento is choosing the wrong category name (the default category name):
- It should be "storlekar" and not "sizes" for this category:
Additional info from Engcom
We could reproduce the issue via the following steps
While creating Stores, assign the same previously created Category to both Stores
3. Go to Catalog - Categories. Switch to the second StoreView, and rename sizes to storlekar for example
4 Go to Catalog - Products and Add a new product. While Creating the product, do not assign it to any Category. Select the second website under Product in Websites
5. Save the Product
6. Switch to the second Store View
7. Assign the product to the to storlekar category and Save the product
8. Go to Marketing - URL Rewrites and observe the Request Path to the product
Actual Result
The Request Path is sizes/sprod.html
Expected Result
The Request Path is storlekar/sprod.html