Is it possible to create or setup user account when checkout to manage the user profile?
Is there any way from where user can login/register and manage their profiles, orders etc?
Is it possible to create or setup user account when checkout to manage the user profile?
Is there any way from where user can login/register and manage their profiles, orders etc?
Hi @Priyank_Patel. Welcome to the forum!
Yes, component modules for listing orders and cases are now available and will be added to the documentation this week.
Logged in users can update their details via the Update Account Form found under the āSecure Zoneā section of the component Manager:
You could have a separate register/login form or perhaps you can add the registration/password fields to the checkout form to do this at time of checkout (although I havenāt tested this).
Also, hereās a link to the Secure Zone documentation:
https://docs.treepl.co/content-modules/secure-zones
Great, Thanks for the reply!
Also, is there any way to show the user acount details as a profile page?
I will try it to test and let you know if it will work.
Adam, I look forward to documentation on that. I wonder, with orders, will it show credits like Gift Vouchers and maybe even balances if say only part of a gift voucher was used on a purchase?
Update:
Documentation now added for various eCommerce related components, including:
https://docs.treepl.co/component-types/orders
I added more content into the secure zone āAccount Settingsā page that shows the profile update form and using the āOrderā module to list a customerās orders, but Iām not sure how to link to a page for specific details of each order.
I have a āDetailsā button for linking to href="/secure-zone/purchase-details?id={{order.id}}", but Iām not sure on the Purchase Details page how to get the url parameter {{order.id}} and use it to filter the orders by that particular ID when the page builds.
Does @Adam.Wilson or anyone have a suggestion for this?
Thanks for any help.
You can get your URL parameter with the following Liquid:
{{request.request_url.params.id}}
So you can then use this to filter the Order component:
{% component type: "orders", filterBy: "Id", filterValue: "{{request.request_url.params.id}}" %}
Since you are wanting this to be a detailed page, youāll need to build that yourself, so Iād suggest suppressing the default layout and creating a collection:
{% component type: "orders", layout: "", collectionVariable: "orderData", filterBy: "Id", filterValue: "{{request.request_url.params.id}}", layout: "" %}
Then you can access any of the data like so:
{{orderData.items[0].Name}}
{{orderData.items[0].InvoiceNumber}}
{{orderData.items[0].AmountPaid}}
etc...
(see all data available here: orders )
Great, thank you for this. Iāll give it a go!
@g.davis Basically we do what @Adam.Wilson wrote. We are using the same HTML layout for the email invoice and the order detail page. This way customers can print duplicates of their invoices from their user accounts. And we use this service to offer a download of the invoice as PDF: https://pdfcrowd.com/