Page 1 of 1

Customer-ID in invoice

Posted: 23 Sep 2020, 17:22
by fredlmyers
Hello,
does anybody know how to integrate a customer-id into the invoice and where do I find the customer-ID in the phoca-component?
Thanks for all answers.
Best regards
Fred

Re: Customer-ID in invoice

Posted: 25 Sep 2020, 13:44
by Jan
Hi, for now, there is no customer ID in Phoca Cart.

Each customer (except guest users) is just standard logged in Joomla! user, so the ID is Joomla! user ID. So if needed in invoice, just get the User ID and paste it to invoice:

Layout for invoice:
components\com_phocacart\layouts\order.php

User ID is stored in this variable: $d['common']->user_id in this layout.

Jan