create order manualy - prestashop 1.7


<?php $cart = new Cart(Context::getContext()->cart); $summary = $cart->getSummaryDetails($id_
lang,true); $total = (string) $summary['total_price']; $cashondelivery = new CashOnDelivery(); if($cashondelivery->validateOrder((int) $cart->id,2, $total, $cashondelivery->displayName, null, array(),$id_currency, false, false)) { $result['orderid']=(string)$cashondelivery->currentOrder; return $result; }

Comments

Popular Posts