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

#   HikaShop Purchase Order payment plugin does not send email

##

- **[gasoline](/forum/user/6454-gasoline "View gasoline's Profile")**
- [![gasoline's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6454.jpg)](/forum/user/6454-gasoline "View gasoline's Profile") Topic Author
- [ Offline](/forum/user/6454-gasoline)
- Still searching ...

Less More

- Posts: 247
- Thank you received: 9
-
-
-
- [](https://gasoline.nl)
-

7 years 11 months ago [\#300255](#300255) by [gasoline](/forum/user/6454-gasoline "View gasoline's Profile")  *[HikaShop Purchase Order payment plugin does not send email](/forum/27-checkout/896188-hikashop-purchase-order-payment-plugin-does-not-send-email#300255 "-- HikaShop version -- : 4.0 -- Joomla version -- : 3.9 -- PHP version -- : 7.1  I'm searching a long time but can't get it to work. I use 2 payment methodes. JDideal (ideal) so people pay directly. And I use HikaShop Purchase Order payment plugin (Incasso) where they have to fill in their info (bankaccountnumber).  But when they choose the HikaShop Purchase Order payment plugin (I set taht to confirmed in the plugin) their is no email send to the customer.  How can I solve tjis, I checked all settings and can't figure it out.")* was created by *[gasoline](/forum/user/6454-gasoline "View gasoline's Profile")*

-- HikaShop version -- : 4.0
-- Joomla version -- : 3.9
-- PHP version -- : 7.1

I'm searching a long time but can't get it to work. I use 2 payment methodes. JDideal (ideal) so people pay directly. And I use HikaShop Purchase Order payment plugin (Incasso) where they have to fill in their info (bankaccountnumber).

But when they choose the HikaShop Purchase Order payment plugin (I set taht to confirmed in the plugin) their is no email send to the customer.

How can I solve tjis, I checked all settings and can't figure it out.

[ ![Screenshot&#95;2018-11-08Administration-Pluginpurchaseorder.png](/forum/attachment/45343) ](/forum/attachment/45343 "...chaseorder.png")

---

I'll keep on trying!

- [ ![Screenshot&#95;2018-11-08Administration-Pluginpurchaseorder.png](/forum/attachment/45343) ](/forum/attachment/45343 "...chaseorder.png") [ ](/forum/attachment/45343?download=1 "...chaseorder.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NjE4OC1oaWthc2hvcC1wdXJjaGFzZS1vcmRlci1wYXltZW50LXBsdWdpbi1kb2VzLW5vdC1zZW5kLWVtYWlsP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14276
-
-

7 years 11 months ago [\#300258](#300258) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[HikaShop Purchase Order payment plugin does not send email](/forum/27-checkout/896188-hikashop-purchase-order-payment-plugin-does-not-send-email#300258 "-- HikaShop version -- : 4.0 -- Joomla version -- : 3.9 -- PHP version -- : 7.1  I'm searching a long time but can't get it to work. I use 2 payment methodes. JDideal (ideal) so people pay directly. And I use HikaShop Purchase Order payment plugin (Incasso) where they have to fill in their info (bankaccountnumber).  But when they choose the HikaShop Purchase Order payment plugin (I set taht to confirmed in the plugin) their is no email send to the customer.  How can I solve tjis, I checked all settings and can't figure it out.")*

Hi,

Add the code: Code:

if($order-&gt;order_status != $this-&gt;payment_params-&gt;order_status) $this-&gt;modifyOrder($order-&gt;order_id, $this-&gt;payment_params-&gt;order_status, (bool)@$this-&gt;payment_params-&gt;status_notif_email, false);

after the line: Code:

parent::onAfterOrderConfirm($order, $methods, $method_id);

in the file plugins/hikashoppayment/purchaseorder/purchaseorder.php and that should fix the problem.

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

- **[gasoline](/forum/user/6454-gasoline "View gasoline's Profile")**
- [![gasoline's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6454.jpg)](/forum/user/6454-gasoline "View gasoline's Profile") Topic Author
- [ Offline](/forum/user/6454-gasoline)
- Still searching ...

Less More

- Posts: 247
- Thank you received: 9
-
-
-
- [](https://gasoline.nl)
-

7 years 11 months ago [\#300293](#300293) by [gasoline](/forum/user/6454-gasoline "View gasoline's Profile")  Replied by *[gasoline](/forum/user/6454-gasoline "View gasoline's Profile")* on topic *[HikaShop Purchase Order payment plugin does not send email](/forum/27-checkout/896188-hikashop-purchase-order-payment-plugin-does-not-send-email#300293 "-- HikaShop version -- : 4.0 -- Joomla version -- : 3.9 -- PHP version -- : 7.1  I'm searching a long time but can't get it to work. I use 2 payment methodes. JDideal (ideal) so people pay directly. And I use HikaShop Purchase Order payment plugin (Incasso) where they have to fill in their info (bankaccountnumber).  But when they choose the HikaShop Purchase Order payment plugin (I set taht to confirmed in the plugin) their is no email send to the customer.  How can I solve tjis, I checked all settings and can't figure it out.")*

Hi Nicolas,

Thanks for your support.

What will happen after you'r having an upodated version off Hikashop? Will that change be deleted than? Or will it be added in next version?

---

I'll keep on trying!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NjE4OC1oaWthc2hvcC1wdXJjaGFzZS1vcmRlci1wYXltZW50LXBsdWdpbi1kb2VzLW5vdC1zZW5kLWVtYWlsP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14276
-
-

7 years 11 months ago [\#300295](#300295) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[HikaShop Purchase Order payment plugin does not send email](/forum/27-checkout/896188-hikashop-purchase-order-payment-plugin-does-not-send-email#300295 "-- HikaShop version -- : 4.0 -- Joomla version -- : 3.9 -- PHP version -- : 7.1  I'm searching a long time but can't get it to work. I use 2 payment methodes. JDideal (ideal) so people pay directly. And I use HikaShop Purchase Order payment plugin (Incasso) where they have to fill in their info (bankaccountnumber).  But when they choose the HikaShop Purchase Order payment plugin (I set taht to confirmed in the plugin) their is no email send to the customer.  How can I solve tjis, I checked all settings and can't figure it out.")*

Hi,

If you can confirm that it all works fine, it will be included. Otherwise, we'll have to investigate further and include a better patch ![:)](/media/kunena/emoticons/3.png ":)")

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

- **[gasoline](/forum/user/6454-gasoline "View gasoline's Profile")**
- [![gasoline's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6454.jpg)](/forum/user/6454-gasoline "View gasoline's Profile") Topic Author
- [ Offline](/forum/user/6454-gasoline)
- Still searching ...

Less More

- Posts: 247
- Thank you received: 9
-
-
-
- [](https://gasoline.nl)
-

7 years 11 months ago -  7 years 11 months ago [\#300310](#300310) by [gasoline](/forum/user/6454-gasoline "View gasoline's Profile")  Replied by *[gasoline](/forum/user/6454-gasoline "View gasoline's Profile")* on topic *[HikaShop Purchase Order payment plugin does not send email](/forum/27-checkout/896188-hikashop-purchase-order-payment-plugin-does-not-send-email#300310 "-- HikaShop version -- : 4.0 -- Joomla version -- : 3.9 -- PHP version -- : 7.1  I'm searching a long time but can't get it to work. I use 2 payment methodes. JDideal (ideal) so people pay directly. And I use HikaShop Purchase Order payment plugin (Incasso) where they have to fill in their info (bankaccountnumber).  But when they choose the HikaShop Purchase Order payment plugin (I set taht to confirmed in the plugin) their is no email send to the customer.  How can I solve tjis, I checked all settings and can't figure it out.")*

> nicolas wrote: Hi,
>
> If you can confirm that it all works fine, it will be included. Otherwise, we'll have to investigate further and include a better patch ![:)](/media/kunena/emoticons/3.png ":)")

Hi Nicolas,

I tested on testsite and live site. But is does not work. Admin receive the mail (that's good but was also without the change) but client does not get a mail.
Code:

public function onAfterOrderConfirm(&amp;$order, &amp;$methods, $method_id) { parent::onAfterOrderConfirm($order, $methods, $method_id); if($order-&gt;order_status != $this-&gt;payment_params-&gt;order_status) $this-&gt;modifyOrder($order-&gt;order_id, $this-&gt;payment_params-&gt;order_status, (bool)@$this-&gt;payment_params-&gt;status_notif_email, false); $this-&gt;removeCart = true; $this-&gt;information = $this-&gt;payment-&gt;payment_params-&gt;information; if(preg_match('#^[a-z0-9_]*$#i', $this-&gt;information)) { $this-&gt;information = JText::_($this-&gt;information); }

---

I'll keep on trying!

Last edit: 7 years 11 months ago by [gasoline](/forum/user/6454-gasoline "View gasoline's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NjE4OC1oaWthc2hvcC1wdXJjaGFzZS1vcmRlci1wYXltZW50LXBsdWdpbi1kb2VzLW5vdC1zZW5kLWVtYWlsP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14276
-
-

7 years 11 months ago [\#300312](#300312) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[HikaShop Purchase Order payment plugin does not send email](/forum/27-checkout/896188-hikashop-purchase-order-payment-plugin-does-not-send-email#300312 "-- HikaShop version -- : 4.0 -- Joomla version -- : 3.9 -- PHP version -- : 7.1  I'm searching a long time but can't get it to work. I use 2 payment methodes. JDideal (ideal) so people pay directly. And I use HikaShop Purchase Order payment plugin (Incasso) where they have to fill in their info (bankaccountnumber).  But when they choose the HikaShop Purchase Order payment plugin (I set taht to confirmed in the plugin) their is no email send to the customer.  How can I solve tjis, I checked all settings and can't figure it out.")*

Hi,

Thanks. I think it requires a second modification. Change the code: Code:

$this-&gt;modifyOrder($order, $this-&gt;payment_params-&gt;order_status, $history, false);

to: Code:

$status = null; if(!$this-&gt;payment_params-&gt;status_notif_email) $status = $this-&gt;payment_params-&gt;order_status; $this-&gt;modifyOrder($order, $status, $history, false);

in that same file and it should help.

The following user(s) said Thank You: [gasoline](/forum/user/6454-gasoline "View gasoline's Profile")

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

- **[gasoline](/forum/user/6454-gasoline "View gasoline's Profile")**
- [![gasoline's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6454.jpg)](/forum/user/6454-gasoline "View gasoline's Profile") Topic Author
- [ Offline](/forum/user/6454-gasoline)
- Still searching ...

Less More

- Posts: 247
- Thank you received: 9
-
-
-
- [](https://gasoline.nl)
-

7 years 11 months ago -  7 years 11 months ago [\#300529](#300529) by [gasoline](/forum/user/6454-gasoline "View gasoline's Profile")  Replied by *[gasoline](/forum/user/6454-gasoline "View gasoline's Profile")* on topic *[HikaShop Purchase Order payment plugin does not send email](/forum/27-checkout/896188-hikashop-purchase-order-payment-plugin-does-not-send-email#300529 "-- HikaShop version -- : 4.0 -- Joomla version -- : 3.9 -- PHP version -- : 7.1  I'm searching a long time but can't get it to work. I use 2 payment methodes. JDideal (ideal) so people pay directly. And I use HikaShop Purchase Order payment plugin (Incasso) where they have to fill in their info (bankaccountnumber).  But when they choose the HikaShop Purchase Order payment plugin (I set taht to confirmed in the plugin) their is no email send to the customer.  How can I solve tjis, I checked all settings and can't figure it out.")*

Hi Nicolas,

Seems to work now. I'v tested it and now put it on live site also.

Can you conform that this will be implemented in future updates? Otherwise I have to change that file by myself everytime.

Thanks,
Marc

---

I'll keep on trying!

Last edit: 7 years 11 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: Please DO NOT full quote a previous message.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NjE4OC1oaWthc2hvcC1wdXJjaGFzZS1vcmRlci1wYXltZW50LXBsdWdpbi1kb2VzLW5vdC1zZW5kLWVtYWlsP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14276
-
-

7 years 11 months ago [\#300534](#300534) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[HikaShop Purchase Order payment plugin does not send email](/forum/27-checkout/896188-hikashop-purchase-order-payment-plugin-does-not-send-email#300534 "-- HikaShop version -- : 4.0 -- Joomla version -- : 3.9 -- PHP version -- : 7.1  I'm searching a long time but can't get it to work. I use 2 payment methodes. JDideal (ideal) so people pay directly. And I use HikaShop Purchase Order payment plugin (Incasso) where they have to fill in their info (bankaccountnumber).  But when they choose the HikaShop Purchase Order payment plugin (I set taht to confirmed in the plugin) their is no email send to the customer.  How can I solve tjis, I checked all settings and can't figure it out.")*

Hi,

Yes. These have been added to HikaShop 4.0.1

The following user(s) said Thank You: [gasoline](/forum/user/6454-gasoline "View gasoline's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NjE4OC1oaWthc2hvcC1wdXJjaGFzZS1vcmRlci1wYXltZW50LXBsdWdpbi1kb2VzLW5vdC1zZW5kLWVtYWlsP3RtcGw9bWFya2Rvd24=) 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.107 seconds

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

[](#top)
