How to add Backorders to Bulk edit products in Admin?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
2 年 前
Using nopCommerce 3.90

How to add Backorders to Bulk Edit Products in Admin using \Administration\Views\Product\BulkEdit.cshtml

What kind of code like this do I need to add there?

{
                                        field: "Sku",
                                        title: "@T("Admin.Catalog.BulkEdit.Fields.Sku")",
                                        width: 150
                                    }, {
                                        field: "Price",
                                        title: "@T("Admin.Catalog.BulkEdit.Fields.Price")",
                                        width: 150,
                                        editor: function (container, options) {
                                            $('<input name="' + options.field + '"/>')
                                                .appendTo(container)
                                                .kendoNumericTextBox({
                                                    format: "{0:n4}",
                                                    decimals: 4
                                                });
                                        }
                                    }, {
                                        field: "OldPrice",
                                        title: "@T("Admin.Catalog.BulkEdit.Fields.OldPrice")",
                                        width: 150,
                                        editor: function (container, options) {
                                            $('<input name="' + options.field + '"/>')
                                                .appendTo(container)
                                                .kendoNumericTextBox({
                                                    format: "{0:n4}",
                                                    decimals: 4
                                                });
                                        }
                                    }, {
                                        field: "ManageInventoryMethod",
                                        title: "@T("Admin.Catalog.BulkEdit.Fields.ManageInventoryMethod")",
                                        width: 150
                                    }, {
                                        field: "StockQuantity",
                                        title: "@T("Admin.Catalog.BulkEdit.Fields.StockQuantity")",
                    attributes: { style: "font-size:20px;font-weight:bold;color:crimson" },
                                        //integer format
                                        format: "{0:0}",
                                        width: 150
                                    }


Thanks in advance...!
2 年 前
You would need to first need to change the Data Select function called here

                                            read: {
                                                url: "@Html.Raw(Url.Action("BulkEditSelect", "Product"))",
                                                type: "POST",
                                                dataType: "json",
                                                data: additionalData
                                            },

and edit
        public virtual ActionResult BulkEditSelect(DataSourceRequest command, BulkEditListModel model)
in
nopCommerce_3.90_Source\Presentation\Nop.Web\Administration\Controllers\ProductController.cs

To add the BackorderMode, etc fields.
Then you add extra code from above
2 年 前
Yidna wrote:
You would need to first need to change the Data Select function called here

                                            read: {
                                                url: "@Html.Raw(Url.Action("BulkEditSelect", "Product"))",
                                                type: "POST",
                                                dataType: "json",
                                                data: additionalData
                                            },

and edit
        public virtual ActionResult BulkEditSelect(DataSourceRequest command, BulkEditListModel model)
in
nopCommerce_3.90_Source\Presentation\Nop.Web\Administration\Controllers\ProductController.cs

To add the BackorderMode, etc fields.
Then you add extra code from above


So, using only .cshtml files it is not possible, right?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.