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

#   Problème plugin avec le trigger onAfterOrderUpdat

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 3 months ago [\#211246](#211246) by [fredhob](/forum/user/8601-fredhob "View fredhob's Profile")  *[Problème plugin avec le trigger onAfterOrderUpdat](/forum/5-support-en-francais-french-support-/878705-probleme-plugin-avec-le-trigger-onafterorderupdat#211246 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.17  Bonjour,  J'ai un problème avec un plugin ou je veux faire un traitement une fois qu'une commande est confirmée via Paypal, la commande change bien de statut mais mon plugin ne semble pas être appelé.  Pour mes tests je fait ujuste un envoi simple d'un mail que je ne reçoit jamais  Voila le code php de mon plugin")* was created by *[fredhob](/forum/user/8601-fredhob "View fredhob's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.17

Bonjour,

J'ai un problème avec un plugin ou je veux faire un traitement une fois qu'une commande est confirmée via Paypal, la commande change bien de statut mais mon plugin ne semble pas être appelé.

Pour mes tests je fait ujuste un envoi simple d'un mail que je ne reçoit jamais

Voila le code php de mon plugin Code:

&lt;?php defined('_JEXEC') or die('Restricted access'); class plgFg_morepictures extends JPlugin{ function plgFg_morepictures(&amp;$subject, $config){ parent::__construct($subject, $config); } function onAfterOrderUpdate(&amp;$order,&amp;$send_email){ mail('xxxx@xxxxx.com', 'test2', 'test mail'); } }

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#211251](#211251) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Problème plugin avec le trigger onAfterOrderUpdat](/forum/5-support-en-francais-french-support-/878705-probleme-plugin-avec-le-trigger-onafterorderupdat#211251 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.17  Bonjour,  J'ai un problème avec un plugin ou je veux faire un traitement une fois qu'une commande est confirmée via Paypal, la commande change bien de statut mais mon plugin ne semble pas être appelé.  Pour mes tests je fait ujuste un envoi simple d'un mail que je ne reçoit jamais  Voila le code php de mon plugin")*

Bonjour,

Quel type de plugin avez-vous créé (dans quel groupe) ?
Est-vous sure et certain que le nom de la class est correct et respected la nomemclature de Joomla ?

Cordialement,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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