Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Invoice notification

 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #41  
Old 11-17-2014, 08:35 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default 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
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #42  
Old 11-18-2014, 04:51 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Invoice notification

What do you think Tony? I'd like to get this mod done. I'm almost done with the site.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #43  
Old 11-24-2014, 04:34 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #44  
Old 11-25-2014, 09:41 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default 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?
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #45  
Old 11-26-2014, 06:02 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #46  
Old 11-30-2014, 05:15 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Invoice notification

Tony,

Finally we have a winner! thanks again for the help!
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:28 PM.

   

 
X-Cart forums © 2001-2020