Page 1 of 1

Configuration of emails, is it possible to add a footer.

Posted: 04 Aug 2019, 16:07
by jourdaon
Hi,

I am trying to configure my automatic mail sending, with the status 'COM_PHOCACART_STATUS_PENDING', I wanted to integrate the order form, everything is pass without problem.

I would like to know if I can put information, address ... contacts ... after the order form

I would also point out that the image link 'Powered by' is broken in the body of the mail.

Moreover, if I could have the 'Powered by' at the bottom of the mail, it would arrange me even more ....

Image

thank you,
Kind Regards
Thierry

Re: Configuration of emails, is it possible to add a footer.

Posted: 06 Aug 2019, 14:05
by Jan
Hi, see:
https://www.phoca.cz/documents/116-phoc ... or-vendors

There are different variables they can be used in the mail. You can just add the information as fixed. But not sure what you mean with "order form"? Do you mean the Order (Delivery Note/Invoice/Receipt) which is set as suffix to the mail? If yes, then the only way is to customize the core code as there is no option to change the position of the Order :idea:

Thank you for the info about the broken images, I will take a look at it.

Jan

Re: Configuration of emails, is it possible to add a footer.

Posted: 06 Aug 2019, 16:26
by jourdaon
Hello Jan,

The purchase order is a summary of the order placed, an Acknowledgment of receipt of order, it is more correct in the French language and in French commercial language.

When for example the customer, with a payment on delivery, places his order I made sure that a confirmation email is sent to him, because the status remains in pending and it requires to have a manual action. So with this manipulation an email is sent to him and also to the person who can do his job of sending goods.

In the current commercial documents in France we have:
- Quote
- Purchase order
- Delivery form
- Bill
The receipt is not used, it is the invoice that is authentic, otherwise it is used, if the customer pays a deposit.

For the modification of the code, ok, can you tell me which page is to modify and where it is. It would save me from looking too long.

Thanks Jan,
Regards,
Thierry

Re: Configuration of emails, is it possible to add a footer.

Posted: 07 Aug 2019, 13:21
by Jan
Hi, mostly the workflow is following:

- if you order the item and the status is pending - you will get "Order" - summary of ordered items with sutbtotal and total
- if vendor changes the status e.g. to completed - you will get "Invoice"
- in backand you can even print "Delivery Note" e.g. if you send the items - for e.g. delivery service

What exactly do you need to modify? The documents: Invoice, Order, Delivery Note?

Jan

Re: Configuration of emails, is it possible to add a footer.

Posted: 07 Aug 2019, 13:52
by jourdaon
Hello Jan,

I would just like to be able to add information to the mail body after the order summary. I would just like to know on which
page intervene or it may be in the BDD?

Clearly, put a footer on emails

thank you,
Regards,
Thierry

Re: Configuration of emails, is it possible to add a footer.

Posted: 07 Aug 2019, 16:03
by Jan
Hi, for now you can edit it here:
administrator/components/com_phocacart/libraries/phocacart/order/status.php

on line cca 622 you can paste to variables:

$body and
$bodyOthers addtional text, e.g.:

Code: Select all

$body .= '<br><br>This is some footer';
But of course if you edit this file, such needs to be backuped as this will be overwritten by next release

Jan

Re: Configuration of emails, is it possible to add a footer.

Posted: 07 Aug 2019, 18:35
by jourdaon
Hello Jan,

Super is exactly what I wanted to do, I suggest you add this option in future releases.
It is very practical, useful and it improves the template of emails.

I add this code
$body .= '<br><br>'.'<hr />'.JText::_('COM_PHOCACART_FOOTER_MAIL_MESSAGE').'<br><br>';

Image

Thanks Jan,
Regards,
Thierry

Re: Configuration of emails, is it possible to add a footer.

Posted: 12 Aug 2019, 11:33
by Jan
Ok, added to feature request list.

Jan

Re: Configuration of emails, is it possible to add a footer.

Posted: 26 Aug 2019, 16:05
by Jan
Hi, the footer option for emails set in version 3.3.2
https://www.phoca.cz/news/1058-phoca-ca ... 2-released
Jan