1) You can modify the member data during check out by creating a post checkout pipeline which you run after the order is placed. The reason being the customer is created after the check out pipeline is run and thus is available for modification during runtime.
I was made aware of this behavior yesterday so haven't had a chance to fix it yet. I'm going to move the functionality into the checkout pipeline so you can play around with the member information yourself.
2) I'm guessing you want to do something along the lines of prepopulating the address information when the customer proceeds to check out? If that is the case you can handle it using XSLT. Basically you'll use the Umbraco extensions to figure out whether the customer is logged in - if she is you can prepopulate your address fields with the member information or alternatively find the customer information which is stored within uCommerce - complete with address information - and use that. Your choice.
Please note that you need to check off that you want members created for customers on your store (the first level in uCommerce Admin under Producg Catalog - the standard is uCommerce.dk).
Full XSLT docs are available at http://www.ucommerce.dk/docs (look for the UCommerce.Xslt section towards the end).
You're most welcome. Could I ask you to mark the question as answered provided you got the info you needed? Makes it easier to see if there are any outstanding questions to be handled. Thanks.
Your reply was very helpful and I managed to get loggedin customer information and update it. Though I stiill need to figure out how to also add the password when customer is adding his shipping and billing details. I think I will create another topic for this later sometime. Marking your reply as the solution.
As for setting customer information you need to hook into the checkout flow after Checkout is complete at which point the customer and member is created. I'm working on a refactoring at the moment which will make this very straightforward to achieve; uCommerce will even generate a user friendly password for you.
If you can wait a week the new release will be ready for you. Let me know if you'd like a version for testing.
Have you got any documentation of this? I can't seem to find much relating to members and how to add to each member things like address/password etc.... but I'm probably not looking in the right place. As this topic is pretty old now, I'm hoping there's some help floating around somewhere.
You still want to hook into the checkout pipeline to modify the member. uCommerce will create a member for you if the checkmark "Create Members for Customers" is set on the store itself. If you need to overwrite values on the member itself a custom pipeline task is the way to go: uCommerce Pipelines Explained.
Making Ucommerce buyers as Members in Ucommerce
Hi Everyone specially Soren
I have fugured out how to make ucommerce customers as members of ucommerce, everything is working fine except following.
1. I cannot see how to make customers to setup their password while entering shipping or billing details. How can I do that?
2. Is there any option, I can make the members as returning customers? So on address page, existing members simply login and proveed further.
Any help will be highly appreciated.
Regards
Nauman
1) You can modify the member data during check out by creating a post checkout pipeline which you run after the order is placed. The reason being the customer is created after the check out pipeline is run and thus is available for modification during runtime.
I was made aware of this behavior yesterday so haven't had a chance to fix it yet. I'm going to move the functionality into the checkout pipeline so you can play around with the member information yourself.
2) I'm guessing you want to do something along the lines of prepopulating the address information when the customer proceeds to check out? If that is the case you can handle it using XSLT. Basically you'll use the Umbraco extensions to figure out whether the customer is logged in - if she is you can prepopulate your address fields with the member information or alternatively find the customer information which is stored within uCommerce - complete with address information - and use that. Your choice.
Soren
I understand the logic but any help with sample code is be appreciated.
Nauman
1) If you can wait the code for this one to next week I'll have a new release ready which enables you to modify the customer.
2) As for this one basically you'll perform the test to check whether the member is currently logged on using the Umbraco extensions like so:
Optionally you can load the member information from Umbraco if you need it.
Load uCommerce customer information using:
The XML structure returned by this call will include information about the customer and any addresses stored with the customer profile:
You can see documentation for the extension at http://www.ucommerce.dk/docs/html/M_UCommerce_Xslt_TransactionLibrary_GetCurrentCustomer.htm
Please note that you need to check off that you want members created for customers on your store (the first level in uCommerce Admin under Producg Catalog - the standard is uCommerce.dk).
Full XSLT docs are available at http://www.ucommerce.dk/docs (look for the UCommerce.Xslt section towards the end).
Hope this helps.
Soren
Thanks a lot for providing help. I will work on it and will come back if I need further help. Thanks again.
Cheers
Nauman
You're most welcome. Could I ask you to mark the question as answered provided you got the info you needed? Makes it easier to see if there are any outstanding questions to be handled. Thanks.
Soren
Your reply was very helpful and I managed to get loggedin customer information and update it. Though I stiill need to figure out how to also add the password when customer is adding his shipping and billing details. I think I will create another topic for this later sometime. Marking your reply as the solution.
Regards
Nauman
Glad that's it working.
As for setting customer information you need to hook into the checkout flow after Checkout is complete at which point the customer and member is created. I'm working on a refactoring at the moment which will make this very straightforward to achieve; uCommerce will even generate a user friendly password for you.
If you can wait a week the new release will be ready for you. Let me know if you'd like a version for testing.
Hey Søren,
Have you got any documentation of this? I can't seem to find much relating to members and how to add to each member things like address/password etc.... but I'm probably not looking in the right place. As this topic is pretty old now, I'm hoping there's some help floating around somewhere.
thanks
- Tim
Hi Tim,
You still want to hook into the checkout pipeline to modify the member. uCommerce will create a member for you if the checkmark "Create Members for Customers" is set on the store itself. If you need to overwrite values on the member itself a custom pipeline task is the way to go: uCommerce Pipelines Explained.
Hi Søren,
Please can you tell me where to find the checkbox for "Create Members for Customers"? I cannot see it in uCommerce 2.6.1.0.
Is there a good forum post or documentation for this subject? I am having some problems with this.
Thanks in advance,
Tim Gow
Just found it here, so ignore: http://our.umbraco.org/projects/website-utilities/ucommerce/ucommerce-support/24184-How-to-relate-existing-Umbraco-members-to-uCommerce-Customer
It seems to be working OK! Thanks a load!
It's on the store level (first level under Product Catalog).
is working on a reply...