Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Andrei 68 posts 130 karma points
    Nov 04, 2010 @ 15:54
    Andrei
    0

    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.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Nov 05, 2010 @ 13:56
    Søren Spelling Lund
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft