Incorrect product template when creating a new grouped product in nopCommerce 4.60.2

11 mesi tempo fa
Steps to reproduce the problem:
Try creating a new grouped product, the product template drop-down doesn't show grouped product template.

Reason:
In the _CreateOrUpdate.Info.cshtml under the product views in admin area on line number 390, there is a condition which checks if the product id is greater than 0. Only in that case it allows table view to load on product edit page.
Because of this, admin.table.js is not loading and that's why execution breaks on the line number 61 in the _CreateOrUpdate.Info.cshtml page from updateTableWidth('#associatedproducts-grid') function followed by the rest of the javascript.

Fix:
I suggest replacing line number 61 in the _CreateOrUpdate.Info.cshtml file with below code.
@if (Model.Id > 0)
            {
                <text>updateTableWidth('#associatedproducts-grid'); </text>
            }
11 mesi tempo fa
Thanks a lot, Sandeep!

Here is a work item
11 mesi tempo fa
a.m. wrote:
Thanks a lot, Sandeep!

Here is a work item


You're welcome Andrei! Anything for nopCommerce and you :)