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

#   Trigger Order Creation Email from Joomla Article

##

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

Less More

- Posts: 42
- Thank you received: 2
-
-

11 years 6 months ago -  11 years 6 months ago [\#200722](#200722) by [GSW00d](/forum/user/13067-gsw00d "View GSW00d's Profile")  *[Trigger Order Creation Email from Joomla Article](/forum/27-checkout/876774-trigger-order-creation-email-from-joomla-article#200722 "-- HikaShop version -- : 2.4.0  Hi Hika Team!  I need to activate the order creation email function from a different page in a custom payment gateway that I've made (all working). I didn't use the normal development guide for payment gateways due to our provider having specific requirements. At the moment the order creation email triggers on the end page on the checkout and not after the redirection. I can disable this, but need to enable an order creation email trigger from a joomla article (I am currently using sourcer to do some other custom code on the payment landing page).  How would I go about doing this?")* was created by *[GSW00d](/forum/user/13067-gsw00d "View GSW00d's Profile")*

-- HikaShop version -- : 2.4.0

Hi Hika Team!

I need to activate the order creation email function from a different page in a custom payment gateway that I've made (all working). I didn't use the normal development guide for payment gateways due to our provider having specific requirements. At the moment the order creation email triggers on the end page on the checkout and not after the redirection. I can disable this, but need to enable an order creation email trigger from a joomla article (I am currently using sourcer to do some other custom code on the payment landing page).

How would I go about doing this?

Last edit: 11 years 6 months ago by [GSW00d](/forum/user/13067-gsw00d "View GSW00d's Profile").

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

11 years 6 months ago [\#200727](#200727) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Trigger Order Creation Email from Joomla Article](/forum/27-checkout/876774-trigger-order-creation-email-from-joomla-article#200727 "-- HikaShop version -- : 2.4.0  Hi Hika Team!  I need to activate the order creation email function from a different page in a custom payment gateway that I've made (all working). I didn't use the normal development guide for payment gateways due to our provider having specific requirements. At the moment the order creation email triggers on the end page on the checkout and not after the redirection. I can disable this, but need to enable an order creation email trigger from a joomla article (I am currently using sourcer to do some other custom code on the payment landing page).  How would I go about doing this?")*

Hi,

I'm not sure if you are creating the order somewhere else and want to send the order creation email at that point, or if you want to have the order creation and the order creation email sending processes done on two different pages.
In the first case, it's really easy. When you call the save function of the class.order model you want to add a parameter $order-&gt;history-&gt;history_notified = 1; to the $order object so that the email will be sent.
In the second case, you'll want to use such code: Code:

$orderClass-&gt;loadOrderNotification($order,'order_creation_notification'); $mail = hikashop_get('class.mail'); if(!empty($order-&gt;mail-&gt;dst_email)) { $mail-&gt;sendMail($order-&gt;mail); }

Note that this supposes that you have the $order object with the exact same content as when you create the order so it's going to be more difficult to do than for the first case.

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

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