BUG: Print My Order - Digital good.. fix included

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
werD
Ensign (ENS)
Ensign (ENS)
Posts: 7
Joined: Tue May 25, 2010 1:23 pm

BUG: Print My Order - Digital good.. fix included

Post by werD » Tue May 25, 2010 1:41 pm

Im evaluating this product for a client. I dont have a customer account to submit bugs..(seems like a dumb restriction.. customer account for support [good idea].. customer account for bugs [really bad idea])

This is relevant to AbleCommerce 7.0.4 build 13424

When viewing the print my order page with a digital good on the page, the links to the download, the readme, and the agreement are all bugged. Basically the url and the onclick event are built up using a concatenated string(i.e. "page.htm\" onclick=\"blah;\"" ..bad practice). The value of this string is then used to set to the NavigateUrl property of an asp:hyperlink control. This causes the quotes to be escaped and the links to not work properly(i.e. href="page.htm onclick=").


Fixes:
PrintMyOrderPage.ascx
<asp:GridView ID="DigitalGoodsGrid" runat="server" Width="100%" AutoGenerateColumns="false" GridLines="none" SkinID="ItemList">
<Columns>
<asp:TemplateField HeaderText="Name" ItemStyle-HorizontalAlign="Left">
<ItemTemplate>
<a href="<%#GetDownloadUrl(Container.DataItem)%>"><%#Eval("DigitalGood.Name")%></a>
<%--<asp:HyperLink ID="Name" runat="server" Text='<%#Eval("DigitalGood.Name")%>' NavigateUrl='<%# GetDownloadUrl(Container.DataItem) %>'></asp:HyperLink>--%>
</ItemTemplate>
</asp:TemplateField>
ConLib/Utility/OrderItemDetail.ascx
<asp:Panel ID="AssetsPanel" runat="server">
<ul>
<asp:Repeater ID="AssetLinkList" runat="server">
<ItemTemplate>
<li>
<a href="<%#Eval("NavigateUrl")%>"><%#Eval("Text")%></a>
<%--<asp:HyperLink ID="AssetLink" runat="server" NavigateUrl='<%#Eval("NavigateUrl")%>' Text='<%#Eval("Text")%>'></asp:HyperLink>--%>
</li>
</ItemTemplate>
ConLib/Utility/OrderItemDetail.ascx.cs

This one is probably wrong.. are there instances where this wouldn't load in a POPUP?
//SHOW ASSETS
List<ProductAssetWrapper> assets = ProductHelper.GetAssets(this.Page, _OrderItem.Product, _OrderItem.OptionList, _OrderItem.KitList, "javascript:window.close();");//"~/Members/MyOrder.aspx?OrderNumber=" + _OrderItem.Order.OrderNumber.ToString() + "&OrderId=" + _OrderItem.OrderId.ToString()
Note: i didnt see any code references to these controls anyway, so I didnt put a runat=server or id on the controls

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Re: BUG: Print My Order - Digital good.. fix included

Post by Shopping Cart Admin » Tue May 25, 2010 6:42 pm

Howdy,

We use digital goods a lot in our store, so I'm not sure you've actually found an issue, but thank you for your detailed report. I'm sure one of our developers will have comments.
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

User avatar
werD
Ensign (ENS)
Ensign (ENS)
Posts: 7
Joined: Tue May 25, 2010 1:23 pm

Re: BUG: Print My Order - Digital good.. fix included

Post by werD » Wed May 26, 2010 7:14 am

Shopping Cart Admin wrote:Howdy,

We use digital goods a lot in our store, so I'm not sure you've actually found an issue, but thank you for your detailed report. I'm sure one of our developers will have comments.
Most people probably wouldnt notice it because you have to purchase a digital good, then hit the print button, then try to click a license agreement
Drew Greenwell

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: BUG: Print My Order - Digital good.. fix included

Post by mazhar » Wed May 26, 2010 11:56 am

Hi Drew, thanks for letting us know about this. I can see in my development install that these are not working on print page. I have crated a new issue in our logs you can track progress on it here http://bugs.ablecommerce.com/show_bug.cgi?id=8907

User avatar
werD
Ensign (ENS)
Ensign (ENS)
Posts: 7
Joined: Tue May 25, 2010 1:23 pm

Re: BUG: Print My Order - Digital good.. fix included

Post by werD » Wed May 26, 2010 12:47 pm

mazhar wrote:Hi Drew, thanks for letting us know about this. I can see in my development install that these are not working on print page. I have crated a new issue in our logs you can track progress on it here http://bugs.ablecommerce.com/show_bug.cgi?id=8907
Thanks Mazhar!
Drew Greenwell

Post Reply