OS-ServiceBooking attache a xml with booking data

  • mediaDESIGN.SK
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 months 20 hours ago #168822 by mediaDESIGN.SK
How can I attach an XML file with the booking data to OS-ServiceBooking emails?

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

More
4 months 4 hours ago #168840 by Mr. Dam
Hi,
We haven't tried it before, you can test it to confirm
Thanks
Dam

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

  • mediaDESIGN.SK
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 4 weeks ago #168851 by mediaDESIGN.SK
Replied by mediaDESIGN.SK on topic OS-ServiceBooking attache a xml with booking data
I noticed that there are no hooks or triggerEvents in your code where I can attach my script to generate XML code.
I would have to modify the core script. If I do that, are you willing to include my code suggestion in your install package?

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

More
3 months 4 weeks ago #168860 by Mr. Dam
Hi,
I am not sure with your modification code, so i can't promise now. But you can make the customization.
Thanks
Dam

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

  • mediaDESIGN.SK
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 4 weeks ago #168864 by mediaDESIGN.SK
Replied by mediaDESIGN.SK on topic OS-ServiceBooking attache a xml with booking data
I will send you the code proposal and you will check and decide. The code will follow Joomla conventions, as other extensions do.

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

More
3 months 4 weeks ago #168882 by Mr. Dam
OK, i will wait for your news
Thanks
Dam

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

  • mediaDESIGN.SK
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 months 1 week ago - 2 months 1 week ago #169642 by mediaDESIGN.SK
Replied by mediaDESIGN.SK on topic OS-ServiceBooking attache a xml with booking data
Hello Dam, it's been a while since we talked about this task. We needed some time to program the XML attachment until all the customer's wishes were taken into account. I wanted to avoid asking you to make changes to the core script multiple times and just deliver the final version once. Now the time has come.
I ask you to insert these two lines in the script components\com_osservicesbooking\helpers\common.php. This will trigger the XML generation for the employee notification and the admin notification. It works according to modern Joomla standards.

After line 534:

}
/*
* DEV mDSK
* Create xml file send to email
*/

Factory::getApplication()->triggerEvent('onOSSCommonSendEmail', array(&$sbj, &$body, $orderId, $configClass, &$mailer, &$attachment, $email_type));

/*
* END
*/
if ($mailfrom != "" && $order_email != "") {
if ($email_type == "confirm" || $email_type == "attended_thankyou_email") {


After new line no. 1090:

}
/*
* DEV MDSK
* Create xml file send to email
*/
Factory::getApplication()->triggerEvent('onOSSCommonSendEmployeeEmail', array(&$sbj1, &$body, $orderId, $configClass, &$mailer, &$attachment, $email_type));
/*
* END
*/
$cc = ;
$bcc = ;
try {
OSBHelper::logMail($email_type, $orderId, $email, $sbj1, $body1);
$mailer->sendMail($mailfrom, $fromname, $email, $sbj1, $body1, 1, $cc, $bcc, $attachment);

Please give me feedback on this.

I would also like to ask you to check whether I can sell the XML attachment plugin via your platform or whether you want to link to me. I am sure there are other customers for whom the plugin is useful. My customer uses it to be able to import the booking data into his CRM. It is better than an ICS attachment.

 
 
  • Last edit: 2 months 1 week ago by mediaDESIGN.SK.

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

    • mediaDESIGN.SK
    • Topic Author
    • Offline
    • New Member
    • New Member
    More
    2 months 1 week ago #169643 by mediaDESIGN.SK
    Replied by mediaDESIGN.SK on topic OS-ServiceBooking attache a xml with booking data
     

    File Attachment:

    File Name: components.zip
    File Size:17 KB
  • Please Log in or Create an account to join the conversation.

    • mediaDESIGN.SK
    • Topic Author
    • Offline
    • New Member
    • New Member
    More
    1 month 3 weeks ago #169899 by mediaDESIGN.SK
    Replied by mediaDESIGN.SK on topic OS-ServiceBooking attache a xml with booking data
    Hi Dam,
    I didn't get any feedback on my request to include code. Please let me know if you will include this code in the core.

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

    More
    1 month 3 weeks ago #169937 by Mr. Dam
    Hi,
    I see your custom code, i am not able to add the customization into core of OS Services Booking, because it will make the code structure messy.
    In this case, you can add the custom change into common.php, but you will need to do the change whenever you upgrade OS Services Booking extension.
    Thanks
    Dam

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

    Moderators: Mr. Dam