Hi, I am wondering how to add a custom section to an admin product edit page for example (I would also later make it for category edit)? I want to make another "card" or "section", where new inputs would be. Also, how would I capture the save product (or later category), so I would update it and insert a value in my custom table via my db service? I know there is already a tutorial on this topic but it is quite dated and also it includes more information than necessery. I am using version: 4.60.3 Thanks
I tried that , but I didn't get any results. It didn't show anything. Any concrete code example? And is that widget zone the correct one for adding a item to the edit page inputs a new section? I used that one, and I didn't get anything.
There is a setting in All Settings WidgetSettings.ActiveWidgetSystemNames So you can add the widget name to the list and if you have the property not to display it should not appear in the list but still be active Typically you would add the name to the list as part of the install That Alvera plugin does that See if (!_widgetSettings.ActiveWidgetSystemNames.Contains(AvalaraTaxDefaults.SystemName)) { _widgetSettings.ActiveWidgetSystemNames.Add(AvalaraTaxDefaults.SystemName); await _settingService.SaveSettingAsync(_widgetSettings); }
Ok, that works now and the section is showed like I want it to be. But there is another problem. When I save the product I want to capture the event, and I need to do some stuff (insert data in my custom table) and I need the custom model, I have in my view. How do I pass the custom model? And where should I capture the event. I was thinking about a EventConsumer, but I can't get the custom model through.