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?
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:
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?
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:
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.
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?
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
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?
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.
is working on a reply...