예제 #1
0
파일: cart.php 프로젝트: Shtier/digicom
 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;
 }
예제 #2
0
파일: orders.php 프로젝트: Shtier/digicom
 public function addLicense($orderid, $type)
 {
     $order = $this->getOrder($orderid);
     $items = $order->products;
     $customer_id = $order->userid;
     DigiComSiteHelperLicense::addLicenceSubscription($items, $customer_id, $orderid, $type);
 }