![]() |
Re: Invoice notification
I'm working on testing this now, but lets just say this does work.
How do I go about putting in a "Settings" link on the Module to allow me to configure the Email address and subject? |
Re: Invoice notification
Well I went to Rebuild the Cache after enabling the Module and I'm getting the following error:
Code:
Deploying store [step 1 of 11], please wait... |
Re: Invoice notification
aaah nevermind, I figured it out, your code had a space before the <?php
|
Re: Invoice notification
Ok so I put in my personal cell number and didn't get the notice. I went and changed the status to Paid and Processed, I didn't get a notice.
|
Re: Invoice notification
So I realized I had the wrong text email address in the Order.php I fixed that, but it still doesn't work. I did verify that email my text address does work.
|
Re: Invoice notification
Hi Michael!
1) In order to create settings for address and subject, please use this article: http://kb.x-cart.com/display/XDD/Step+4+-+working+with+settings 2) Could you please send me a pack of your module, so I could test it on my installation? Tony. |
Re: Invoice notification
|
Re: Invoice notification
Hi Michael!
I was wrong about what method you had to decorate. You should decorate the sendProcessOrderCustomer() method of the \XLite\Core\Mailer object. This implementation would be something like this: PHP Code:
Surely, it should be located in the Core/Mailer.php file in your module directory. Tony. |
Re: Invoice notification
So I made the Core Folder, put the Mailer.php inside it, added the code above. Rebuilt the Cache after removing the original Order Folder. When I went to checkout and hit Place order, it went to /cart.php?target=checkout and it was completely blank.
|
Re: Invoice notification
Did you get any PHP error messages in the <X-Cart 5>/var/log/ folder? Check xlite.log and php_errors.log files.
|
All times are GMT -8. The time now is 11:15 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.