public bool ProducstWereLoadedVerified(CommerceServiceEvents.ProductsLoaded pl) { if (pl.Success) { if (Service.Get<MixLoginCreateService>().RegistrationAgeBand != null) { membershipPlans = new MembershipPlans(Service.Get<MixLoginCreateService>().RegistrationAgeBand.CountryCode); } Service.Get<MixLoginCreateService>().OnRegistrationConfigUpdated += onRegistrationConfigUpdated; } productsLoaded = pl.Success; productsLoading = false; return false; }
public bool ProducstWereLoadedVerified(CommerceServiceEvents.ProductsLoaded pl) { Product productByKey = cs.GetProductByKey("First_Time_User_Offer"); if (productByKey != null && productByKey.IsPurchasable()) { string sku_duration = productByKey.sku_duration; string price = productByKey.price; string currencyCode = productByKey.currencyCode; string title = productByKey.title; string description = productByKey.description; string text = ""; if (productByKey.IsTrial()) { text = productByKey.sku_trial_duration; } } return(false); }