- Posts: 68
- Thank you received: 0
Include email address on printed invoices [SOLVED]
-- HikaShop version -- : 1.5.8
-- Joomla version -- : 2.5.4
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message
Hi,
is it possible to include the customer's email address in the printed invoice?
Currently it has the billing address on this printed invoice, but their email is not shown anywhere.
thanks
Please Log in or Create an account to join the conversation.
Yes. You can add such code:
<?php echo $this->element->customer->user_email; ?>
in the "invoice" file of the view "order" of the backend via the menu Display>views for the invoice which can be printed from the order details page of the backend.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 5
- Thank you received: 0
I tried this addition to include the customer's email in my invoice but it didn't produce anything in the invoice.
There isn't an address_email in the billing custom fields.
Is that my problem and what do I add to get it to work?
Thanks,
nicolas wrote: Hi,
Yes. You can add such code:
<?php echo $this->element->customer->user_email; ?>
in the "invoice" file of the view "order" of the backend via the menu Display>views for the invoice which can be printed from the order details page of the backend.
Please Log in or Create an account to join the conversation.
It seems that ROUBOS was using the custom field in the "user" table and not in the address one.
So thanks to enable/create the user_email field and use the given code in the invoice.
Please Log in or Create an account to join the conversation.
- Posts: 5
- Thank you received: 0
This works now.. <?php echo $this->order->customer->user_email; ?>
How do I change the font size for the variables in {}s?
thanks a bunch.
Please Log in or Create an account to join the conversation.
The font size ?
For this kind of modification, I will recommend you to add some custom HTML and custom CSS.
www.hikashop.com/support/support/documen...ize-the-display.html
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
No, the system hasn't been made to work like that. You would have to create a custom address field in order to ask the email address and then develop a custom hikashop plugin implementing the onAfterAddressCreate and onAfterAddressUpdate triggers to update the user email when the address is saved. So if you're a developer that's possible.
Please Log in or Create an account to join the conversation.
I have see in other topic ( hikashop.com/forum/orders-management/869...invoices-solved.html ) that is possible to show the email on a invoice can we edit maybe the view for order custom fields or create a custom field on the order table and in the Checkout workflow show a field that just sho the email, maybe by PHP or something is that possible ???
Please Log in or Create an account to join the conversation.
I'm sorry but I don't understand your message.
Here some points :
1/ The other topic you're talking about is that exact topic ; so we are in a loop.
2/ Yes the order notification email can display the order custom fields but I don't see the link with your original question.
3/ Like Nicolas wrote, you need a custom plugin to perform the action you want, so yes, some PHP development is required.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.