Error calculating price on product page.
Posted: Thu Dec 11, 2008 10:20 am
I'm getting this error :
[[ConLib:Custom/FramedMirrorProductDialog]] d:\hosting\iartzstore\ConLib\Custom\FramedMirrorProductDialog.ascx.cs(525): error CS1002: ; expected
From this code it seems:
Any thoughts? Thanks.
[[ConLib:Custom/FramedMirrorProductDialog]] d:\hosting\iartzstore\ConLib\Custom\FramedMirrorProductDialog.ascx.cs(525): error CS1002: ; expected
From this code it seems:
Code: Select all
{
//GET THE CURRENT CALCULATED PRICE
string optionList = ProductVariantDataSource.GetOptionList(_ProductId, _SelectedOptions, true);
ProductCalculator pcalc = ProductCalculator.LoadForProduct(_ProductId, 1, optionList, _SelectedKitProducts);
LSDecimal otherCost = pcalc.Price - _Product.Price;
LnFtCost = ((((((Width + Height) * 2 / 12) * _Product.Price) + (((((Width + Height) / 144)-(Width * 2)) * Bevel) + 3.5)) * .25) * 2) * 2) ;
CalculatedCost = LnFtCost + otherCost;
PricePerLnFtLabel.Text = _Product.Price.ToString("ulc");
CalculatedPriceLabel.Text = CalculatedCost.ToString("ulc");
}