Esempio n. 1
0
        private void DisplayProductInfo()
        {
            ltrProductName.Text      = productInfo.ProductName;
            ltrCurrencySymb.Text     = EcommerceSettings.CurrencyCodeISO;
            btnOrder.CommandArgument = productInfo.ProductId.ToString();

            // highlights
            rptHighlights.DataSource = StorefrontHelper.GetProductHighlights(ecPanelRequest.ResellerId,
                                                                             productInfo.ProductId);
            rptHighlights.DataBind();

            // price
            HostingPlanCycle[] cycles = StorefrontHelper.GetHostingPlanCycles(ecPanelRequest.ResellerId,
                                                                              productInfo.ProductId);
            //
            if (cycles != null && cycles.Length > 0)
            {
                ltrProductPrice.Text = cycles[0].RecurringFee.ToString("C");
            }
        }
 public void LoadHostingPlanCycles(int productId)
 {
     rptPlanCycles.DataSource = StorefrontHelper.GetHostingPlanCycles(ecPanelRequest.ResellerId, productId);
     rptPlanCycles.DataBind();
 }