Smartstore icon indicating copy to clipboard operation
Smartstore copied to clipboard

[Question] Backend customizations

Open Algorithman opened this issue 5 months ago • 0 comments

Is your feature request related to a problem? Please describe. Since we do have special data attached to our products (fully customer changeable), we store them in OrderItem.RawAttributes (which works just fine for everything in the frontend).

But in the backend I have 2 problems:

  1. Often the backend only calls the MiniMapper to map the data (for example OrderItem -> OrderModel.OrderItemModel in CreateOrderItemsModels in the OrderController). This makes it impossible to map our custom data in the backend, since the simple mapping via MiniMapper does not call the whole mapper stack.
  2. How can I make adjustments to backend cshtml files in my module? I tried to use the same folder structure (for example Areas/Admin/Views/Order/_Edit.Info.cshtml) but I can't make the backend use my cshtml implementation, so I'm stuck at the moment with changing it in Smartstore.Web project (which I don't really want to do, I would like to leave it as pristine as I can). We would like for example to show our custom data in the grid etc, so we can see at a glance what data the customer entered.

In my opinion, direct calls to the MiniMapper should not be made. The MapperFactory should be the only one calling the MiniMapper as a default mapping and then call the whole stack of IMapper<TFrom,TTo>'s.

Algorithman avatar Aug 27 '24 06:08 Algorithman