HomeHome Product Discus... Product Discus...RazorCartRazorCartCustomizing Tab Labels on Order pageCustomizing Tab Labels on Order page
Previous
 
Next
New Post
10/12/2018 12:57 PM
 
I'd like to adjust the label for the Notes tab at the bottom of the Orders edit page so that it shows a number - i.e  when there are no notes it would just say "Notes" but when there are notes it would say "Notes (2)" in bold or however many notes there are.

I can probably figure out how to put together the text but I've looked through the edit.cshtml for the order page and I can see the tab contents itself but can't figure out how it's getting the label text.

Is this possible? How would one do it?
'
Thank you,
G
 
New Post
10/17/2018 2:42 PM
 
Hi George

You can modify the view file "/RazorCart/AdminConsole/Views/Shared/_OrderEditMenu.cshtml" and replace "Notes" with "Notes (@Model.OrderNotes.Count)"

In Edit.cshtml or any other view you might see @Html.Partial("viewName") this means loading another view file as a partial view (These files could be in the same main view folder or the Shared folder)

Regards,
Wael
 
New Post
10/31/2018 2:12 PM
 
Thank you!
 
Previous
 
Next
HomeHome Product Discus... Product Discus...RazorCartRazorCartCustomizing Tab Labels on Order pageCustomizing Tab Labels on Order page