Bug fixes

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
igavemybest
Captain (CAPT)
Captain (CAPT)
Posts: 388
Joined: Sun Apr 06, 2008 5:47 pm

Bug fixes

Post by igavemybest » Fri Dec 11, 2009 12:37 pm

Just thought I would post this here so everyone can see and make changes as needed. I hope this helps someone :D

1) In the AquaTheme's style.css (it may be in the other themes as well, I didnt check) the style that governs the store search textbox is set as:

#storeHeader .search input.searchPhrase

but needs to be

#storeHeader .searchPhrase

2) If someone has a balance on their account, in shows the OrderId still in the notification box. ConLib/OrderBalanceDialog.ascx.cs needs to be changed to this: (the areas changed are highlighted in BOLD which is why I didnt paste this as code)

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Text;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CommerceBuilder.Common;
using CommerceBuilder.Orders;
using CommerceBuilder.Utility;

public partial class ConLib_OrderBalanceDialog : System.Web.UI.UserControl
{
private Order _Order;
private int _OrderId = 0;
private int _OrderNumber = 0;
private string _Caption = "Balance Due";

[Personalizable(), WebBrowsable()]
public string Caption
{
get { return _Caption; }
set { _Caption = value; }
}

protected void Page_Load(object sender, EventArgs e)
{
_OrderId = AlwaysConvert.ToInt(Request.QueryString["OrderId"]);
_OrderNumber = AlwaysConvert.ToInt(Request.QueryString["OrderNumber"]);
_Order = OrderDataSource.Load(_OrderId);
if (_Order != null && _Order.OrderStatus.IsValid)
{
LSDecimal balance = _Order.GetCustomerBalance();
if (balance > 0)
{
phCaption.Text = this.Caption;
phInstructionText.Text = string.Format(phInstructionText.Text, _OrderNumber);
PayLink.NavigateUrl += "?OrderNumber=" + _Order.OrderNumber.ToString() + "&OrderId=" + _OrderId.ToString();
}
else this.Controls.Clear();
}
else this.Controls.Clear();
}
}

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Bug fixes

Post by jmestep » Fri Dec 11, 2009 1:53 pm

I'll post a bug report
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
igavemybest
Captain (CAPT)
Captain (CAPT)
Posts: 388
Joined: Sun Apr 06, 2008 5:47 pm

Re: Bug fixes

Post by igavemybest » Fri Dec 11, 2009 3:06 pm

Thx

Post Reply