framework icon indicating copy to clipboard operation
framework copied to clipboard

Customer account / Customer login / adding data to the customer object

Open samo9789 opened this issue 6 years ago • 4 comments

I copied some of the demo code for the checkout flow and now, at this stage, in the database, after going through the checkout flow, I see

  1. Entries in the addresses table
  2. Bill payers
  3. Orders

Now I have he following questions

Why do I have no customer in the customers table ? I was assuming the customer would be linked to a Laravel user account or something so that the customer could log back in his/her account later (and see an order list for example). Today, the order is linked to the billpayer but I see no way for this billpayer to authenticate. Actually, this billpayer does not have an email …. So, numbering my questions :

  1. How to create a customer account so that the user can authenticate later ?
  2. How to add an email to the customer or billpayer ?
  3. How to add data to the customer object (like phone)
  4. What are the order statuses today ? Pending means paid and processed by seller ? Or means awaiting payment ?
  5. Also, in the example I do not see any code to populate the "notes" field of the order

Thanks for your help

samo9789 avatar Jul 30 '19 15:07 samo9789

any update on this?

ghermans avatar Jan 21 '20 23:01 ghermans

  • 1. Binding of customers/users hasn't been implemented yet in the framework, coming in 2.1.
  • 2. and 3. Customer has these fields, so $customer->email = '[email protected]'; see https://vanilo.io/docs/1.1/customers#fields
  • 4. Order statuses are completely up to you. You can customize them freely, see: https://vanilo.io/docs/1.1/enums#customizing-enums
  • 5. That's also in progress at the moment will ship with 2.0 within 2 weeks.

fulopattila122 avatar Jan 22 '20 11:01 fulopattila122

Could you please provide us a status update regarding 2.0 ? UpdateKnipsel

ghermans avatar Feb 17 '20 19:02 ghermans

@ghermans done image

fulopattila122 avatar Mar 29 '20 14:03 fulopattila122