[Skip to main content](#vessel-content)

#   Set statut programmatically &amp; notify the customer

##

- **[sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")**
- [![sebastienh@alkaonline.be's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar45180.png)](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile") Topic Author
- [ Offline](/forum/user/45180-sebastienh-alkaonline-be)

Less More

- Posts: 14
- Thank you received: 0
-
-

10 years 4 weeks ago -  10 years 2 weeks ago [\#250797](#250797) by [sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")  *[Set statut programmatically &amp; notify the customer](/forum/31-development/886597-set-statut-programmatically-notify-the-customer#250797 "Hello everybody, I need help to change statut of an order programmatically, I've search the forum and found a solution here:   www.hikashop.com/forum/development/88577...to-order.html#246491  But my problem is that my customer would like a mail notification for the final customer.  For your information Here in Belgium your bank can give you a text file with all the transactions occurred on your account. My customer would like to import these files and have a screen to validate the matching with the orders. So he can mark the orders as &quot;confirmed&quot;.  Everything is ok, but I can't figure how to also send a mail with that modification. Thanks in advance.")* was created by *[sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")*

Hello everybody,
I need help to change statut of an order programmatically, I've search the forum and found a solution here:
[ www.hikashop.com/forum/development/88577...to-order.html#246491](http://www.hikashop.com/forum/development/885777-how-to-set-new-status-to-order.html#246491)

But my problem is that my customer would like a mail notification for the final customer.

For your information Here in Belgium your bank can give you a text file with all the transactions occurred on your account.
My customer would like to import these files and have a screen to validate the matching with the orders. So he can mark the orders as "confirmed".

Everything is ok, but I can't figure how to also send a mail with that modification.
Thanks in advance.

Last edit: 10 years 2 weeks ago by [sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile"). Reason: Solved

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4NjU5Ny1zZXQtc3RhdHV0LXByb2dyYW1tYXRpY2FsbHktbm90aWZ5LXRoZS1jdXN0b21lcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

10 years 4 weeks ago [\#250801](#250801) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Set statut programmatically &amp; notify the customer](/forum/31-development/886597-set-statut-programmatically-notify-the-customer#250801 "Hello everybody, I need help to change statut of an order programmatically, I've search the forum and found a solution here:   www.hikashop.com/forum/development/88577...to-order.html#246491  But my problem is that my customer would like a mail notification for the final customer.  For your information Here in Belgium your bank can give you a text file with all the transactions occurred on your account. My customer would like to import these files and have a screen to validate the matching with the orders. So he can mark the orders as &quot;confirmed&quot;.  Everything is ok, but I can't figure how to also send a mail with that modification. Thanks in advance.")*

Hi,

I see what yo'ure trying to do.
It's called bank reconciliation:
[ en.wikipedia.org/wiki/Bank\_reconciliation](https://en.wikipedia.org/wiki/Bank_reconciliation)
It's something you usually do in an accounting software.
So you would import both the HikaShop orders and the bank account exports to the accounting software, and then reconciliate both together in there.

If you want to send a notification email to the customer you'll want to change the code from the other thread to: Code:

if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR); if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true; $orderClass = hikashop_get('class.order'); $order = new stdClass(); $order-&gt;order_id = XXX; $order-&gt;order_status = 'YYY'; $order-&gt;history = new stdClass(); $order-&gt;history-&gt;history_notified = 1; $orderClass-&gt;save($order);

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4NjU5Ny1zZXQtc3RhdHV0LXByb2dyYW1tYXRpY2FsbHktbm90aWZ5LXRoZS1jdXN0b21lcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")**
- [![sebastienh@alkaonline.be's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar45180.png)](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile") Topic Author
- [ Offline](/forum/user/45180-sebastienh-alkaonline-be)

Less More

- Posts: 14
- Thank you received: 0
-
-

10 years 3 weeks ago -  10 years 3 weeks ago [\#250866](#250866) by [sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")  Replied by *[sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")* on topic *[Set statut programmatically &amp; notify the customer](/forum/31-development/886597-set-statut-programmatically-notify-the-customer#250866 "Hello everybody, I need help to change statut of an order programmatically, I've search the forum and found a solution here:   www.hikashop.com/forum/development/88577...to-order.html#246491  But my problem is that my customer would like a mail notification for the final customer.  For your information Here in Belgium your bank can give you a text file with all the transactions occurred on your account. My customer would like to import these files and have a screen to validate the matching with the orders. So he can mark the orders as &quot;confirmed&quot;.  Everything is ok, but I can't figure how to also send a mail with that modification. Thanks in advance.")*

Thank a lot for your mail, you're right for the bank reconciliation
I put some screenshot of my dev for information on attachment

Yesterday I found a similar solution by searching in the Helper.
Unfortunatly my mail still not send ![:(](/media/kunena/emoticons/5.png ":(")

Here is my code :
Code:

if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return false; $ids = JFactory::getApplication()-&gt;input-&gt;get('ids',null,null); $config = hikashop_config(); if(sizeof($ids)){ foreach($ids as $id){ $orderObj = new stdClass(); $orderObj-&gt;order_id = (int)$id; $orderObj-&gt;order_status = $config-&gt;get('order_confirmed_status', 'confirmed'); $orderObj-&gt;history = new stdClass(); $orderObj-&gt;history-&gt;history_notified = 1; $orderObj-&gt;history-&gt;history_reason = "CODA Matching"; $orderObj-&gt;history-&gt;history_type = "modification"; $orderClass = hikashop_get('class.order'); $orderClass-&gt;save($orderObj); } }

- [ ![capt0.png](/forum/attachment/33669) ](/forum/attachment/33669 "capt0.png") [ ](/forum/attachment/33669?download=1 "capt0.png")
- [ ![capt1.png](/forum/attachment/33670) ](/forum/attachment/33670 "capt1.png") [ ](/forum/attachment/33670?download=1 "capt1.png")
- [ ![capt2.png](/forum/attachment/33671) ](/forum/attachment/33671 "capt2.png") [ ](/forum/attachment/33671?download=1 "capt2.png")
- [ ![capt3.png](/forum/attachment/33672) ](/forum/attachment/33672 "capt3.png") [ ](/forum/attachment/33672?download=1 "capt3.png")
- [ ![capt4.png](/forum/attachment/33673) ](/forum/attachment/33673 "capt4.png") [ ](/forum/attachment/33673?download=1 "capt4.png")

Last edit: 10 years 3 weeks ago by [sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4NjU5Ny1zZXQtc3RhdHV0LXByb2dyYW1tYXRpY2FsbHktbm90aWZ5LXRoZS1jdXN0b21lcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

10 years 3 weeks ago [\#250871](#250871) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Set statut programmatically &amp; notify the customer](/forum/31-development/886597-set-statut-programmatically-notify-the-customer#250871 "Hello everybody, I need help to change statut of an order programmatically, I've search the forum and found a solution here:   www.hikashop.com/forum/development/88577...to-order.html#246491  But my problem is that my customer would like a mail notification for the final customer.  For your information Here in Belgium your bank can give you a text file with all the transactions occurred on your account. My customer would like to import these files and have a screen to validate the matching with the orders. So he can mark the orders as &quot;confirmed&quot;.  Everything is ok, but I can't figure how to also send a mail with that modification. Thanks in advance.")*

Hi,

I don't see why that wouldn't work.
Do you see the emails in the menu Customers&gt;Emails history ? If you do, then the problem is not with your code or HikaShop but with your email server and you should look in its log.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4NjU5Ny1zZXQtc3RhdHV0LXByb2dyYW1tYXRpY2FsbHktbm90aWZ5LXRoZS1jdXN0b21lcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")**
- [![sebastienh@alkaonline.be's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar45180.png)](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile") Topic Author
- [ Offline](/forum/user/45180-sebastienh-alkaonline-be)

Less More

- Posts: 14
- Thank you received: 0
-
-

10 years 3 weeks ago [\#250932](#250932) by [sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")  Replied by *[sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")* on topic *[Set statut programmatically &amp; notify the customer](/forum/31-development/886597-set-statut-programmatically-notify-the-customer#250932 "Hello everybody, I need help to change statut of an order programmatically, I've search the forum and found a solution here:   www.hikashop.com/forum/development/88577...to-order.html#246491  But my problem is that my customer would like a mail notification for the final customer.  For your information Here in Belgium your bank can give you a text file with all the transactions occurred on your account. My customer would like to import these files and have a screen to validate the matching with the orders. So he can mark the orders as &quot;confirmed&quot;.  Everything is ok, but I can't figure how to also send a mail with that modification. Thanks in advance.")*

Thanks for your answer.
I do not see the mail in the history.
I wonder if it could be because my script is call by Ajax (via Joomla! com_ajax) an not in an plugin event.

I created a system plugin to add the button that open the modal box, everything is in Javascript and ajax/php (via Joomla! com_ajax).
As the script perfectly change the order status and add the order history using Hikashop API I supposed Ajax is not the problem, but I'm not sure.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4NjU5Ny1zZXQtc3RhdHV0LXByb2dyYW1tYXRpY2FsbHktbm90aWZ5LXRoZS1jdXN0b21lcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

10 years 3 weeks ago [\#250948](#250948) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Set statut programmatically &amp; notify the customer](/forum/31-development/886597-set-statut-programmatically-notify-the-customer#250948 "Hello everybody, I need help to change statut of an order programmatically, I've search the forum and found a solution here:   www.hikashop.com/forum/development/88577...to-order.html#246491  But my problem is that my customer would like a mail notification for the final customer.  For your information Here in Belgium your bank can give you a text file with all the transactions occurred on your account. My customer would like to import these files and have a screen to validate the matching with the orders. So he can mark the orders as &quot;confirmed&quot;.  Everything is ok, but I can't figure how to also send a mail with that modification. Thanks in advance.")*

Hi,

Then make sure that you didn't disable the "order status notification" email in the menu System&gt;Emails, and that you have a valid email address for the customer of the order.
Other than that, it could also be a plugin implementing the trigger onAfterOrderUpdate( &amp;$order, &amp;$send_email) and which would set the $send_mail variable to false on your website.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4NjU5Ny1zZXQtc3RhdHV0LXByb2dyYW1tYXRpY2FsbHktbm90aWZ5LXRoZS1jdXN0b21lcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")**
- [![sebastienh@alkaonline.be's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar45180.png)](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile") Topic Author
- [ Offline](/forum/user/45180-sebastienh-alkaonline-be)

Less More

- Posts: 14
- Thank you received: 0
-
-

10 years 3 weeks ago [\#251040](#251040) by [sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")  Replied by *[sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")* on topic *[Set statut programmatically &amp; notify the customer](/forum/31-development/886597-set-statut-programmatically-notify-the-customer#251040 "Hello everybody, I need help to change statut of an order programmatically, I've search the forum and found a solution here:   www.hikashop.com/forum/development/88577...to-order.html#246491  But my problem is that my customer would like a mail notification for the final customer.  For your information Here in Belgium your bank can give you a text file with all the transactions occurred on your account. My customer would like to import these files and have a screen to validate the matching with the orders. So he can mark the orders as &quot;confirmed&quot;.  Everything is ok, but I can't figure how to also send a mail with that modification. Thanks in advance.")*

Hi thanks for your answer.

The Order status notification mail is active and when I use the dropdown in column orders status on the orders &gt; orders page i receive the mail.
But when I try my code on the same order the status is changed but I don't receive any mail.

:S

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4NjU5Ny1zZXQtc3RhdHV0LXByb2dyYW1tYXRpY2FsbHktbm90aWZ5LXRoZS1jdXN0b21lcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

10 years 3 weeks ago [\#251061](#251061) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Set statut programmatically &amp; notify the customer](/forum/31-development/886597-set-statut-programmatically-notify-the-customer#251061 "Hello everybody, I need help to change statut of an order programmatically, I've search the forum and found a solution here:   www.hikashop.com/forum/development/88577...to-order.html#246491  But my problem is that my customer would like a mail notification for the final customer.  For your information Here in Belgium your bank can give you a text file with all the transactions occurred on your account. My customer would like to import these files and have a screen to validate the matching with the orders. So he can mark the orders as &quot;confirmed&quot;.  Everything is ok, but I can't figure how to also send a mail with that modification. Thanks in advance.")*

Hi,

I don't see why that would happen then.

You'll have to add debug code in the file administrator/components/com_hikashop/classes/order.php after the call to the onAfterOrderUpdate trigger before the email sending block to understand why it does that in your case.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4NjU5Ny1zZXQtc3RhdHV0LXByb2dyYW1tYXRpY2FsbHktbm90aWZ5LXRoZS1jdXN0b21lcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")**
- [![sebastienh@alkaonline.be's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar45180.png)](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile") Topic Author
- [ Offline](/forum/user/45180-sebastienh-alkaonline-be)

Less More

- Posts: 14
- Thank you received: 0
-
-

10 years 3 weeks ago -  10 years 3 weeks ago [\#251154](#251154) by [sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")  Replied by *[sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")* on topic *[Set statut programmatically &amp; notify the customer](/forum/31-development/886597-set-statut-programmatically-notify-the-customer#251154 "Hello everybody, I need help to change statut of an order programmatically, I've search the forum and found a solution here:   www.hikashop.com/forum/development/88577...to-order.html#246491  But my problem is that my customer would like a mail notification for the final customer.  For your information Here in Belgium your bank can give you a text file with all the transactions occurred on your account. My customer would like to import these files and have a screen to validate the matching with the orders. So he can mark the orders as &quot;confirmed&quot;.  Everything is ok, but I can't figure how to also send a mail with that modification. Thanks in advance.")*

Ok I got some more information.

when I execute the code with an ajax call I got this as answer : JLIB_APPLICATION_ERROR_VIEW_NOT_FOUND

If I comment the line Code:

$orderClass-&gt;save($orderObj);

the error disappears and I got my answer... but obviously the order isn't updated.

Is there any restriction of use $orderClass-&gt;save($orderObj); in an com_ajax call?

Last edit: 10 years 3 weeks ago by [sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4NjU5Ny1zZXQtc3RhdHV0LXByb2dyYW1tYXRpY2FsbHktbm90aWZ5LXRoZS1jdXN0b21lcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

10 years 3 weeks ago [\#251156](#251156) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Set statut programmatically &amp; notify the customer](/forum/31-development/886597-set-statut-programmatically-notify-the-customer#251156 "Hello everybody, I need help to change statut of an order programmatically, I've search the forum and found a solution here:   www.hikashop.com/forum/development/88577...to-order.html#246491  But my problem is that my customer would like a mail notification for the final customer.  For your information Here in Belgium your bank can give you a text file with all the transactions occurred on your account. My customer would like to import these files and have a screen to validate the matching with the orders. So he can mark the orders as &quot;confirmed&quot;.  Everything is ok, but I can't figure how to also send a mail with that modification. Thanks in advance.")*

Hi,

I don't see why that error would happen. The save doesn't use any view as far as I know. Maybe there is a plugin which implement a trigger like onAfterOrderUpdate and which would create the problem ?
I've actually never used com_ajax. I usually use a system plugin to do ajax requests for a plugin.

The following user(s) said Thank You: [sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4NjU5Ny1zZXQtc3RhdHV0LXByb2dyYW1tYXRpY2FsbHktbm90aWZ5LXRoZS1jdXN0b21lcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")**
- [![sebastienh@alkaonline.be's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar45180.png)](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile") Topic Author
- [ Offline](/forum/user/45180-sebastienh-alkaonline-be)

Less More

- Posts: 14
- Thank you received: 0
-
-

10 years 3 weeks ago [\#251347](#251347) by [sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")  Replied by *[sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")* on topic *[Set statut programmatically &amp; notify the customer](/forum/31-development/886597-set-statut-programmatically-notify-the-customer#251347 "Hello everybody, I need help to change statut of an order programmatically, I've search the forum and found a solution here:   www.hikashop.com/forum/development/88577...to-order.html#246491  But my problem is that my customer would like a mail notification for the final customer.  For your information Here in Belgium your bank can give you a text file with all the transactions occurred on your account. My customer would like to import these files and have a screen to validate the matching with the orders. So he can mark the orders as &quot;confirmed&quot;.  Everything is ok, but I can't figure how to also send a mail with that modification. Thanks in advance.")*

Hi,
Ok thanks for your answer, I'll try to make the call without com_ajax to getting around the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4NjU5Ny1zZXQtc3RhdHV0LXByb2dyYW1tYXRpY2FsbHktbm90aWZ5LXRoZS1jdXN0b21lcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")**
- [![sebastienh@alkaonline.be's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar45180.png)](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile") Topic Author
- [ Offline](/forum/user/45180-sebastienh-alkaonline-be)

Less More

- Posts: 14
- Thank you received: 0
-
-

10 years 2 weeks ago [\#252052](#252052) by [sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")  Replied by *[sebastienh@alkaonline.be](/forum/user/45180-sebastienh-alkaonline-be "View sebastienh@alkaonline.be's Profile")* on topic *[Set statut programmatically &amp; notify the customer](/forum/31-development/886597-set-statut-programmatically-notify-the-customer#252052 "Hello everybody, I need help to change statut of an order programmatically, I've search the forum and found a solution here:   www.hikashop.com/forum/development/88577...to-order.html#246491  But my problem is that my customer would like a mail notification for the final customer.  For your information Here in Belgium your bank can give you a text file with all the transactions occurred on your account. My customer would like to import these files and have a screen to validate the matching with the orders. So he can mark the orders as &quot;confirmed&quot;.  Everything is ok, but I can't figure how to also send a mail with that modification. Thanks in advance.")*

Hello,
You're right the problem came by the call of Code:

$orderClass-&gt;save($orderObj);

with com_ajax.
I made a simple ajax call and it works fine. Thanks for your help

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4NjU5Ny1zZXQtc3RhdHV0LXByb2dyYW1tYXRpY2FsbHktbm90aWZ5LXRoZS1jdXN0b21lcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.363 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
