I am finding it difficult to fill orders for kitted products from the invoice in admin. The bulleted list that the customer can print from PrintMyOrder.aspx is much easier to read. I would like to be able to access this file to fill orders.
Could the PrintMyOrder.ascx.cs file be modified so anyone with admin privileges could access PrintMyOrder.aspx on the web and print the same thing the customer can?
Allow admin to access PrintMyOrder.aspx
- voir
- Lieutenant, Jr. Grade (LT JG)
- Posts: 24
- Joined: Mon Jun 09, 2008 4:25 pm
- Location: Belingham, WA US
Re: Allow admin to access PrintMyOrder.aspx
Changing this line:triplw wrote: Could the PrintMyOrder.ascx.cs file be modified so anyone with admin privileges could access PrintMyOrder.aspx on the web and print the same thing the customer can?
Code: Select all
if (_Order.UserId != Token.Instance.UserId) Response.Redirect(NavigationHelper.GetStoreUrl(this.Page, "Members/MyAccount.aspx"));
Code: Select all
if (_Order.UserId != Token.Instance.UserId && !Token.Instance.User.IsAdmin) Response.Redirect(NavigationHelper.GetStoreUrl(this.Page, "Members/MyAccount.aspx"));
Re: Allow admin to access PrintMyOrder.aspx
Thanks, that's just what I needed. Now it would be great if I could have a link in the admin to the PrintMyOrder.aspx for each order so I won't have to manually type in the order number.
Can anyone help?
Can anyone help?
- voir
- Lieutenant, Jr. Grade (LT JG)
- Posts: 24
- Joined: Mon Jun 09, 2008 4:25 pm
- Location: Belingham, WA US
Re: Allow admin to access PrintMyOrder.aspx
in /Admin/Orders/Default.aspx
Find this:
Add this(don't replace the other line):
Find this:
Code: Select all
<asp:HyperLink ID="OrderId" runat="server" Text='<%# Eval("OrderId") %>' SkinID="Link" NavigateUrl='<%# Eval("OrderId", "ViewOrder.aspx?OrderId={0}") %>'></asp:HyperLink>
Code: Select all
<asp:HyperLink ID="PrintHyperLink1" runat="server" Text='Print' SkinID="Link" NavigateUrl='<%# Eval("OrderId", "../../Members/PrintMyOrder.aspx?OrderId={0}") %>'></asp:HyperLink>