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

Phoca Cart - complex e-commerce extension
jourdaon
Phoca Member
Phoca Member
Posts: 25
Joined: 29 Jul 2019, 19:45

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

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

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

Post 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
If you find Phoca extensions useful, please support the project
jourdaon
Phoca Member
Phoca Member
Posts: 25
Joined: 29 Jul 2019, 19:45

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

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

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

Post 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
If you find Phoca extensions useful, please support the project
jourdaon
Phoca Member
Phoca Member
Posts: 25
Joined: 29 Jul 2019, 19:45

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

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

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

Post 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
If you find Phoca extensions useful, please support the project
jourdaon
Phoca Member
Phoca Member
Posts: 25
Joined: 29 Jul 2019, 19:45

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

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

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

Post by Jan »

Ok, added to feature request list.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

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