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

#   no confirmation e-mail with 100% coupon

##

- **[Maurice](/forum/user/7972-maurice "View Maurice's Profile")**
- [![Maurice's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7972-maurice "View Maurice's Profile") Topic Author
- [ Offline](/forum/user/7972-maurice)

Less More

- Posts: 151
- Thank you received: 9
-
-

14 years 3 weeks ago -  14 years 3 weeks ago [\#70820](#70820) by [Maurice](/forum/user/7972-maurice "View Maurice's Profile")  *[no confirmation e-mail with 100% coupon](/forum/2-general-talk-about-hikashop/70820-no-confirmation-e-mail-with-100-coupon#70820 "Hi,  As a reward for buying a product I give away a free product. Normally this costs 39 Euro and via AwoCoupon they get a 100% discount coupon.  When they checkout, after entering the coupon code, price goes to zero and the order status goes to confirmed at once.  However the confirmation e-mail is not sent. I also cannot open the e-mail for viewing/editing when I try to change the order status in the back end back to created an then again back to confirmed. The HTML-email, in the pop-up window stays white.  Any idea what the problem is?  Maurice")* was created by *[Maurice](/forum/user/7972-maurice "View Maurice's Profile")*

Hi,

As a reward for buying a product I give away a free product. Normally this costs 39 Euro and via AwoCoupon they get a 100% discount coupon.

When they checkout, after entering the coupon code, price goes to zero and the order status goes to confirmed at once.

However the confirmation e-mail is not sent. I also cannot open the e-mail for viewing/editing when I try to change the order status in the back end back to created an then again back to confirmed. The HTML-email, in the pop-up window stays white.

Any idea what the problem is?

Maurice

Last edit: 14 years 3 weeks ago by [Maurice](/forum/user/7972-maurice "View Maurice's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcwODIwLW5vLWNvbmZpcm1hdGlvbi1lLW1haWwtd2l0aC0xMDAtY291cG9uP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

14 years 3 weeks ago [\#70895](#70895) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: no confirmation e-mail with 100% coupon](/forum/2-general-talk-about-hikashop/70820-no-confirmation-e-mail-with-100-coupon#70895 "Hi,  As a reward for buying a product I give away a free product. Normally this costs 39 Euro and via AwoCoupon they get a 100% discount coupon.  When they checkout, after entering the coupon code, price goes to zero and the order status goes to confirmed at once.  However the confirmation e-mail is not sent. I also cannot open the e-mail for viewing/editing when I try to change the order status in the back end back to created an then again back to confirmed. The HTML-email, in the pop-up window stays white.  Any idea what the problem is?  Maurice")*

Hi,

That sounds like you have an error in the confirmation email generation.
Did you change anything in it ?

If you turn on the "error reporting" and debug mode options of the joomla configuration and try again, do you get some errors ?

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

- **[Maurice](/forum/user/7972-maurice "View Maurice's Profile")**
- [![Maurice's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7972-maurice "View Maurice's Profile") Topic Author
- [ Offline](/forum/user/7972-maurice)

Less More

- Posts: 151
- Thank you received: 9
-
-

14 years 2 weeks ago -  14 years 2 weeks ago [\#72813](#72813) by [Maurice](/forum/user/7972-maurice "View Maurice's Profile")  Replied by *[Maurice](/forum/user/7972-maurice "View Maurice's Profile")* on topic *[Re: no confirmation e-mail with 100% coupon](/forum/2-general-talk-about-hikashop/70820-no-confirmation-e-mail-with-100-coupon#72813 "Hi,  As a reward for buying a product I give away a free product. Normally this costs 39 Euro and via AwoCoupon they get a 100% discount coupon.  When they checkout, after entering the coupon code, price goes to zero and the order status goes to confirmed at once.  However the confirmation e-mail is not sent. I also cannot open the e-mail for viewing/editing when I try to change the order status in the back end back to created an then again back to confirmed. The HTML-email, in the pop-up window stays white.  Any idea what the problem is?  Maurice")*

Hi Nicolas,

I found that the not opening of the HTML e-mail in the pop-up window was a web browser related issue. It only happens with Firefox. When I use Chrome, the HTML mail is visible.

An error in the e-mail template would also affect e-mails that ARE sent. But this is not the case and it looks the email template is okay.

Still, confirmation emails are NOT sent when a customer uses a 100% discount coupon. When he/she enters the coupon in the checkout page, price goes to zero (as expected) and therefore the payment options disappear.

The first e-mail is sent to the customer (that the order had been received).
The second email is NOT sent (that tells them that the order has been paid).

If a user uses a less than 100% coupon and still has to pay at least something, both emails are sent out correct.

So I must open EVERY order that has been ordered with a 100% coupon code, manually set the status from "confirmed" back to "received" without sending a notification. And then change the status again back to "confirmed", and notifying the customer.

Please help.

Kind regards,
Maurice

Last edit: 14 years 2 weeks ago by [Maurice](/forum/user/7972-maurice "View Maurice's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcwODIwLW5vLWNvbmZpcm1hdGlvbi1lLW1haWwtd2l0aC0xMDAtY291cG9uP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

14 years 2 weeks ago [\#73147](#73147) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: no confirmation e-mail with 100% coupon](/forum/2-general-talk-about-hikashop/70820-no-confirmation-e-mail-with-100-coupon#73147 "Hi,  As a reward for buying a product I give away a free product. Normally this costs 39 Euro and via AwoCoupon they get a 100% discount coupon.  When they checkout, after entering the coupon code, price goes to zero and the order status goes to confirmed at once.  However the confirmation e-mail is not sent. I also cannot open the e-mail for viewing/editing when I try to change the order status in the back end back to created an then again back to confirmed. The HTML-email, in the pop-up window stays white.  Any idea what the problem is?  Maurice")*

Hi,

So for the popup not opening for one browser, it might be a javascript error on your pages because of a conflict with another plugin on your website.

For the confirmation email that's actually normal.
When the order is free, the validate free order plugin will change the status of the order during its creation. There won't be a status change triggered. So only the order creation email is sent, not the order status notification email.

If you want to change the code: Code:

function onBeforeOrderCreate(&amp;$order,&amp;$send_email){ if(empty($order) &#124;&#124; !isset($order-&gt;order_full_price)) return; if(bccomp($order-&gt;order_full_price,0,5)==0){ $order-&gt;order_status = 'confirmed'; } }

to: Code:

function onAfterOrderCreate(&amp;$order){ if(empty($order) &#124;&#124; !isset($order-&gt;order_full_price)) return; if(bccomp($order-&gt;order_full_price,0,5)==0){ $orderObj = new stdClass(); $orderObj-&gt;order_status = 'confirmed'; $orderObj-&gt;history-&gt;history_notified = 1; $orderObj-&gt;order_id = $order-&gt;order_id; $orderClass = hikashop_get('class.order'); $orderClass-&gt;save($orderObj); } }

in the file plugins/hikashop/validate_free_order/validate_free_order.php

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

- **[Maurice](/forum/user/7972-maurice "View Maurice's Profile")**
- [![Maurice's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7972-maurice "View Maurice's Profile") Topic Author
- [ Offline](/forum/user/7972-maurice)

Less More

- Posts: 151
- Thank you received: 9
-
-

14 years 2 weeks ago [\#73151](#73151) by [Maurice](/forum/user/7972-maurice "View Maurice's Profile")  Replied by *[Maurice](/forum/user/7972-maurice "View Maurice's Profile")* on topic *[Re: no confirmation e-mail with 100% coupon](/forum/2-general-talk-about-hikashop/70820-no-confirmation-e-mail-with-100-coupon#73151 "Hi,  As a reward for buying a product I give away a free product. Normally this costs 39 Euro and via AwoCoupon they get a 100% discount coupon.  When they checkout, after entering the coupon code, price goes to zero and the order status goes to confirmed at once.  However the confirmation e-mail is not sent. I also cannot open the e-mail for viewing/editing when I try to change the order status in the back end back to created an then again back to confirmed. The HTML-email, in the pop-up window stays white.  Any idea what the problem is?  Maurice")*

Hi Nicolas,

Thank you. I changed the onAfterOrderCreate funtion to this code and indeed the confirmation e-mail is now sent. This is good!
I am only missing the HikaSerial code that belongs to the product.

Kind regards,
Maurice

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcwODIwLW5vLWNvbmZpcm1hdGlvbi1lLW1haWwtd2l0aC0xMDAtY291cG9uP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

14 years 1 week ago [\#73414](#73414) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: no confirmation e-mail with 100% coupon](/forum/2-general-talk-about-hikashop/70820-no-confirmation-e-mail-with-100-coupon#73414 "Hi,  As a reward for buying a product I give away a free product. Normally this costs 39 Euro and via AwoCoupon they get a 100% discount coupon.  When they checkout, after entering the coupon code, price goes to zero and the order status goes to confirmed at once.  However the confirmation e-mail is not sent. I also cannot open the e-mail for viewing/editing when I try to change the order status in the back end back to created an then again back to confirmed. The HTML-email, in the pop-up window stays white.  Any idea what the problem is?  Maurice")*

Can you try with that plugin ?

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

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