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.

  • Gustas Sagaitis 14 posts 93 karma points
    May 27, 2014 @ 13:42
    Gustas Sagaitis
    0

    uCommerce webshop member area, order history, member privileges

    Hi,

    We are working on webshop based on umbraco and ucommerce.

    We need to have ability for members to login on website so they don't need to type their information when they are purchasing products. Right now members are created when customers checkout, set by some setting in ucommerce. I can see the members in backend, but what are their passwords? How should we add additional information to member like address and phone number?

    Members should be able to see their order history when they are logged in. How should that be implemented? How should members and order be linked? Some selected members should have additional payment options. There will be a field on member saying that "this member can use payment method x", how should this be implemented in ucommerce?

  • Morten Skjoldager 440 posts 1499 karma points
    May 27, 2014 @ 14:49
    Morten Skjoldager
    0

    Hi Gustas. 

    You can implement a pipeline task that sets additional information on the members. 

    See how to do this here: http://docs.ucommerce.net/ucommerce/v6/extending-ucommerce/create-pipeline-task.html ;

    The task should be hooked up on the checkout pipeline after the customer is created as a member. Find the checkout pipeline under 'Umbraco\uCommerce\pipelines\checkout.config'

    Members are linked to the Order like this:

    PurchaseOrder -> Customer -> MemberId 

    If you create a specialized page for that you can create a query that fetches all orders for a customer with memberId x. Read about querying here: 

    http://docs.ucommerce.net/ucommerce/v6/querying/products-in-multiple-categories.html

    Hope that helps. 

    Regards

    Morten

  • Gustas Sagaitis 14 posts 93 karma points
    May 27, 2014 @ 15:57
    Gustas Sagaitis
    0

    Hi Morten,

    Thanks for quick reply.

    Will look into creating additional task in checkout pipeline to add address, phone number and other information about member. I will try to find member by id from ucommerce customer entity.

    When member is created, what is the password set to? Is it possible to prompt them to type in their password or somehow echo it back to them?

    How about additional payment options for selected members?

  • Morten Skjoldager 440 posts 1499 karma points
    Jun 04, 2014 @ 16:45
    Morten Skjoldager
    0

    Passwords are auto generated to something random. You'll need to send an email to the customer with those information. Right now we do not have a pretty good hook where you can do it. However passwords are generated in the task called CreateMemberForCustomerTask. It has a method called GeneratePassword that you can override by derriving from it. 

    If you want them to promt for a password, create a custom property on the order with the password and use it in the method (The order is passed through in the pipelines so you will have access to it). 

    You can read how to create a custom pipeline task here:

    http://docs.ucommerce.net/ucommerce/v6/extending-ucommerce/create-pipeline-task.html

    You can slice an dice your data and your logic the way you want it to be. An idea here could be to make a convention on the available paymentmethods where you create a paymentmethod for each member type you have. 

Please Sign in or register to post replies

Write your reply to:

Draft