function addOrderInfo($items, $customer, $tax, $status, $prosessor) { $config = JFactory::getConfig(); $tzoffset = $config->get('offset'); //$now = time(); $now = date('Y-m-d H:i:s', time() + $tzoffset); $now = strtotime($now); $non_taxed = $tax['total']; //$total; $total = $tax['taxed']; $currency = $tax['currency']; $taxa = $tax['value']; $shipping = $tax['shipping']; $orderid = $this->addOrder($items, $customer, $now, $prosessor, $status); $this->addOrderDetails($items, $orderid, $now, $customer, $status); DigiComSiteHelperLicense::addLicenceSubscription($items, $customer->_customer->id, $orderid, $status); return $orderid; }
public function addLicense($orderid, $type) { $order = $this->getOrder($orderid); $items = $order->products; $customer_id = $order->userid; DigiComSiteHelperLicense::addLicenceSubscription($items, $customer_id, $orderid, $type); }