Open ncsramona opened 3 days ago
9087505-zd-a8c the merchant reports the issue is also present using the Twenty Sixteen theme. I was able to replicate this with TT4, noticed it started happening at 200 categories in. And it happens both for updating and creating products.
Describe the bug
When you create a product and pick a category, all other categories will be assigned to the product which ID starts with your chosen category ID.
For instance, if I choose the category that has ID 12, then 120, 121 etc categories are assigned to my product.
My setup:
In my case, I created 500 categories, so I have several categories that have the following IDs:
Isolating the problem (mark completed items with an [x]):
To Reproduce
Steps to reproduce the behavior:
Instead of assigning the single category I selected, all categories starting with 12 are assigned.
Screenshots
The screenshot below demonstrates two products I created and assigned to the "Test" category. The only difference is "Category test" was created using the Twenty-Twentyfive theme, while product "a" was created using Storefront.
Here's a video as well: https://github.com/user-attachments/assets/1d5cd58d-1f15-406b-ae3b-cde5c65b8fe4
Expected behavior
Only the category I select should be applied.
Browser Environment
Please provide as much detail as possible about your testing environment.
WordPress Environment
Please provide relevant details of your WordPress setup and server environment.