Hello,
By using HikaShop 3, you can use the new Cart and Order features and also the new API.
The HikaShop Order Class now have a function : createFromCart($cart_id) which allow to process a cart (from its id) and make an order. It will also call all required triggers regarding the shipping and payment methods, perform the redirection to the payment platform if required, etc.
You can use that function if you want ; but you can also use the code in that function if you want to handle all elements when you want to create an order from a cart.
Please note that if you pass the $cart_id " 0 ", the system will load the customer current cart.
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.