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

#   Customer not receiving order confirmation email

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

14 years 6 months ago [\#50204](#50204) by [pahdmcdowell](/forum/user/7439-pahdmcdowell "View pahdmcdowell's Profile")  *[Customer not receiving order confirmation email](/forum/4-how-to/50204-customer-not-receiving-order-confirmation-email#50204 "I've set up Hikashop on my testsite and am using Paypal Sandbox to test the system for selling downloadable files.  Everything in the process seems to work, except the very last stage - the buyer does not receive a confirmation email containing the download link.  The seller receives an email stating the order has been created and one stating  &quot;Hello, A Paypal notification was received with the status Pending. The order is now confirmed.&quot;  The buyer receives an email saying the order has been created, but no confirmation email.  In the back end the order status is shown as 'confirmed' with reason being &quot;automatic payment notification received&quot;.  Manually changing an order from created to confirmed in the back end results in a confirmation email being sent to the buyer.  Am I missing something obvious?")* was created by *[pahdmcdowell](/forum/user/7439-pahdmcdowell "View pahdmcdowell's Profile")*

I've set up Hikashop on my testsite and am using Paypal Sandbox to test the system for selling downloadable files.

Everything in the process seems to work, except the very last stage - the buyer does not receive a confirmation email containing the download link.

The seller receives an email stating the order has been created and one stating

"Hello,
A Paypal notification was received with the status Pending. The order is now confirmed."

The buyer receives an email saying the order has been created, but no confirmation email.

In the back end the order status is shown as 'confirmed' with reason being "automatic payment notification received".

Manually changing an order from created to confirmed in the back end results in a confirmation email being sent to the buyer.

Am I missing something obvious?

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

14 years 6 months ago [\#50286](#50286) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Customer not receiving order confirmation email](/forum/4-how-to/50204-customer-not-receiving-order-confirmation-email#50286 "I've set up Hikashop on my testsite and am using Paypal Sandbox to test the system for selling downloadable files.  Everything in the process seems to work, except the very last stage - the buyer does not receive a confirmation email containing the download link.  The seller receives an email stating the order has been created and one stating  &quot;Hello, A Paypal notification was received with the status Pending. The order is now confirmed.&quot;  The buyer receives an email saying the order has been created, but no confirmation email.  In the back end the order status is shown as 'confirmed' with reason being &quot;automatic payment notification received&quot;.  Manually changing an order from created to confirmed in the back end results in a confirmation email being sent to the buyer.  Am I missing something obvious?")*

Hi,

That's because the payment is pending so the confirmation email is not sent.
Add the code: Code:

$config =&amp; hikashop_config(); if($config-&gt;get('order_confirmed_status','confirmed')==$order-&gt;order_status){ $order-&gt;history-&gt;history_notified=1; }

before the code: Code:

$order-&gt;mail_status=$statuses[$order-&gt;order_status];

in the file plugins/hikashoppayment/paypal/paypal.php and it should work like you want.

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

14 years 6 months ago [\#50319](#50319) by [pahdmcdowell](/forum/user/7439-pahdmcdowell "View pahdmcdowell's Profile")  Replied by *[pahdmcdowell](/forum/user/7439-pahdmcdowell "View pahdmcdowell's Profile")* on topic *[Re: Customer not receiving order confirmation email](/forum/4-how-to/50204-customer-not-receiving-order-confirmation-email#50319 "I've set up Hikashop on my testsite and am using Paypal Sandbox to test the system for selling downloadable files.  Everything in the process seems to work, except the very last stage - the buyer does not receive a confirmation email containing the download link.  The seller receives an email stating the order has been created and one stating  &quot;Hello, A Paypal notification was received with the status Pending. The order is now confirmed.&quot;  The buyer receives an email saying the order has been created, but no confirmation email.  In the back end the order status is shown as 'confirmed' with reason being &quot;automatic payment notification received&quot;.  Manually changing an order from created to confirmed in the back end results in a confirmation email being sent to the buyer.  Am I missing something obvious?")*

Thanks for this. I will try it out. But I'm wondering if I should insert this code into my actual site. At the moment I'm trying things out on a test site and using Paypal Sandbox. Do I want to insert this code when I get my live site up and running? Will it then confirm orders even if payment is pending?

I'm not clear as to why the notification is shown as pending, when within Paypal sandbox the buyer and seller have received emails in their accounts saying that the payment has been received!

Thanks

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

14 years 6 months ago -  14 years 6 months ago [\#50376](#50376) by [millionairess](/forum/user/7104-millionairess "View millionairess's Profile")  Replied by *[millionairess](/forum/user/7104-millionairess "View millionairess's Profile")* on topic *[Re: Customer not receiving order confirmation email](/forum/4-how-to/50204-customer-not-receiving-order-confirmation-email#50376 "I've set up Hikashop on my testsite and am using Paypal Sandbox to test the system for selling downloadable files.  Everything in the process seems to work, except the very last stage - the buyer does not receive a confirmation email containing the download link.  The seller receives an email stating the order has been created and one stating  &quot;Hello, A Paypal notification was received with the status Pending. The order is now confirmed.&quot;  The buyer receives an email saying the order has been created, but no confirmation email.  In the back end the order status is shown as 'confirmed' with reason being &quot;automatic payment notification received&quot;.  Manually changing an order from created to confirmed in the back end results in a confirmation email being sent to the buyer.  Am I missing something obvious?")*

Hi I have a similar problem where customers aren't receiving any confirmation email from hikashop, only from paypal. I want them to receive the order confirmation email. The order status's are all confirmed. How do I fix this?

Thank you

Last edit: 14 years 6 months ago by [millionairess](/forum/user/7104-millionairess "View millionairess's Profile").

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

14 years 6 months ago [\#50417](#50417) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Customer not receiving order confirmation email](/forum/4-how-to/50204-customer-not-receiving-order-confirmation-email#50417 "I've set up Hikashop on my testsite and am using Paypal Sandbox to test the system for selling downloadable files.  Everything in the process seems to work, except the very last stage - the buyer does not receive a confirmation email containing the download link.  The seller receives an email stating the order has been created and one stating  &quot;Hello, A Paypal notification was received with the status Pending. The order is now confirmed.&quot;  The buyer receives an email saying the order has been created, but no confirmation email.  In the back end the order status is shown as 'confirmed' with reason being &quot;automatic payment notification received&quot;.  Manually changing an order from created to confirmed in the back end results in a confirmation email being sent to the buyer.  Am I missing something obvious?")*

That code won't confirm pending orders.
That code will send an email if the orders are confirmed, regardless of whether then payment is accepted or pending.
It's a normal modification which will be in next release of hikaShop.

If PayPal says that the payment is pending, then it means that the payment is pending. Sometimes, it takes 1 week to confirm payments with banks, and sometimes, the paypal account is confirmed to not validate the payments automatically and you have to do it yourself in PayPal. In that last case, you can change that thanks to an option in your PayPal account.

@millionairess also make sure that your website is able to send emails.

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

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