Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
EDC:
Download extensions for Elxis CMS
.
Home
Help
Login
Register
Elxis CMS Forum
»
Extensions
»
Components
»
modify the emails sent to admin and Hotelier
« previous
next »
Print
Pages: [
1
]
Author
Topic: modify the emails sent to admin and Hotelier (Read 4339 times)
bledi
Full Member
Posts: 244
modify the emails sent to admin and Hotelier
«
on:
July 21, 2014, 12:39:19 »
Hello!
I want to modify a little the way how IOS Reservation 4 sends emails to admin and hotelier.
I have activated the Credit Card offline Payment.
With the completion of a reservation the Credit card details are sent to HOTELIER. I dont want that, i want that the CC goes only to administrator. How can I change that?
After the clients finishes a reservation by entering the Credit card details he receives a confirmation email which says in the end:
Payment for Reservation H051-B0C9-8601
Payment method: Credit Card offline
Pay with your credit card. Your credit card will not be charged now but later by our personel. Accepted credit card are: Visa, MasterCard, American Express
Amount: EUR 12.00
Please click the link below to pay with your credit card.
Pay with credit card
The last sentence confuses the clients, because he just completed the payment.I need to remove this.
I would need also need the to remove same sentence from the email sent to Hotelier, which is still the same.
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: modify the emails sent to admin and Hotelier
«
Reply #1 on:
July 21, 2014, 13:59:46 »
The sentence there exist for the following reasons:
1. The method is an offline one. IOSR does not know if he did the payment unless the reservation is marked as paid.
2. The customer might not submit the offlinecc payment form, or close the window of the offline cc payment method and there must be a why a turn back and repeat the process.
If you want the administrator to receive the payment emails you can:
1. Change the email address in the hotel's edit page (this means that ALL emails will come to you - the adminidtrator-).
or
2. Modify the offline cc payment method and replace the dynamic email address from the database with a hardcoded one.
File:
components/com_reservations/ext/hotels/includes/pm/creditcardoff.hotels.php
Line 229
Change this:
$ok = $elxis->sendmail($subject, $msg, '', null, 'plain', $row->owneremail);
to this:
$ok = $elxis->sendmail($subject, $msg, '', null, 'plain', 'anything@example.com');
Also in file:
components/com_reservations/ext/hotels/includes/pm/ccoffext.php
line 376:
Change this:
$message->addTo($row->owneremail);
To this:
$message->addTo('anything@example.com');
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
bledi
Full Member
Posts: 244
Re: modify the emails sent to admin and Hotelier
«
Reply #2 on:
July 21, 2014, 14:37:16 »
Thanks Datahell!
After this change, will Hotelier receive the emails for a new reservation (not the payment email), automatically?
So I want that both administrator and Hotelier gets notification automatically for a new reservation, and then
only administrator
gets the email for the payment with the CC details.
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: modify the emails sent to admin and Hotelier
«
Reply #3 on:
July 21, 2014, 20:28:12 »
Yes he will. The notification for the reservation is different than the notification from the payment module. By default all these send the email to the hotel contact email address. Some payment methods have a special configuration options, others not.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Extensions
»
Components
»
modify the emails sent to admin and Hotelier