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

Hace 11 meses
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>
            }
Hace 11 meses
Thanks a lot, Sandeep!

Here is a work item
Hace 11 meses
a.m. wrote:
Thanks a lot, Sandeep!

Here is a work item


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