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

#   get order\_vendor\_price and other fields in the onAfterOrderConfirm function

##

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

Less More

- Posts: 221
- Thank you received: 8
-

5 years 1 day ago -  5 years 1 day ago [\#337268](#337268) by [sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")  *[get order\_vendor\_price and other fields in the onAfterOrderConfirm function](/forum/19-hikamarket/903523-get-order-vendor-price-and-other-fields-in-the-onafterorderconfirm-function#337268 "hi i want to implement a custom adaptive payment plugin . i can get order fields related to the vendor such order&#95;vendor&#95;price in the onBeforeOrderCreate(&amp;$order, &amp;$do) as below:  but when i want to take it in the onAfterOrderConfirm(&amp;$order, &amp;$methods, $method&#95;id) , i do not get a result. how can i reach to the order&#95;vendor&#95;price and other vendor related fields in the onAfterOrderConfirm(&amp;$order, &amp;$methods, $method&#95;id) other than querying? thanks")* was created by *[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")*

hi
i want to implement a custom adaptive payment plugin .
i can get order fields related to the vendor such order_vendor_price in the onBeforeOrderCreate(&amp;$order, &amp;$do) as below: Code:

if (parent::onBeforeOrderCreate($order, $do) === true) { $order_vendor_price= $order-&gt;order_vendor_price; return true; }

but when i want to take it in the onAfterOrderConfirm(&amp;$order, &amp;$methods, $method_id) , i do not get a result.
how can i reach to the order_vendor_price and other vendor related fields in the onAfterOrderConfirm(&amp;$order, &amp;$methods, $method_id) other than querying?
thanks

Last edit: 5 years 1 day ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] tag is nice

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvOTAzNTIzLWdldC1vcmRlci12ZW5kb3ItcHJpY2UtYW5kLW90aGVyLWZpZWxkcy1pbi10aGUtb25hZnRlcm9yZGVyY29uZmlybS1mdW5jdGlvbj90bXBsPW1hcmtkb3du) 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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

5 years 13 hours ago [\#337271](#337271) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[get order\_vendor\_price and other fields in the onAfterOrderConfirm function](/forum/19-hikamarket/903523-get-order-vendor-price-and-other-fields-in-the-onafterorderconfirm-function#337271 "hi i want to implement a custom adaptive payment plugin . i can get order fields related to the vendor such order&#95;vendor&#95;price in the onBeforeOrderCreate(&amp;$order, &amp;$do) as below:  but when i want to take it in the onAfterOrderConfirm(&amp;$order, &amp;$methods, $method&#95;id) , i do not get a result. how can i reach to the order&#95;vendor&#95;price and other vendor related fields in the onAfterOrderConfirm(&amp;$order, &amp;$methods, $method&#95;id) other than querying? thanks")*

Hello,

When you create a new thread in our forum, please fill the various fields regarding your HikaShop version and HikaMarket version.

onBeforeOrderCreate and onAfterOrderConfirm are two very different triggers.
The last one is dedicated to the checkout and made for the payment methods (since you have these methods in parameters)
[ www.hikashop.com/support/documentation/6...#onAfterOrderConfirm](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onAfterOrderConfirm)

Regards,

---

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

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

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.039 seconds

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