How to activate direct login on your customers Store.
Configuring the Storefront
- Open the Web.config located in C:\Program Files (x86)\Atomia\PublicOrderPage.
- Change the ImmediateLogin setting to true. See example.
- Set the ImmediateProvisioning setting to true. See example.
<globalSetting name="ImmediateLogin" value="true" />
<globalSetting name="ImmediateProvisioning" value="true" />
Configuring the Atomia store
- Register Atomia.Store.PublicBillingApi.OrderCreator to the Atomia.Store.PublicBillingApi.TokenLoginOrderCreator implementation in the Unity container to override the default Atomia.Store.PublicBillingApi.SimpleOrderCreator implementation.
- Add something like the following to your custom App_Start/UnityConfig.cs:
container.RegisterType<OrderCreator, Atomia.Store.PublicBillingApi.TokenLoginOrderCreator>( new InjectionConstructor( new ResolvedParameter<PaymentUrlProvider>(), new ResolvedArrayParameter<OrderDataHandler>( new ResolvedParameter<OrderDataHandler>("Reseller"), new ResolvedParameter<OrderDataHandler>("LanguageHandler"), new ResolvedParameter<OrderDataHandler>("Currency"), new ResolvedParameter<OrderDataHandler>("MainContact"), new ResolvedParameter<OrderDataHandler>("BillingContact"), new ResolvedParameter<OrderDataHandler>("CampaignCode"), new ResolvedParameter<OrderDataHandler>("IpAddress"), new ResolvedParameter<OrderDataHandler>("RegisterDomain"), new ResolvedParameter<OrderDataHandler>("TransferDomain"), new ResolvedParameter<OrderDataHandler>("OwnDomain"), new ResolvedParameter<OrderDataHandler>("SetupFees"), new ResolvedParameter<OrderDataHandler>("Default"), new ResolvedParameter<OrderDataHandler>("RemovePostOrder") ), new ResolvedParameter<PublicBillingApiProxy>()));
- After enabling this feature, remember to edit your email template accordingly. Search for template name CustomerWelcomeEmailBody.