Skip to content

Adding simple products to a certain store view picks wrong category name (default) instead of store view category name #30801

Open
@Munktells

Description

@Munktells

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 (*)

  1. Install latest Magento and set up two or more store views.
  2. Add a default scope category, and a specific category, for each store view.

Steps to reproduce (*)

  1. Add a simple product, and choose the store view for the product:

1

  1. The thought category name for the actual store view:

2

Expected result (*)

  1. The category name should be "storlekar" from the corresponding store view categories

Actual result (*)

  1. Magento is choosing the wrong category name (the default category name):

3

  1. It should be "storlekar" and not "sizes" for this category:

4

Additional info from Engcom

We could reproduce the issue via the following steps

  1. Create the following Category structure
    category_Structure
  2. Create two Websites, two Stores, two Store Views
    websites

While creating Stores, assign the same previously created Category to both Stores
root_cat
3. Go to Catalog - Categories. Switch to the second StoreView, and rename sizes to storlekar for example
secview_cat
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
prodinweb_site2
5. Save the Product
6. Switch to the second Store View
view_2prod
7. Assign the product to the to storlekar category and Save the product
storlekar
8. Go to Marketing - URL Rewrites and observe the Request Path to the product

Actual Result
The Request Path is sizes/sprod.html
req_path

Expected Result
The Request Path is storlekar/sprod.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: SEOComponent: UrlRewriteIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: ready for devReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions