For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
-
mazhar
- Master Yoda
- Posts: 5084
- Joined: Wed Jul 09, 2008 8:21 am
-
Contact:
Post
by mazhar » Thu Oct 23, 2008 9:15 am
Edit the
Admin/Orders/OrderHistory.aspx file and locate the following line of code
Code: Select all
<asp:Localize ID="AddCommentCaption" runat="server" Text="Add Comment"></asp:Localize>
and make it look like
Code: Select all
<asp:Localize ID="AddCommentCaption" runat="server" Text="Add Comment"></asp:Localize>
<asp:ImageButton ID="AddCommentHtml" runat="server" AlternateText="Edit HTML" ToolTip="Edit HTML" SkinID="EditIcon" OnClientClick="" CausesValidation="False" />
Now locate the following code
Code: Select all
_Order = OrderDataSource.Load(_OrderId);
and make it look like
Code: Select all
_Order = OrderDataSource.Load(_OrderId);
PageHelper.SetHtmlEditor(AddComment, AddCommentHtml);
This change will made the HTML editor available on the textbox when adding the note.
-
calvis
- Rear Admiral (RADM)
- Posts: 710
- Joined: Tue Jan 27, 2004 3:57 pm
- Location: Redmond, WA
Post
by calvis » Thu Oct 23, 2008 11:01 am
Sweet, Thanks Mazhar!
Is there any chance that this might make it to 7.2 since you already did the fix? It's nice to have it on the admin side because we are cutting and pasting from many different HTML sources into customer notes.
Able Customer Since 1999 Currently Running on GOLD R12 SR1 and PCI Certified.
-
mazhar
- Master Yoda
- Posts: 5084
- Joined: Wed Jul 09, 2008 8:21 am
-
Contact:
Post
by mazhar » Thu Oct 23, 2008 12:15 pm
Is there any chance that this might make it to 7.2 since you already did the fix? It's nice to have it on the admin side because we are cutting and pasting from many different HTML sources into customer notes.
Sounds reasonable, I have created an enhancement request for future version.
http://bugs.ablecommerce.com/show_bug.cgi?id=7303
-
Robbie@FireFold
- Commodore (COMO)
- Posts: 433
- Joined: Wed May 28, 2008 9:42 am
- Location: Concord, NC
-
Contact:
Post
by Robbie@FireFold » Fri Oct 24, 2008 12:24 pm
Put this in just because. Works well for the times I might need to throw in a picture.. or maybe Marquee blinking red text.
-
calvis
- Rear Admiral (RADM)
- Posts: 710
- Joined: Tue Jan 27, 2004 3:57 pm
- Location: Redmond, WA
Post
by calvis » Sat Jan 22, 2011 9:32 pm
mazhar, Can we have some updated code where this will work for 7.0.6?
Thanks
Able Customer Since 1999 Currently Running on GOLD R12 SR1 and PCI Certified.
-
mazhar
- Master Yoda
- Posts: 5084
- Joined: Wed Jul 09, 2008 8:21 am
-
Contact:
Post
by mazhar » Mon Jan 24, 2011 6:06 am
Calivs code is almost OK for 7.0.6 as well. Here are the instructions for 7.0.6
Edit the
Admin/Orders/OrderHistory.aspx file and locate the following line of code
Code: Select all
<asp:Localize ID="AddCommentCaption" runat="server" Text="Add Comment"></asp:Localize>
and make it look like
Code: Select all
<asp:Localize ID="AddCommentCaption" runat="server" Text="Add Comment"></asp:Localize>
<asp:ImageButton ID="AddCommentHtml" runat="server" AlternateText="Edit HTML" ToolTip="Edit HTML" SkinID="EditIcon" OnClientClick="" CausesValidation="False" />
Now locate the following code
Code: Select all
_Order = OrderHelper.GetOrderFromContext();
and make it look like
Code: Select all
_Order = OrderHelper.GetOrderFromContext();
PageHelper.SetHtmlEditor(AddComment, AddCommentHtml);
This change will made the HTML editor available on the textbox when adding the note.
-
calvis
- Rear Admiral (RADM)
- Posts: 710
- Joined: Tue Jan 27, 2004 3:57 pm
- Location: Redmond, WA
Post
by calvis » Mon Jan 24, 2011 9:50 am
OK, thanks.
Able Customer Since 1999 Currently Running on GOLD R12 SR1 and PCI Certified.
-
mkeith1
- Commander (CMDR)
- Posts: 120
- Joined: Wed Jul 25, 2007 12:46 pm
-
Contact:
Post
by mkeith1 » Mon Jan 31, 2011 12:38 pm
Mazhar, how about code that will work in VERSION: 7.0.4.14026?
the first part
<asp:Localize ID="AddCommentCaption" runat="server" Text="Add Comment"></asp:Localize>
is in the file, but
_Order = OrderHelper.GetOrderFromContext();
is not in this file.
-
mazhar
- Master Yoda
- Posts: 5084
- Joined: Wed Jul 09, 2008 8:21 am
-
Contact:
Post
by mazhar » Thu Feb 03, 2011 8:46 am
Have you tried the code I have posted in first comment?
-
mkeith1
- Commander (CMDR)
- Posts: 120
- Joined: Wed Jul 25, 2007 12:46 pm
-
Contact:
Post
by mkeith1 » Thu Feb 03, 2011 6:20 pm
here's the code from my file.
Code: Select all
<%@ Page Language="C#" MasterPageFile="Order.master" CodeFile="OrderHistory.aspx.cs" Inherits="Admin_Orders_OrderHistory" Title="Order History and Notes" %>
<%@ Register Assembly="CommerceBuilder.Web" Namespace="CommerceBuilder.Web.UI.WebControls" TagPrefix="cb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
<div class="pageHeader">
<div class="caption"><h1><asp:Localize ID="Caption" runat="server" Text="Order History and Notes"></asp:Localize></h1></div>
</div>
<div width="100%" style="margin:4px 0px;">
<asp:GridView ID="OrderNotesGrid" runat="server" AutoGenerateColumns="False" DataKeyNames="OrderNoteId"
OnRowEditing="OrderNotesGrid_RowEditing" OnRowCancelingEdit="OrderNotesGrid_RowCancelingEdit" OnRowUpdating="OrderNotesGrid_RowUpdating"
OnRowDeleting="OrderNotesGrid_RowDeleting" CellSpacing="0" CellPadding="4" Width="100%" SkinID="Summary">
<Columns>
<asp:TemplateField HeaderText="Created">
<ItemStyle VerticalAlign="Top" HorizontalAlign="Left" BorderWidth="0" />
<headerstyle horizontalalign="Left" />
<ItemTemplate>
<asp:Label ID="CreatedDate" runat="server" Text='<%# Eval("CreatedDate") %>'></asp:Label><br />
<asp:Label ID="Author" runat="server" Text='<%# Eval("User.UserName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Comment">
<ItemStyle HorizontalAlign="Left" />
<HeaderStyle HorizontalAlign="Left" />
<ItemTemplate>
<asp:Label ID="Comment" runat="server" Text='<%# Eval("Comment") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="EditComment" runat="server" Text='<%# Eval("Comment") %>' TextMode="MultiLine" Rows="4" Columns="40"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Private">
<ItemStyle HorizontalAlign="Center" BorderWidth="0" />
<ItemTemplate>
<asp:CheckBox ID="IsPrivate" runat="server" Enabled="false" Checked='<%# Eval("IsPrivate") %>'></asp:CheckBox>
</ItemTemplate>
<EditItemTemplate>
<asp:CheckBox ID="EditIsPrivate" runat="server" Checked='<%# Eval("IsPrivate") %>'></asp:CheckBox>
</EditItemTemplate>
</asp:TemplateField>
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<asp:ImageButton ID="EditLink" runat="Server" CommandName="Edit" Text="Edit" Visible='<%#!(bool)Eval("IsSystem")%>' SkinID="EditIcon" ToolTip="Edit"></asp:ImageButton>
<asp:ImageButton ID="DeleteLink" runat="Server" CommandName="Delete" Text="Delete" Visible='<%#!(bool)Eval("IsSystem")%>' OnClientClick="return confirm('Are you sure you want to delete this note?')" SkinID="DeleteIcon" ToolTip="Delete"></asp:ImageButton>
</ItemTemplate>
<EditItemTemplate>
<asp:ImageButton ID="SaveLink" runat="Server" CommandName="Update" Text="Save" ToolTip="Save" SkinID="SaveIcon"></asp:ImageButton>
<asp:ImageButton ID="CancelLink" runat="Server" CommandName="Cancel" Text="Cancel" ToolTip="Cancel" SkinID="CancelIcon"></asp:ImageButton>
</EditItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
<asp:Panel ID="AddPanel" runat="server">
<table class="inputForm">
<tr class="sectionHeader">
<th style="text-align:left">
<asp:Localize ID="AddCommentCaption" runat="server" Text="Add Comment"></asp:Localize>
</th>
</tr>
<tr>
<td>
<asp:TextBox ID="AddComment" runat="server" TextMode="MultiLine" Rows="4" Columns="50"></asp:TextBox><br />
<asp:CheckBox ID="AddIsPrivate" runat="server" Text="Make comment private." />
</td>
</tr>
<tr>
<td>
<asp:Button ID="AddButton" runat="server" Text="Add Comment" OnClick="AddButton_Click" />
</td>
</tr>
</table>
</asp:Panel>
</asp:Content>
_Order = OrderHelper.GetOrderFromContext();
is not in this file
-
jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
-
Contact:
Post
by jmestep » Fri Feb 04, 2011 7:12 am
That line would be in the .cs file - OrderHistory.ascx.cs if it is in that build of Able.
_Order = OrderHelper.GetOrderFromContext();
-
mkeith1
- Commander (CMDR)
- Posts: 120
- Joined: Wed Jul 25, 2007 12:46 pm
-
Contact:
Post
by mkeith1 » Tue Feb 08, 2011 6:17 pm
Thanks Judy!