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

#   Triggering shipped e-mail.

##

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

Less More

- Posts: 180
- Thank you received: 13
-
-
-
- [](http://www.halare.co.uk/)
-

12 years 3 months ago [\#168958](#168958) by [esotechie](/forum/user/7143-esotechie "View esotechie's Profile")  *[Triggering shipped e-mail.](/forum/35-orders-management/870629-triggering-shipped-e-mail#168958 "-- HikaShop version -- : 2.3.0  Hi  When shipped, we are updating the status of an order from an external system (i.e. we are not using the Joomla/Hikashop backend). Is there a way of triggering the shipped status e-mail to be sent once we change the status?  Thanks in advance")* was created by *[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")*

-- HikaShop version -- : 2.3.0

Hi

When shipped, we are updating the status of an order from an external system (i.e. we are not using the Joomla/Hikashop backend). Is there a way of triggering the shipped status e-mail to be sent once we change the status?

Thanks in advance

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 3 months ago [\#168960](#168960) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Triggering shipped e-mail.](/forum/35-orders-management/870629-triggering-shipped-e-mail#168960 "-- HikaShop version -- : 2.3.0  Hi  When shipped, we are updating the status of an order from an external system (i.e. we are not using the Joomla/Hikashop backend). Is there a way of triggering the shipped status e-mail to be sent once we change the status?  Thanks in advance")*

Hi,

I think that using this trigger will do the job:
[ hikashop.com/support/support/documentati...#onBeforeOrderUpdate](https://hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html#onBeforeOrderUpdate)

Add just a check on the order status, and if it is a shipped status, so execute your code.

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

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

Less More

- Posts: 180
- Thank you received: 13
-
-
-
- [](http://www.halare.co.uk/)
-

12 years 3 months ago [\#169045](#169045) by [esotechie](/forum/user/7143-esotechie "View esotechie's Profile")  Replied by *[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")* on topic *[Triggering shipped e-mail.](/forum/35-orders-management/870629-triggering-shipped-e-mail#169045 "-- HikaShop version -- : 2.3.0  Hi  When shipped, we are updating the status of an order from an external system (i.e. we are not using the Joomla/Hikashop backend). Is there a way of triggering the shipped status e-mail to be sent once we change the status?  Thanks in advance")*

Thanks for the reply and the link Xavier.

The trigger will not run as we are updating the order status from an external system, so Hikashop is bypassed.

I wanted to know what code Hikashop runs to send an update e-mail for an order.

i.e. External system updates the status in the MySQL database for the order, then executes a method to send the standard e-mail.

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 3 months ago [\#169061](#169061) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Triggering shipped e-mail.](/forum/35-orders-management/870629-triggering-shipped-e-mail#169061 "-- HikaShop version -- : 2.3.0  Hi  When shipped, we are updating the status of an order from an external system (i.e. we are not using the Joomla/Hikashop backend). Is there a way of triggering the shipped status e-mail to be sent once we change the status?  Thanks in advance")*

Hi,

In your case the best way will be to call the class "order" and do a "save", this way the mail will be automatically called.

To use the order status notification mail, it require to have the full order data, so using the save function of the order class is the best way.

Else you can look at System &gt; Email, get all the desired email content (html &amp; preload) and get the required values via some requests, manage the variants, and send it using php mail function.

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

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

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

Less More

- Posts: 180
- Thank you received: 13
-
-
-
- [](http://www.halare.co.uk/)
-

12 years 2 months ago [\#169344](#169344) by [esotechie](/forum/user/7143-esotechie "View esotechie's Profile")  Replied by *[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")* on topic *[Triggering shipped e-mail.](/forum/35-orders-management/870629-triggering-shipped-e-mail#169344 "-- HikaShop version -- : 2.3.0  Hi  When shipped, we are updating the status of an order from an external system (i.e. we are not using the Joomla/Hikashop backend). Is there a way of triggering the shipped status e-mail to be sent once we change the status?  Thanks in advance")*

Thanks Xavier

I will have a go at the first option.

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

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