コード例 #1
0
 /// <summary>
 /// Initializes the control properties.
 /// </summary>
 protected void SetupControl()
 {
     if (this.StopProcessing)
     {
         // Do not process
     }
     else
     {
         PersonifyControlBase objbase = new PersonifyControlBase();
         var ctrl = new Personify.WebControls.ShoppingCart.UI.CheckoutControl();
         phPersonifyControl.Controls.Add(ctrl);
     }
 }
コード例 #2
0
    protected void Page_InIt(object sender, EventArgs e)
    {
        PersonifyControlBase objbase = new PersonifyControlBase();
        var ctrl = new Personify.WebControls.ShoppingCart.UI.CheckoutControl();

        PersonifyControlBase obbase = new PersonifyControlBase();


        ctrl.BackToCartUrl = "/personify/store/ViewCartPageUrl";
        ctrl.CancelButtonRedirectPageUrl      = "";
        ctrl.CheckoutCompletedRedirectPageUrl = "";
        ctrl.CouponWasNotAppliedMessage       = "Coupon was not applied";
        ctrl.ErrorMessage          = "Order is empty. Please add items to it before checkout.";
        ctrl.ProductIdUrlParameter = "productid";

        objbase.InitPersonifyWebControl(ctrl);
        phPersonifyControl.Controls.Add(ctrl);
    }