How to High light item with Problem on status?
-
- Commander (CMDR)
- Posts: 121
- Joined: Sat Sep 23, 2006 1:00 pm
How to High light item with Problem on status?
Hello:
I need some help. For paid item but with an issue, I changed the status to "Problem". But without paying attention to it (other staff), it's easy for them to ship it out. I'm wondering if there is a way to high light the row with different color when status is "Problem"
Also, is it way to tell that customer leave a note in the "History & note". I found that we sometimes missed some important instruction from the customer without checking the email. May be add a "!" or some sort of indication to let us know that customer had left message.
Thanks a lot
Speedy
I need some help. For paid item but with an issue, I changed the status to "Problem". But without paying attention to it (other staff), it's easy for them to ship it out. I'm wondering if there is a way to high light the row with different color when status is "Problem"
Also, is it way to tell that customer leave a note in the "History & note". I found that we sometimes missed some important instruction from the customer without checking the email. May be add a "!" or some sort of indication to let us know that customer had left message.
Thanks a lot
Speedy
Re: How to High light item with Problem on status?
Yep that would be easy. Edit Admin/Orders/Default.aspx.cs file and locate following codeneed some help. For paid item but with an issue, I changed the status to "Problem". But without paying attention to it (other staff), it's easy for them to ship it out. I'm wondering if there is a way to high light the row with different color when status is "Problem"
Code: Select all
e.Row.DataItem = order;
Code: Select all
e.Row.DataItem = order;
if (order.OrderStatus.Name.Contains("Problem"))
e.Row.Style.Add("background-color", "red");
Code: Select all
<asp:TemplateField HeaderText="Shipment">
<ItemStyle HorizontalAlign="Left" />
<HeaderStyle HorizontalAlign="Center" />
<ItemTemplate>
<asp:PlaceHolder ID="phShipmentStatus" runat="server"></asp:PlaceHolder>
<asp:Label ID="ShipmentStatus" runat="server" Text='<%# Eval("ShipmentStatus") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
Code: Select all
<asp:TemplateField HeaderText="Shipment">
<ItemStyle HorizontalAlign="Left" />
<HeaderStyle HorizontalAlign="Center" />
<ItemTemplate>
<asp:PlaceHolder ID="phShipmentStatus" runat="server"></asp:PlaceHolder>
<asp:Label ID="ShipmentStatus" runat="server" Text='<%# Eval("ShipmentStatus") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Notes">
<ItemStyle HorizontalAlign="Left" />
<HeaderStyle HorizontalAlign="Center" />
<ItemTemplate>
<%# GetNotesAlert(Container.DataItem)%>
</ItemTemplate>
</asp:TemplateField>
Code: Select all
protected string GetNotesAlert(Object dataItem)
{
string alert = "<span>No</span>";
Order order = dataItem as Order;
if (order != null)
{
foreach (OrderNote note in order.Notes)
{
if (note.NoteType == NoteType.Public)
{
alert = "<span style='color:yellow;'>!</span>";
break;
}
}
}
return alert;
}
-
- Commander (CMDR)
- Posts: 121
- Joined: Sat Sep 23, 2006 1:00 pm
Re: How to High light item with Problem on status?
Morning Mazhar:
Thank you for your reply. I tried both and so far only the 1st one (high light Problem item) works very good. But the added "!" seems not working as I click on some orders with customer note left, it won't show any any "!" .
Thanks
Speedy
Thank you for your reply. I tried both and so far only the 1st one (high light Problem item) works very good. But the added "!" seems not working as I click on some orders with customer note left, it won't show any any "!" .
Thanks
Speedy
-
- Commander (CMDR)
- Posts: 121
- Joined: Sat Sep 23, 2006 1:00 pm
Re: How to High light item with Problem on status?
By the way, I saw the new coloumn added with "No" when there is no public note left by the customer. I can live with that.
Thanks again. Great help!!
Speedy
Thanks again. Great help!!
Speedy
-
- Commander (CMDR)
- Posts: 121
- Joined: Sat Sep 23, 2006 1:00 pm
Re: How to High light item with Problem on status?
Oh... I saw it now. It's just that my eyes didn't see the yellow "!" well. It works!!
Thank you Master
Speedy
Thank you Master
Speedy
Re: How to High light item with Problem on status?
Actually it would be better to simply replace ! with Yes. That would be easily visible. You can update that information in this line
for example like
Code: Select all
alert = "<span style='color:yellow;'>!</span>";
Code: Select all
alert = "<span style='color:yellow;'>Yes</span>";
-
- Lieutenant Commander (LCDR)
- Posts: 84
- Joined: Wed Apr 04, 2007 7:57 am
- Location: West Palm Beach, FL
- Contact:
Re: How to High light item with Problem on status?
Good Morning-
I am using the code posted here to make rows with problem orders red. I wanted to do the same for orders where the payment status is either unprocessed or authorization pending. I tried a variant of your code, but it didn't seem to work, so obviously I'm missing something. Any help would be appreciated. Here is what I tried:
Thanks
Ken
I am using the code posted here to make rows with problem orders red. I wanted to do the same for orders where the payment status is either unprocessed or authorization pending. I tried a variant of your code, but it didn't seem to work, so obviously I'm missing something. Any help would be appreciated. Here is what I tried:
Code: Select all
if (payment.PaymentStatus == PaymentStatus.Unprocessed)
e.Row.Style.Add("background-color", "red");
Ken
Re: How to High light item with Problem on status?
do it like this, hopefully it will workout
Code: Select all
if (order.PaymentStatus == PaymentStatus.Unprocessed)
e.Row.Style.Add("background-color", "red");
-
- Commander (CMDR)
- Posts: 121
- Joined: Sat Sep 23, 2006 1:00 pm
Re: How to High light item with Problem on status?
Hello Mazhar:
I want to show you our gradatude for your help. Now, it really a big release of pressure we used to have of worring missing an instruction left by a customer or shipping out problematic order without knowlege. Without your great work, we're living in a dark room and wasting much time to deal with tedious job by reading email and checking "History and Note" order by order.
Again, my appreciation for your great effort. You're the man!!
Cheers!
Speedy
I want to show you our gradatude for your help. Now, it really a big release of pressure we used to have of worring missing an instruction left by a customer or shipping out problematic order without knowlege. Without your great work, we're living in a dark room and wasting much time to deal with tedious job by reading email and checking "History and Note" order by order.
Again, my appreciation for your great effort. You're the man!!
Cheers!
Speedy
Re: How to High light item with Problem on status?
This code addition below e.Row.DataItem = order;
Gives ERROR: e:\hshome\scottsbt\store.scottsbt.com\Admin\Orders\Default.aspx.cs(371): error CS0266: Cannot implicitly convert type 'CommerceBuilder.Payments.PaymentStatus' to 'CommerceBuilder.Orders.OrderPaymentStatus'. An explicit conversion exists (are you missing a cast?)
I've been trying all kinds of variations but cannot get it to work?
Thanks, ~Mo
Code: Select all
if (order.PaymentStatus = PaymentStatus.Unprocessed)
e.Row.Style.Add("background-color", "red");
I've been trying all kinds of variations but cannot get it to work?
Thanks, ~Mo
~Mo
Maureen Albertson
Scott's Bait & Tackle / Mystic Reel Parts LLC
Contact Me Via Store Website
Ablecommerce Gold R11 Catalog LIVE
Maureen Albertson
Scott's Bait & Tackle / Mystic Reel Parts LLC
Contact Me Via Store Website
Ablecommerce Gold R11 Catalog LIVE
Re: How to High light item with Problem on status?
You are using single = operator in this line
correct it like
Single = sign means assignment while two = signs means check for equality.
Code: Select all
if (order.PaymentStatus = PaymentStatus.Unprocessed)
Code: Select all
if (order.PaymentStatus == PaymentStatus.Unprocessed)
Re: How to High light item with Problem on status?
Unfortunately,
Gets me another error: e:\hshome\scottsbt\store.scottsbt.com\Admin\Orders\Default.aspx.cs(371): error CS0019: Operator '==' cannot be applied to operands of type 'CommerceBuilder.Orders.OrderPaymentStatus' and 'CommerceBuilder.Payments.PaymentStatus'
Code: Select all
if (order.PaymentStatus == PaymentStatus.Unprocessed)
e.Row.Style.Add("background-color", "red");
~Mo
Maureen Albertson
Scott's Bait & Tackle / Mystic Reel Parts LLC
Contact Me Via Store Website
Ablecommerce Gold R11 Catalog LIVE
Maureen Albertson
Scott's Bait & Tackle / Mystic Reel Parts LLC
Contact Me Via Store Website
Ablecommerce Gold R11 Catalog LIVE