Hey Luke,
I just noticed something, Apply Coupon code on Cart.aspx page is not showing up for any of the roles except administrator. What do you think might be the problem
The page load looks like this
if (!IsPostBack)
{
lblCheckout.Text = (string)HttpContext.GetGlobalResourceObject("Common", "ReadyToOrder");
btnEstimateShipping.OnClientClick = string.Format("OpenResizablePopupWindow(\"{0}\", 400, 400)", SiteNavigation.ShippingEstimatorPage);
Block block = Block.GetByName(Constant.UI.ProductSummaryBlockName, ProductSummaryData.DefaultBlock);
productSummaryData = Utils.FromXml<ProductSummaryData>(block.Data.ToString());
BindControls();
if (null != Cart)
{
pnlGiftWrap.Visible = CommercialStoreConfigurationSection.GetSection().GiftWrapEnabled;
couponDiscount = CoreHelper.GetCouponAmount(Cart);
giftCertificateTotal = CoreHelper.GetGiftCertificatesAmount();
UpdateTotals();
}
if ((!Roles.IsUserInRole("Distributor")) && (!Roles.IsUserInRole("Dealer")) && (!Roles.IsUserInRole("Partner")) && (!Roles.IsUserInRole("WirelessStore")) && (!Roles.IsUserInRole("Retailer")) && (!Roles.IsUserInRole("Jober")) && (!Roles.IsUserInRole("Administrator")))
{
googleCheckoutButton.Visible = false;
}
else
{
pnlInStoreCheckout.Visible = InStoreCheckoutEnabled();
googleCheckoutButton.Visible = !WebUtils.IsDiscountGroup();
pnlCoupon.Visible = !WebUtils.IsDiscountGroup();
}
|