get order_vendor_price and other fields in the onAfterOrderConfirm function

  • Posts: 170
  • Thank you received: 7
2 years 5 months ago #337268

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:

  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: 2 years 5 months ago by Jerome. Reason: [code] tag is nice

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
2 years 5 months ago #337271

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
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.060 seconds
Powered by Kunena Forum