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

#   Auto. change order status after IPN notification

##

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

Less More

- Posts: 28
- Thank you received: 1
-
-

12 years 8 months ago [\#149865](#149865) by [plastic1st](/forum/user/31031-plastic1st "View plastic1st's Profile")  *[Auto. change order status after IPN notification](/forum/35-orders-management/866966-auto-change-order-status-after-ipn-notification#149865 "Hello.  I wonder how can I automatically change the order status from &quot;created&quot; to &quot;confirmed&quot; in my database if the IPN notification was received... I had previously written the corresponding PHP code into the after&#95;end.php file, but I can't be sure that the client will click on the return url link of the paypal thank you page... So I guess I should put this code into the PHP file which manages the IPN notification, and sends the confirmation e-mail to the administrator. BUT... I can't find it :angry: Does anyone know where I can find this PHP file ?  Thanks in advance for your help plastic1st")* was created by *[plastic1st](/forum/user/31031-plastic1st "View plastic1st's Profile")*

Hello.

I wonder how can I automatically change the order status from "created" to "confirmed" in my database if the IPN notification was received...
I had previously written the corresponding PHP code into the after_end.php file, but I can't be sure that the client will click on the return url link of the paypal thank you page...
So I guess I should put this code into the PHP file which manages the IPN notification, and sends the confirmation e-mail to the administrator.
BUT... I can't find it ![:angry:](/media/kunena/emoticons/23.png ":angry:")
Does anyone know where I can find this PHP file ?

Thanks in advance for your help
plastic1st

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2Njk2Ni1hdXRvLWNoYW5nZS1vcmRlci1zdGF0dXMtYWZ0ZXItaXBuLW5vdGlmaWNhdGlvbj90bXBsPW1hcmtkb3du) 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: 14325
-
-

12 years 7 months ago [\#149902](#149902) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Auto. change order status after IPN notification](/forum/35-orders-management/866966-auto-change-order-status-after-ipn-notification#149902 "Hello.  I wonder how can I automatically change the order status from &quot;created&quot; to &quot;confirmed&quot; in my database if the IPN notification was received... I had previously written the corresponding PHP code into the after&#95;end.php file, but I can't be sure that the client will click on the return url link of the paypal thank you page... So I guess I should put this code into the PHP file which manages the IPN notification, and sends the confirmation e-mail to the administrator. BUT... I can't find it :angry: Does anyone know where I can find this PHP file ?  Thanks in advance for your help plastic1st")*

Hi,

The PayPal plugin already handle all that for you. It confirms the order when it receives the IPN and the notification email it sent automatically.
It's done in the plugins/hikashoppayment/paypal/paypal.php file.
If you don't get your order confirmed automatically, it means that the plugin is not receiving the notifications, and I would recommend to check that FAQ:
[ www.hikashop.com/support/documentation/i...or.html#notification](http://www.hikashop.com/support/documentation/integrated-documentation/10-hikashop/33-hikashop-payment-paypal-error.html#notification)

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

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

Less More

- Posts: 28
- Thank you received: 1
-
-

12 years 7 months ago -  12 years 7 months ago [\#149925](#149925) by [plastic1st](/forum/user/31031-plastic1st "View plastic1st's Profile")  Replied by *[plastic1st](/forum/user/31031-plastic1st "View plastic1st's Profile")* on topic *[Auto. change order status after IPN notification](/forum/35-orders-management/866966-auto-change-order-status-after-ipn-notification#149925 "Hello.  I wonder how can I automatically change the order status from &quot;created&quot; to &quot;confirmed&quot; in my database if the IPN notification was received... I had previously written the corresponding PHP code into the after&#95;end.php file, but I can't be sure that the client will click on the return url link of the paypal thank you page... So I guess I should put this code into the PHP file which manages the IPN notification, and sends the confirmation e-mail to the administrator. BUT... I can't find it :angry: Does anyone know where I can find this PHP file ?  Thanks in advance for your help plastic1st")*

Hi Nicolas.
Thanks for the answer.
I had just found the solution, and was about to change my topic status :lol:
In fact, I hadn't set the 3 status in the paypal plugin.
By default, the 3 status are set to "aucun" in french, so I guess "none" in english, so I just had to set the verified status to "confirmed".
That was so easy... :blush:
Thanks anyway for your help.
And thanks for this great component, which make it really easy to manage orders and payments !!

Last edit: 12 years 7 months ago by [plastic1st](/forum/user/31031-plastic1st "View plastic1st's Profile").

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

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