The site we are having the issue on was upgraded from a previous version of nopCommerce (3.6) to 4.2. It functions well, except for one serious problem.
Whenever someone updates a grouped product in the admin, the value of ProductTemplateId is getting changed from 1 (GroupedProduct) to 3 (SimpleProduct) in the database. Subsequently, the product in the store no longer shows the grouped items, since the SimpleProduct template is now in effect.
We're trying to track down this apparent bug to see if it's code related or data related.
We have years of experience with MVC apps -- but are fairly new to .NET Core.
Would appreciate some advice on how to track this down to the specific controller/service and lines of code where this is happening.
I dont imagine it is code related as you have not changed the code and this is not a known bug But thats strange standard install has 1 as SimpleProduct and 3 as GroupedProduct
The view is nop42\Presentation\Nop.Web\Areas\Admin\Views\Product\_CreateOrUpdate.Info.cshtml
Well thanks for your quick help on this. I never would have thought to check those database values.
Somehow they got switched around in these older databases we have here.
I ran sql updates to bring the ProductTemplate table up to date as well as the corresponding ProductTemplateId column in the product table. Restarted the app and all looks great.
Apparently the code is "expecting" the values of 1 for simple and 2 for grouped.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.