Customer-ID in invoice

Phoca Cart - complex e-commerce extension
fredlmyers
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 20 Sep 2020, 15:14

Customer-ID in invoice

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Customer-ID in invoice

Post 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
If you find Phoca extensions useful, please support the project
Post Reply