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

#   Converting a vm plugin to Hikashop.

##

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

Less More

- Posts: 259
- Thank you received: 22
-
-

12 years 2 months ago [\#170366](#170366) by [rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")  *[Converting a vm plugin to Hikashop.](/forum/31-development/870886-converting-a-vm-plugin-to-hikashop#170366 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 2.5.24  I am attempting to convert an SAP OCI plugin that was developed for Virtuemart to work with Hikashop. It is a system plugin that is triggered by the onAfterDispatch event in the landing page after payment and sends the order details to the client SAP system.  All payments are offline so basically this needs to be triggered by the finish button on the cart so probably should be a payment plugin in its own right. This is a new area for me so any suggestions would be welcome.")* was created by *[rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")*

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 2.5.24

I am attempting to convert an SAP OCI plugin that was developed for Virtuemart to work with Hikashop. It is a system plugin that is triggered by the onAfterDispatch event in the landing page after payment and sends the order details to the client SAP system.
Code:

function onAfterDispatch() { $this-&gt;khInitalize(); if(!$this-&gt;okToSend) { return; } $this-&gt;createForm(); return; }

All payments are offline so basically this needs to be triggered by the finish button on the cart so probably should be a payment plugin in its own right. This is a new area for me so any suggestions would be welcome.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3MDg4Ni1jb252ZXJ0aW5nLWEtdm0tcGx1Z2luLXRvLWhpa2FzaG9wP3RtcGw9bWFya2Rvd24=) 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 2 months ago [\#170375](#170375) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Converting a vm plugin to Hikashop.](/forum/31-development/870886-converting-a-vm-plugin-to-hikashop#170375 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 2.5.24  I am attempting to convert an SAP OCI plugin that was developed for Virtuemart to work with Hikashop. It is a system plugin that is triggered by the onAfterDispatch event in the landing page after payment and sends the order details to the client SAP system.  All payments are offline so basically this needs to be triggered by the finish button on the cart so probably should be a payment plugin in its own right. This is a new area for me so any suggestions would be welcome.")*

Hi,

I think that you have to use the trigger "onAfterOrderCreate()", here is a link with the documentation for the plugins.
All the triggers are listed.

[ hikashop.com/support/support/documentati...r-documentation.html](https://hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html)

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

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

Less More

- Posts: 259
- Thank you received: 22
-
-

12 years 2 months ago -  12 years 2 months ago [\#170865](#170865) by [rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")  Replied by *[rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")* on topic *[Converting a vm plugin to Hikashop.](/forum/31-development/870886-converting-a-vm-plugin-to-hikashop#170865 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 2.5.24  I am attempting to convert an SAP OCI plugin that was developed for Virtuemart to work with Hikashop. It is a system plugin that is triggered by the onAfterDispatch event in the landing page after payment and sends the order details to the client SAP system.  All payments are offline so basically this needs to be triggered by the finish button on the cart so probably should be a payment plugin in its own right. This is a new area for me so any suggestions would be welcome.")*

That works great. I had to add a test in the function to make it run only for one client group so now when customers in one client group make purchases the cart send the order data through to that customers SAP system for validation using the SAP OCI while retail customers go through the traditional shopping cart process.

That means my last problematic Virtuemart site gone and replaced by Hikashop.

Its nice to work with a shopping cart system that is so well designed that we can add this kind of functionality with hacking the code. Its even nicer to have this great support from you guys so I actually look like a guru to my clients.

Last edit: 12 years 2 months ago by [rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile").

The following user(s) said Thank You: [Xavier](/forum/user/4105-xavier "View Xavier's Profile")

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

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