Smartstore
Smartstore copied to clipboard
[Question] Backend customizations
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:
- Often the backend only calls the
MiniMapper
to map the data (for exampleOrderItem
->OrderModel.OrderItemModel
inCreateOrderItemsModels
in theOrderController
). This makes it impossible to map our custom data in the backend, since the simple mapping viaMiniMapper
does not call the whole mapper stack. - 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.