HomeHome Product Discus... Product Discus...RazorCartRazorCartCustomizing admin screensCustomizing admin screens
Previous
 
Next
New Post
10/1/2018 4:39 PM
 
Internal customers would like us to put an internal sales order id on the order screen below the RazorCart ID. How hard is it to add a rield to show the value (we're stashing it in UDF1) to the page?  Do you have any docs on how to do this?

Thank you!
G
 
New Post
10/2/2018 5:13 PM
 
Hi George,

Yes you can customize the admin screens, here's how:
  1. Create a folder "AdminConsole" in "/Portals/{ID}/RazorCart/Viewsets/"
  2. Copy the file "_ViewStart.cshtml" from "/DesktopModules/RazorCart/AdminConsole/Views" to the above location. Don't modify it unless if you also want to change the layout location to edit it!
  3. Create another folder "Order" and copy the file "Edit.cshtml" from "/DesktopModules/RazorCart/AdminConsole/Views/Order" into it.
  4. Edit the view file "Edit.cshtml" as needed. Add the html label and use @model.Order.UDF1 to populate that field.
  5. Recycle AppPool or you can click "Restart Application" from server icon in Admin-Console if you're logged in as a super user. This is needed to update the MVC view locations.
** Only the copied view files will be loaded from Portals folder, the rest will be loaded from the DesktopModules by default, also viewset files inside the Portals folder will not be lost during installation/upgrading.

Regards,
Wael
 
New Post
10/10/2018 3:36 PM
 
Thank you!
 
Previous
 
Next
HomeHome Product Discus... Product Discus...RazorCartRazorCartCustomizing admin screensCustomizing admin screens