Skip to main content

Include email address on printed invoices [SOLVED]

More
12 years 3 months ago - 12 years 3 months ago #161240 by ROUBOS
-- url of the page with the problem -- : mywebsite.com/mypage
-- 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
Last edit: 12 years 3 months ago by ROUBOS.

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #161258 by nicolas
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.

More
12 years 3 months ago #161306 by ROUBOS
thanks that did it :)

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #174186 by MDIA_MikeW
Hi there,
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.

More
11 years 11 months ago #174194 by Xavier
Hi,

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.

More
11 years 11 months ago #174370 by MDIA_MikeW
Xavier;

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.

More
11 years 11 months ago - 11 years 11 months ago #174372 by Jerome
Hi,

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.
Last edit: 11 years 11 months ago by Jerome.
The following user(s) said Thank You: MDIA_MikeW

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #211123 by ingjjaa
Sorry for include re-opne the topic but is there anyway to include email update on addres form udate, the problem is that i create a user and password for a user and when he loggin in the page he auto redirect to the cart with prodct in this, but like i don't know the email that he would like to use i use a generic email but i would like that when the system ask him by the billing addres he would update the email is that possible ????

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #211124 by nicolas
HI,

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.

More
11 years 1 month ago #211177 by ingjjaa
Thank for the aswen

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.

More
11 years 1 month ago #211184 by Jerome
Hi,

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.

Time to create page: 0.270 seconds
Powered by Kunena Forum