Pipeline to extend "Create customer as members" feature
Hi Søren,
I would like to extend the "Create customer as member" feature.
In the address information page, I make a checkbox "Subscribe as member" and if the user is checking this I want to save this user as a member in umbraco and also save some of the values from the address form. Otherwise I don't need to save him.
If I use the uCommerce feature "Create customer as member", can I extend it with a pipeline to handle following cases?
1. if the customer doesn't check the membership option I cancel the "Create customer as member" flow
2. if the customer checks for membership, I allow the member creation and besides that I save some member property values.
You sure can. You can store customer choice on the order as a dynamic order property either from XSLT by using CommerceLibrary:SetOrderProperty("signup", "true"); or some .NET purchaseOrder["signup"] = true;
From there you can pick up the value in your pipeline task and create member based on it. Unfortunately there's no way to override the existing pipeline task as the methods responsible for creating the member are private. I'll go ahead and change that to make it easier in the future but for now you'll have to do the pipeline task from scratch.
Pipeline to extend "Create customer as members" feature
Hi Søren,
I would like to extend the "Create customer as member" feature.
In the address information page, I make a checkbox "Subscribe as member" and if the user is checking this I want to save this user as a member in umbraco and also save some of the values from the address form. Otherwise I don't need to save him.
If I use the uCommerce feature "Create customer as member", can I extend it with a pipeline to handle following cases?
1. if the customer doesn't check the membership option I cancel the "Create customer as member" flow
2. if the customer checks for membership, I allow the member creation and besides that I save some member property values.
You sure can. You can store customer choice on the order as a dynamic order property either from XSLT by using CommerceLibrary:SetOrderProperty("signup", "true"); or some .NET purchaseOrder["signup"] = true;
From there you can pick up the value in your pipeline task and create member based on it. Unfortunately there's no way to override the existing pipeline task as the methods responsible for creating the member are private. I'll go ahead and change that to make it easier in the future but for now you'll have to do the pipeline task from scratch.
is working on a reply...