Skip to main content

get order_vendor_price and other fields in the onAfterOrderConfirm function

More
4 years 10 months ago - 4 years 10 months ago #337268 by sadaf3d
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(&$order, &$do) as below:
Code:
if (parent::onBeforeOrderCreate($order, $do) === true) { $order_vendor_price= $order->order_vendor_price; return true; }
but when i want to take it in the onAfterOrderConfirm(&$order, &$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(&$order, &$methods, $method_id) other than querying?
thanks
Last edit: 4 years 10 months ago by Jerome. Reason: [code] tag is nice

Please Log in or Create an account to join the conversation.

More
4 years 10 months ago #337271 by Jerome
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

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: sadaf3d

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.166 seconds
Powered by Kunena Forum