X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Invoice notification (https://forum.x-cart.com/showthread.php?t=69829)

minfinger 11-17-2014 08:35 PM

Re: Invoice notification
 
Here's the php_error.log

<?php die(1); ?>
[17-Nov-2014 08:56:38 America/Chicago] PHP Fatal error: Cannot make static method XLite\Core\MailerAbstract::sendProcessOrderCustome r() non static in class XLite\Module\FasterThanYours\InvoiceTextNotificati on\Core\Mailer in /home/myyamaha/public_html/lpo/var/run/classes/XLite/Module/FasterThanYours/InvoiceTextNotification/Core/Mailer.php on line 6

minfinger 11-18-2014 04:51 PM

Re: Invoice notification
 
What do you think Tony? I'd like to get this mod done. I'm almost done with the site.

tony_sologubov 11-24-2014 04:34 AM

Re: Invoice notification
 
Hi Michael!

Sorry, my bad with the code sample. Please replace this piece of code in your Core/Mailer.php file

Code:

public function sendProcessOrderCustomer(\XLite\Model\Order $order)

with the next one:

Code:

public static function sendProcessOrderCustomer(\XLite\Model\Order $order)

After that re-deploy the store and let me know if it works out.

Tony.

minfinger 11-25-2014 09:41 AM

Re: Invoice notification
 
I went in an changed a cash transaction to Paid and I got this:

ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2)
Call to undefined method XLite\Module\CDev\ContactUs\Core\Mailer::sendProce ssMail()

It's worth noting that the email associated with the users account received an order receipt with "Paid" Status on it. However the status did not actually change on that order to Paid.

This is the php_error.log:
[25-Nov-2014 12:30:43 America/Chicago] PHP Fatal error: Call to undefined method XLite\Module\CDev\ContactUs\Core\Mailer::sendProce ssMail() in /home/myyamaha/public_html/lpo/var/run/classes/XLite/Module/FasterThanYours/InvoiceTextNotification/Core/Mailer.php on line 10
[25-Nov-2014 12:30:43] Error (code: 1): Call to undefined method XLite\Module\CDev\ContactUs\Core\Mailer::sendProce ssMail()
Server API: cgi-fcgi;
Request method: POST;
URI: /admin.php?target=order;
Backtrace:
#0 Includes\ErrorHandler::logInfo(Call to undefined method XLite\Module\CDev\ContactUs\Core\Mailer::sendProce ssMail(), 1) called at [/home/myyamaha/public_html/lpo/Includes/ErrorHandler.php:324]
#1 Includes\ErrorHandler::handleError(Array ([type] => 1,[message] => Call to undefined method XLite\Module\CDev\ContactUs\Core\Mailer::sendProce ssMail(),[file] => /home/myyamaha/public_html/lpo/var/run/classes/XLite/Module/FasterThanYours/InvoiceTextNotification/Core/Mailer.php,[line] => 10)) called at [/home/myyamaha/public_html/lpo/Includes/ErrorHandler.php:309]
#2 Includes\ErrorHandler::shutdown()

Just in case you want it, here's the package:
https://www.dropbox.com/s/7x0lv6soz9tec8q/FasterThanYours-InvoiceTextNotification-v5_1_8.tar?dl=0

So I'm not sure why the Mailer is calling the ContactUs Module?

tony_sologubov 11-26-2014 06:02 AM

Re: Invoice notification
 
Could you please also replace this line:

parent::sendProcessMail();

with the next one:

parent::sendProcessOrderCustomer($order)

in you class? It should do the trick.

minfinger 11-30-2014 05:15 PM

Re: Invoice notification
 
Tony,

Finally we have a winner! thanks again for the help!


All times are GMT -8. The time now is 09:39 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.